mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Constructing coeff volScalarField with 'calculated' Bc's for compressible flow to
avoid unphysical 'fixedValue' at boundaries
This commit is contained in:
@ -180,8 +180,16 @@ bool Foam::functionObjects::pressure::calc()
|
||||
(
|
||||
new volScalarField
|
||||
(
|
||||
resultName_,
|
||||
coeff(pRef(pDyn(p, rhoScale(p))))
|
||||
IOobject
|
||||
(
|
||||
resultName_,
|
||||
p.mesh().time().timeName(),
|
||||
p.mesh(),
|
||||
IOobject::NO_READ,
|
||||
IOobject::NO_WRITE
|
||||
),
|
||||
coeff(pRef(pDyn(p, rhoScale(p)))),
|
||||
fvPatchField<scalar>::calculatedType()
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user