CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > CFX

CEL function/Expression

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

Reply
 
LinkBack Thread Tools Display Modes
Old   May 27, 2008, 13:12
Default 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
  Reply With Quote

Old   May 27, 2008, 20:16
Default 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
  Reply With Quote

Old   May 28, 2008, 04:58
Default 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].
  Reply With Quote

Old   May 28, 2008, 11:13
Default 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
  Reply With Quote

Old   May 28, 2008, 21:10
Default 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
  Reply With Quote

Old   May 29, 2008, 10:22
Default 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
  Reply With Quote

Reply

Thread Tools
Display Modes

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 Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Angle variable under CEL. Gloria Gaynor CFX 11 November 26, 2012 07:29
junction box routine and CEL function bornspur CFX 2 February 3, 2009 03: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


All times are GMT -4. The time now is 21:57.