- **OpenFOAM Running, Solving & CFD**
(*http://www.cfd-online.com/Forums/openfoam-solving/*)

- - **Comparing values of two different fields**
(*http://www.cfd-online.com/Forums/openfoam-solving/69663-comparing-values-two-different-fields.html*)

Comparing values of two different fieldsHi there,
I'm trying to implement this condition: if T<441 K { rsech = f(T); } T is a temperature(K) rsech is (volScalarField) function of T Here is What I tried: I created a volScalarField C of which the values are set equal to 441 K,then I wrote this: if(T.mesh().V()<C.mesh().V()) { rsech = f(T) (rsech is calculated) } it runs but it doesn't give the expected values!! Can somebody help me out please? Thanks in advance Best Regards |

All times are GMT -4. The time now is 04:57. |