CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   how to scale volScalarField (http://www.cfd-online.com/Forums/openfoam/109087-how-scale-volscalarfield.html)

mikeP November 8, 2012 17:39

how to scale volScalarField
 
I am trying to scale volScalarField with the following code:

Code:

nut = cmptMultiply(nut,scale);
forAll(nut.boundaryField(),patchi)
{
    forAll(nut.boundaryField()[patchi],facei)
    {
          nut.boundaryField()[patchi][facei] = cmptMultiply(nut.boundaryField()[patchi][facei],scale);
    }
}

It doesn't seem to work right at the boundaries, is there a problem with it?


All times are GMT -4. The time now is 21:10.