|April 20, 2012, 10:42||
Condensation as an additional variable
Join Date: Apr 2012
Posts: 1Rep Power: 0
Could someone give me some pointers please and thank you...
I'd like to create an additional variable within a domain for condensation (as a predictor based solely on temperature) and be able to apply this either within a volume rendering or surface plot (contour) within post.
The idea being that the Relative Humidity within the domain remains constant at 95% throughout the simulation and the additional variable "Condensation" is plotted with a value of either 1 or 0 depending on whether the temperature in the cell or element is above or below the dewpoint. So it compares the temperature to the dewpoint and returns a 1 or a 0.
What I have created:
Additional Variable: Condensation
Variable Type: Volumetric
Tensor Type: Scalar
I have created a user function called DewPointFunc:
Argument Units: [K]
Result Units: [K]
etc... to cover the range of expected temperatures within the domain
Condensation: Additional Variable Checked to enable
Option: Algebraic Equation
Add. Var. Value: This is where I am stuck......
I was trying to use something like this for Add. Var. Value: if(Temperature >=DewPointFunc(),1,0)
But I get the following error shown below - as I know its not correct. I think I need to create and apply some proper expressions but am unsure at the moment of what exactly to do... could someone help me out and explain how best to approach this. Or perhaps suggest a better way to accomplish the same thing. I'd like to learn a little here as well - so if you could provide some very detailed explanation like do this because.. and this expression is needed because etc... That would be totally awesome. And thank you again in advance for any time and effort put into this! It's most appreciated!
Current error message:
Bad expression value 'if(Temperature >=DewPointFunc(),1,0)' detected in parameter 'Additional Variable Value' in object '/FLOW:Flow Analysis 1/DOMAINefault Domain/FLUID MODELS/ADDITIONAL VARIABLE:Condensation'.
In the expression assigned to 'Additional Variable Value', the function 'DewPointFunc' is called with the wrong number of arguments (0 - expected 1).
|April 20, 2012, 14:43||
Luis Filipe Fabiani
Join Date: Apr 2009
Posts: 43Rep Power: 9
Seems like the DewPointFunc function requires an argument (probably the temperature??)
Have you tried to use "DewPointFunc(Temperature)" ??
|April 21, 2012, 07:20||
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 13,201Rep Power: 103
Luis is right, the problem is pretty obvious. You need to give the DewPointFunc() an argument, probably temperature. The abbreviation for temperature is "T" - look in the CFX reference manual to confirm you are using the right variable names.
|Thread||Thread Starter||Forum||Replies||Last Post|
|Additional Variable||tav98f||CFX||3||April 28, 2011 12:33|
|emag beta feature: charge density||charlotte||CFX||4||March 22, 2011 10:14|
|Problems with additional variable||Krishna Premi||CFX||1||October 29, 2007 09:19|
|Multi_component Vs Additional Variable||Anurag||CFX||2||February 4, 2005 17:45|
|Replace periodic by inlet-outlet pair||lego||CFX||3||November 5, 2002 21:09|