CFD Online Discussion Forums

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

mikeP November 8, 2012 16: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 08:18.