IntegrateVariable

Hi, I am trying to find the total vapour volume of all cells with a threshold value between 0.01 and 0.95 and I did the following:

  1. Used the Find Data and Run a Selection query for alpha.water between 0.01 and 0.95
  2. Used the CellSize filter to find the Volume for each cell
  3. Used the Calculator to calculate the vapour volume (1-alpha.water)*Volume where Volume is the cell Volume
  4. Used the filter IntegrateVariable to calculate to the sum of vapour volume.

However the number I was getting was not the same as adding the values for the vapour Volume for each cell.
What I am doing wrong or not understanding?
Thank you for your help


Nicolas

You should not use IntegrateVariable filter, you should use Python calculator filter and input the expression:sum(inputs[0].CellData[‘vapourVolume’]).
This will calculate the sum of all vapour volume.

Thank you hdz

The integrate variable filter will work just fine for this, but you missed a subtility: during the integration, the value is multiplied by the local scalar too.
So in your calculator, you should only use 1-alpha.water, not multiply by the cell volume. the results should then match your expectations.

1 Like