mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: corrected compressible usage for waveSurfacePressure BC
This commit is contained in:
@ -163,14 +163,14 @@ void Foam::waveSurfacePressureFvPatchScalarField::updateCoeffs()
|
|||||||
timeSchemeType timeScheme(timeSchemeTypeNames_[ddtSchemeName]);
|
timeSchemeType timeScheme(timeSchemeTypeNames_[ddtSchemeName]);
|
||||||
|
|
||||||
// retrieve the flux field from the database
|
// retrieve the flux field from the database
|
||||||
const scalarField& phip =
|
const surfaceScalarField& phi =
|
||||||
patch().lookupPatchField<surfaceScalarField, scalar>(phiName_);
|
db().lookupObject<surfaceScalarField>(phiName_);
|
||||||
|
|
||||||
// cache the patch face-normal vectors
|
// cache the patch face-normal vectors
|
||||||
tmp<vectorField> nf(patch().nf());
|
tmp<vectorField> nf(patch().nf());
|
||||||
|
|
||||||
// change in zeta due to flux
|
// 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)
|
if (phi.dimensions() == dimDensity*dimVelocity*dimArea)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user