CFD Online Logo CFD Online URL
Home > Forums > CFX

how to use dimensionless argument?

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

LinkBack Thread Tools Display Modes
Old   April 8, 2013, 00:19
Default how to use dimensionless argument?
New Member
Join Date: Apr 2013
Posts: 13
Rep Power: 6
D.ko is on a distinguished road
Sponsored Links
i made UDF with argument as mass fraction
but i don't know how to use that.
i have to type the argument unit but mass fraction does not have unit
plz help me
D.ko is offline   Reply With Quote
Sponsored Links

Old   April 8, 2013, 02:08
Senior Member
Join Date: Mar 2009
Posts: 606
Rep Power: 14
Lance is on a distinguished road
Do you mean in a CEL expression? You can always make your CEL expression dimensionless by dividing by the proper unit, e.g. 10 [kg]/1[kg] would result in 10 (unitless).
Lance is offline   Reply With Quote

Old   April 8, 2013, 02:44
New Member
Join Date: Apr 2013
Posts: 13
Rep Power: 6
D.ko is on a distinguished road
i mean that in a user function tab, there are spaces for argument unit and result unit, but my User defined Function has a argument as a mass fraction so it is dimensionless.

typing like a m*m^-1 or something else show error in applying UDF in SOURCE TERM like below

The variable 'Mass Fraction' referenced in parameter 'Source' in object '/FLOW:Flow Analysis 1/DOMAIN:R1/SUBDOMAIN:Subdomain 1/FLUID:h2ol/SOURCES/EQUATION SOURCE:continuity' does not have one of the required prefixes: component or particle component.
D.ko is offline   Reply With Quote

Old   April 8, 2013, 07:51
Senior Member
Join Date: Apr 2012
Location: United Kindom
Posts: 475
Rep Power: 13
oj.bulmer will become famous soon enough
If you have defined the variable, using an expression that contains the main variables in CFX, you don't need to specify unit. But if you are using actual values, you need to specify units -say 1 [m s-1] etc.

In case if the variable doesn't have units, don't give it even when you use it as a value. CFX will shout only when there is a discrepancy with dimensions of both sides of the expression.

oj.bulmer is offline   Reply With Quote


argument, udf and programming

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
Mesquite - Adaptive mesh refinement / coarsening? philippose OpenFOAM Running, Solving & CFD 94 January 27, 2016 10:40
Pressure outlet boundary condition rolando OpenFOAM Running, Solving & CFD 59 January 26, 2016 22:01
Compiling dynamicTopoFvMesh for OpenFOAM 2.1.x Saxwax OpenFOAM Installation 25 November 29, 2013 06:34
Actual drag force from dimensionless equations slaxmi CFX 10 September 14, 2007 19:20
How to input dimensionless parameter in FLUENT Kwang-Su, Kim FLUENT 2 August 23, 2005 04:25

Sponsored Links

All times are GMT -4. The time now is 12:15.