I would like to compute the pr
I would like to compute the pressure difference between the local pressure value (say pd) and a reference value (dimensionedScalar pr) and need to check if its less than a tolerance?
How can i access the local pressure value ?
Can I do
dimensionedScalar diff = (pd-pref);
and some how get the magnitude of this scalar.
I would like to check
if ( diff < tolerance )
How do i get the magnitude of difference of volScalarFields like pressure ?
PS: Also, what is the function to get absolute value of the difference say ...absolute(pd-pr) ?
|All times are GMT -4. The time now is 20:37.|