|
From: | Emilio Melero García |
Subject: | Re: [ff3d-users] Step function |
Date: | Thu, 14 Dec 2006 13:32:45 +0100 |
Le mercredi 13 décembre 2006 13:41, Emilio Melero García a écrit:
> Hello everyone!,
Hello Emilio.
> I have just recently started to use freefem3d to simulate mass diffusion
> inside a certain 3d shape. My question here is that i need to define a step
> function to set the initial conditions for the concentration. I would need
> a function that says: for x<= x1 conc(x,y,z)=3(for example), and for x>x1
> conc(x,y,z)=0. And i can not figure out a way to do it.
You can write this function using the 'one' keyword:
function conc = one(x<=x1)*3;
> I am using the distributed binary for Macintosh.
I think this release is quite old. You should try to compile a new cvs
version: lots of bugs have been fixed... If you are not able to do it, let me
know, I have to check if I have an OS-X system where I can compile ff3d...
Best regards,
Stephane.
_______________________________________________
ff3d-users mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/ff3d-users
[Prev in Thread] | Current Thread | [Next in Thread] |