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

how to use dimensionless argument?

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 8, 2013, 01:19
Default how to use dimensionless argument?
  #1
New Member
 
DongGunKo
Join Date: Apr 2013
Posts: 13
Rep Power: 12
D.ko is on a distinguished road
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

Old   April 8, 2013, 03:08
Default
  #2
Senior Member
 
Lance
Join Date: Mar 2009
Posts: 669
Rep Power: 22
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, 03:44
Default
  #3
New Member
 
DongGunKo
Join Date: Apr 2013
Posts: 13
Rep Power: 12
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, 08:51
Default
  #4
Senior Member
 
OJ
Join Date: Apr 2012
Location: United Kindom
Posts: 473
Rep Power: 19
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
oj.bulmer is offline   Reply With Quote

Reply

Tags
argument, udf and programming

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pressure outlet boundary condition rolando OpenFOAM Running, Solving & CFD 62 September 18, 2017 07:45
Mesquite - Adaptive mesh refinement / coarsening? philippose OpenFOAM Running, Solving & CFD 94 January 27, 2016 10:40
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 20:20
How to input dimensionless parameter in FLUENT Kwang-Su, Kim FLUENT 2 August 23, 2005 05:25


All times are GMT -4. The time now is 14:46.