Skip to content
Snippets Groups Projects
Commit 1b59f299 authored by andy's avatar andy
Browse files

BUG: corrected compressible usage for waveSurfacePressure BC

parent 50965fe6
No related branches found
No related tags found
No related merge requests found
......@@ -163,14 +163,14 @@ void Foam::waveSurfacePressureFvPatchScalarField::updateCoeffs()
timeSchemeType timeScheme(timeSchemeTypeNames_[ddtSchemeName]);
// retrieve the flux field from the database
const scalarField& phip =
patch().lookupPatchField<surfaceScalarField, scalar>(phiName_);
const surfaceScalarField& phi =
db().lookupObject<surfaceScalarField>(phiName_);
// cache the patch face-normal vectors
tmp<vectorField> nf(patch().nf());
// change in zeta due to flux
vectorField dZetap(dt*nf()*phip/patch().magSf());
vectorField dZetap(dt*nf()*phi.boundaryField()[patchI]/patch().magSf());
if (phi.dimensions() == dimDensity*dimVelocity*dimArea)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment