[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ff3d-users] new to ff3d help required

From: Stephane Del Pino
Subject: Re: [ff3d-users] new to ff3d help required
Date: Tue, 2 Jun 2009 01:29:48 +0200
User-agent: KMail/1.11.2 (Linux/2.6.29-2-686; KDE/4.2.2; i686; ; )


The time discretization in ff3d is let to the user. You have to write your scheme using the language. For instance, writing an implicit Euler scheme to solve the heat equation on a mesh 'M', one can write :

double dt = 0.1;
double i=0;

function un = 0;

for (i=0; i<10; ++i) {
sove(u) in M
int(u*v) + int(dt*grad(u)*grad(v)) = int(un*v);
u = 1 on 0; // dirichlet on boundary 0
un = u;

Best regards,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]