CFD Online Discussion Forums

CFD Online Discussion Forums (
-   CFX (
-   -   Calculating volume of a variable (

ellevset November 26, 2009 06:25

Calculating volume of a variable
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?


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 14:33.