CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   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)

sambatra October 30, 2009 05:13

Comparing values of two different fields
 
Hi 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 14:51.