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 6ed6b93c34
commit 2c055f2b39

View File

@ -130,7 +130,7 @@ void Foam::porousBafflePressureFvPatchField::updateCoeffs()
scalarField Un(phip/patch().magSf()); 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_); Un /= patch().lookupPatchField<volScalarField, scalar>(rhoName_);
} }