|
[Sponsors] |
August 28, 2005, 00:17 |
step function
|
#1 |
Guest
Posts: n/a
|
Hi,all
Here is an application of step fuction: C=a*step(-x) So c=0 when x>0; and c=a when x<0. However, when x=0, I will get c=0.5a I want to let c=0 when x=0, how can I do that? Thanks! John |
|
August 28, 2005, 01:29 |
Re: step function
|
#2 |
Guest
Posts: n/a
|
The CFX step(x) function gives:
0 when X < 0 0.5 when X = 0 1.0 when X > 0 step(step(x)-0.6) should give 0 when x < 0 {step(-0.6) = 0} 0 when x=0 {step(-0.1) = 0} 1 when x > 0 {step( 0.4) = 1} Jeff |
|
August 28, 2005, 02:01 |
Re: step function
|
#3 |
Guest
Posts: n/a
|
Great idea, Jeff
Thanks! John |
|
October 20, 2005, 01:37 |
Re: Ignore, just a test
|
#4 |
Guest
Posts: n/a
|
testing [/b] bold
|
|
October 20, 2005, 01:39 |
Re: Ignore, just a test
|
#5 |
Guest
Posts: n/a
|
testing bold not bold [i] italics?
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Help to create a CEL expression for Step function | anirudster | CFX | 25 | January 11, 2018 00:41 |
incompressible flow over step with vorticity_stream function | hsaeedi | Main CFD Forum | 0 | June 11, 2010 17:29 |
wall function UDFs...step | gina | Fluent UDF and Scheme Programming | 7 | June 2, 2009 15:04 |
Can anybody help me to solve the list errors while compiling Openfoam 15 on Opensuse 103 32bit | coompressor | OpenFOAM Installation | 0 | November 12, 2008 20:53 |
time step size in Custom Field Function | Tong | FLUENT | 0 | May 2, 2008 16:51 |