ENH: Constructing coeff volScalarField with 'calculated' Bc's for compressible flow to

avoid unphysical 'fixedValue' at boundaries
This commit is contained in:
sergio
2017-12-20 10:58:42 -08:00
parent b14e7b794d
commit 90a9cd06c7

View File

@ -179,9 +179,17 @@ bool Foam::functionObjects::pressure::calc()
tmp<volScalarField> tp tmp<volScalarField> tp
( (
new volScalarField new volScalarField
(
IOobject
( (
resultName_, resultName_,
coeff(pRef(pDyn(p, rhoScale(p)))) p.mesh().time().timeName(),
p.mesh(),
IOobject::NO_READ,
IOobject::NO_WRITE
),
coeff(pRef(pDyn(p, rhoScale(p)))),
fvPatchField<scalar>::calculatedType()
) )
); );