ff3d-users
[Top][All Lists]
Advanced

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

Re: [ff3d-users] Step function


From: Stephane Del Pino
Subject: Re: [ff3d-users] Step function
Date: Wed, 13 Dec 2006 21:40:28 +0100
User-agent: KMail/1.9.5

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.




reply via email to

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