From b9751e8661611e5b2da1a91cb76e8aa3c0c4d0ed Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Tue, 22 Jun 2021 17:35:09 +0100 Subject: [PATCH] porousBafflePressureFvPatchField: Updated using dimMassFlux --- .../porousBafflePressure/porousBafflePressureFvPatchField.C | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/porousBafflePressure/porousBafflePressureFvPatchField.C b/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/porousBafflePressure/porousBafflePressureFvPatchField.C index 226581d144..f66bccc5f7 100644 --- a/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/porousBafflePressure/porousBafflePressureFvPatchField.C +++ b/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/porousBafflePressure/porousBafflePressureFvPatchField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -115,7 +115,7 @@ void Foam::porousBafflePressureFvPatchField::updateCoeffs() scalarField Un(phip/patch().magSf()); - if (phi.dimensions() == dimDensity*dimVelocity*dimArea) + if (phi.dimensions() == dimMassFlux) { Un /= patch().lookupPatchField(rhoName_); }