variableHeightFlowRateInletVelocity BC: corrected to compile SP

This commit is contained in:
Henry
2012-05-30 16:15:55 +01:00
parent 8a7f373751
commit 0c80f2fa9a

View File

@ -107,8 +107,8 @@ void Foam::variableHeightFlowRateInletVelocityFvPatchVectorField
scalarField alphap =
patch().lookupPatchField<volScalarField, scalar>("alpha1");
alphap = max(alphap, 0.0);
alphap = min(alphap, 1.0);
alphap = max(alphap, scalar(0));
alphap = min(alphap, scalar(1));
// a simpler way of doing this would be nice
scalar avgU = -flowRate_/gSum(patch().magSf()*alphap);