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

Definition of the theta function in CFX-PRE

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

Reply
 
LinkBack Thread Tools Display Modes
Old   April 9, 2010, 07:52
Default Definition of the theta function in CFX-PRE
  #1
Member
 
Domenico
Join Date: Sep 2009
Location: Cranfield
Posts: 48
Rep Power: 7
c120613 is on a distinguished road
Dear all,

In CFX-PRE the theta function is a discontinuous function because in the front of a rotor is defined from 0 to pi and from -pi to 0. The problem is that I want to define a theta function from 0 to 2*pi for overall the annulus (to define the angular position).
It may be possible to avoid the using of fortran routine, but it is quite complicate with respect to define a simple CEL expression.
Somebody can help me?

Kind regards

Domenico
Attached Images
File Type: jpg angle_view.jpg (56.8 KB, 23 views)
c120613 is offline   Reply With Quote

Old   April 9, 2010, 08:28
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 10,929
Rep Power: 85
ghorrocks has a spectacular aura aboutghorrocks has a spectacular aura aboutghorrocks has a spectacular aura about
This is easy using the new "if" CEL function.
ghorrocks is offline   Reply With Quote

Old   April 10, 2010, 06:24
Default
  #3
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 10,929
Rep Power: 85
ghorrocks has a spectacular aura aboutghorrocks has a spectacular aura aboutghorrocks has a spectacular aura about
He sent me a PM:

Quote:
Thank you a lot for your help. However I'd like to know which are you talking about because in ANSYS 11.0 the CEL function is not written in the manual so far and I do not have idea how to write the final expression.

I hope you can help me!!
If you are using CFX V11 then you won't have the if function. You will have to use the step function instead. It is messy, but it works.
ghorrocks is offline   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
LiencubiclowRemodel nzy102 OpenFOAM Bugs 14 January 10, 2012 09:53
Definition of a linear function as volScalarField titio OpenFOAM Running, Solving & CFD 1 October 3, 2010 16:51
Periodicity of a function (loop) CFX uorinopuot CFX 2 October 27, 2009 20:15
Problem with compile the setParabolicInlet ivanyao OpenFOAM Running, Solving & CFD 6 September 5, 2008 20:50
Problem with rhoSimpleFoam matteo_gautero OpenFOAM Running, Solving & CFD 0 February 28, 2008 07:51


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