# CEL function/Expression

 Register Blogs Members List Search Today's Posts Mark Forums Read

 May 27, 2008, 13:12 CEL function/Expression #1 MAB 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 Glenn Horrocks 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 MAB 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 CycLone 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 Rogerio Fernandes Brito 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 CycLone 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

 Thread Tools Display Modes Linear Mode

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is On HTML code is OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post Gloria Gaynor CFX 11 November 26, 2012 07:29 bornspur CFX 2 February 3, 2009 03:24 jaiye CFX 6 August 18, 2008 19:37 Elian81 CFX 2 September 25, 2007 05:31 ioana CFX 11 June 24, 2004 19:42

All times are GMT -4. The time now is 05:53.