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

Definition of the theta function in CFX-PRE

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 9, 2010, 08:52
Default Definition of the theta function in CFX-PRE
  #1
Member
 
Domenico
Join Date: Sep 2009
Location: Cranfield
Posts: 48
Rep Power: 17
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, 46 views)
c120613 is offline   Reply With Quote

Old   April 9, 2010, 09:28
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,844
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
This is easy using the new "if" CEL function.
ghorrocks is offline   Reply With Quote

Old   April 10, 2010, 07:24
Default
  #3
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,844
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
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


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 Off
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 17: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 21: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 07:41.