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?
|