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

Condensation as an additional variable

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 20, 2012, 10:42
Default Condensation as an additional variable
  #1
New Member
 
Join Date: Apr 2012
Posts: 1
Rep Power: 0
Clark Griswold is on a distinguished road
Hi all,

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
Units: []
Tensor Type: Scalar

------------------

I have created a user function called DewPointFunc:

Argument Units: [K]
Result Units: [K]

Coordinate Value
253.15 252.53
254.15 253.53
255.15 254.52
256.15 255.52

etc... to cover the range of expected temperatures within the domain

-----------------

Default Domian:

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'.
CEL error:
In the expression assigned to 'Additional Variable Value', the function 'DewPointFunc' is called with the wrong number of arguments (0 - expected 1).
Clark Griswold is offline   Reply With Quote

Old   April 20, 2012, 14:43
Default
  #2
Member
 
Luis Filipe Fabiani
Join Date: Apr 2009
Posts: 43
Rep Power: 17
lffabiani is on a distinguished road
Seems like the DewPointFunc function requires an argument (probably the temperature??)

Have you tried to use "DewPointFunc(Temperature)" ??

Best regards
lffabiani is offline   Reply With Quote

Old   April 21, 2012, 07:20
Default
  #3
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,749
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
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.
ghorrocks is offline   Reply With Quote

Reply

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
Additional Variable tav98f CFX 3 April 28, 2011 12:33
emag beta feature: charge density charlotte CFX 4 March 22, 2011 09:14
Problems with additional variable Krishna Premi CFX 1 October 29, 2007 08:19
Multi_component Vs Additional Variable Anurag CFX 2 February 4, 2005 16:45
Replace periodic by inlet-outlet pair lego CFX 3 November 5, 2002 20:09


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