if statement for volScalarField
Hello Foamers,
I want to code an if condition for a volScalarField and I do get errors in compiling that the if statement does not work. Code:
volScalarField T Any other coding idea is welcome as well. Thanks in advance, Regards, Anja |
Use pos() and neg(): pos(T - Tf)* pow((Tf-T)/(Tf-Tl),-0.35)
|
Hello akidess,
and thank you very much. That was the basic idea I needed. To make it work finally, I changed it a little bit using the magnitude: Code:
pos(Tf-T)*pow(mag(Tf-T)/(Tf-Tl),-0.35) Thanks again, Anja |
All times are GMT -4. The time now is 06:54. |