|
[Sponsors] |
May 27, 2008, 13:12 |
CEL function/Expression
|
#1 |
Guest
Posts: n/a
|
is there any CEL Expression or Function which permits to define an expression or function such that (for example) [f(x)= 2x for x<3 or x=3], and [f(x)=0 for x>3]???
Thanks |
|
May 27, 2008, 20:16 |
Re: CEL function/Expression
|
#2 |
Guest
Posts: n/a
|
Hi,
You can use the step() CEL function to do if/then statements. Glenn Horrocks |
|
May 28, 2008, 04:58 |
Re: CEL function/Expression
|
#3 |
Guest
Posts: n/a
|
but step(0)=0.5 whereas i want it to be 1. For example: Step(h-z)/1[m]) now for h=2(specified hieght) and z=3(vertical axis). this will give 0.5 at certain hiegt where h is equal to z. I want to specify [h=f(z) is 1 for z=2 or z<2] and [h=f(z) is 0 for z>2].
|
|
May 28, 2008, 11:13 |
Re: CEL function/Expression
|
#4 |
Guest
Posts: n/a
|
Hi MAB,
The step function only returns 0.5 at exactly zero. Another way would be to create a profile function (see User Function's in Pre) and specify the appropriate coordinates and data pairs. -CycLone |
|
May 28, 2008, 21:10 |
Re: CEL function/Expression
|
#5 |
Guest
Posts: n/a
|
i didnīt understand! Could you please send it (.ccl and .cfx files) for us? MSN: rogeriobrito2007@hotmail.com
|
|
May 29, 2008, 10:22 |
Re: CEL function/Expression
|
#6 |
Guest
Posts: n/a
|
No need. Just open the on-line help and go to: "ANSYS CFX-Pre User's Guide | User Functions | Interpolation Function |".
-CycLone |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Angle variable under CEL. | Gloria Gaynor | CFX | 11 | November 26, 2012 06:29 |
junction box routine and CEL function | bornspur | CFX | 2 | February 3, 2009 02:24 |
Using CEL Funtion | jaiye | CFX | 6 | August 18, 2008 19:37 |
Rotate node via cel | Elian81 | CFX | 2 | September 25, 2007 05:31 |
how to load a cel file? | ioana | CFX | 11 | June 24, 2004 19:42 |