Discussion:
[ff3d-users] new to ff3d help required
Rabail Junaid
2009-05-24 16:19:09 UTC
Permalink
hi there

i have just recently start using ff3d. i have few problems . i tried solving heat equation. but i could not understand how to write the du/dt (partial derivative actually) in the code.

Regards

_________________________________________________________________
Drag n’ drop—Get easy photo sharing with Windows Live™ Photos.

http://www.microsoft.com/windows/windowslive/products/photos.aspx
Stephane Del Pino
2009-06-01 23:29:48 UTC
Permalink
Hello.

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
{
test(v)
int(u*v) + int(dt*grad(u)*grad(v)) = int(un*v);
u = 1 on 0; // dirichlet on boundary 0
}
un = u;
}
-----------------------------------

Best regards,
Stéphane.

Loading...