CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   CFX (http://www.cfd-online.com/Forums/cfx/)
-   -   Calculating volume of a variable (http://www.cfd-online.com/Forums/cfx/70500-calculating-volume-variable.html)

ellevset November 26, 2009 06:25

Calculating volume of a variable
 
Hi
I want to be able to calculate the volume of cells with a certain variable higher than some value. For example calculating the volume of all cells with temperature higher than 400 degrees.

I would like to be able to add this in Pre so I can monitor this volume throughout the simulation, is this possible?

Peter

ghorrocks November 26, 2009 06:41

A CEL expression something like volumeInt(step(variable-threshold))@domain should do the trick. Note that you have to ensure "variable-threshold" is unitless. Put it in as a monitor point and it will be calculated as the simulation progresses.


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