porousBafflePressureFvPatchField: Corrected handling of mass-flux

Resolves the bug-report http://www.openfoam.org/mantisbt/view.php?id=1934
This commit is contained in:
Henry Weller
2015-12-01 16:31:32 +00:00
parent a3301464bd
commit 27e8b3d282

View File

@ -130,7 +130,7 @@ void Foam::porousBafflePressureFvPatchField::updateCoeffs()
scalarField Un(phip/patch().magSf());
if (phi.dimensions() == dimensionSet(0, 3, -1, 0, 0))
if (phi.dimensions() == dimDensity*dimVelocity*dimArea)
{
Un /= patch().lookupPatchField<volScalarField, scalar>(rhoName_);
}