From dacbf0a161286cd4421c4664b3595edbecac7189 Mon Sep 17 00:00:00 2001 From: sergio <sergio> Date: Wed, 20 Dec 2017 10:58:42 -0800 Subject: [PATCH] ENH: Constructing coeff volScalarField with 'calculated' Bc's for compressible flow to avoid unphysical 'fixedValue' at boundaries --- src/functionObjects/field/pressure/pressure.C | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/functionObjects/field/pressure/pressure.C b/src/functionObjects/field/pressure/pressure.C index b73ebffcfc..e0a2609111 100644 --- a/src/functionObjects/field/pressure/pressure.C +++ b/src/functionObjects/field/pressure/pressure.C @@ -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() ) ); -- GitLab