CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Running, Solving & CFD (
-   -   Error in scaling volScalarField from (0,1) to (-1,1) (

hrushi.397 August 30, 2013 01:34

Error in scaling volScalarField from (0,1) to (-1,1)
Hi all,

I have a volScalarField c which has value between 0 and 1. I wish to convert it to a new field phi which has limits between -1 and 1. I am trying the following conversion.


But I get a field where my value of phi exceeds -1 and goes upto -50. I have checked c field and its value does not exceed 0.5. What is going wrong here?

Thanks and regards,


All times are GMT -4. The time now is 23:33.