Merge branch 'master' of ssh://git.code.sf.net/p/foam-extend/foam-extend-4.1

This commit is contained in:
Hrvoje Jasak 2021-07-05 15:48:06 +01:00
commit 70b064d0f3
4 changed files with 25 additions and 4 deletions

View file

@ -170,8 +170,8 @@ void SRFTotalPressureFvPatchScalarField::updateCoeffs(const vectorField& Up)
return; return;
} }
const fvsPatchField<scalar>& phip = const fvsPatchScalarField& phip =
patch().lookupPatchField<surfaceScalarField, scalar>(phiName_); lookupPatchField<surfaceScalarField, scalar>(phiName_);
if (psiName_ == "none" && rhoName_ == "none") if (psiName_ == "none" && rhoName_ == "none")
{ {

View file

@ -117,6 +117,18 @@ void Foam::flowRateInletVelocityFvPatchVectorField::updateCoeffs()
return; return;
} }
if (!this->db().objectRegistry::found(phiName_))
{
// Flux not available, do not update
InfoInFunction
<< "Flux field " << phiName_ << " not found. "
<< "Performing fixed value update" << endl;
fixedValueFvPatchVectorField::updateCoeffs();
return;
}
// if (patch().boundaryMesh().mesh().moving()) // if (patch().boundaryMesh().mesh().moving())
// { // {
// WarningIn // WarningIn
@ -159,7 +171,7 @@ void Foam::flowRateInletVelocityFvPatchVectorField::updateCoeffs()
<< nl << exit(FatalError); << nl << exit(FatalError);
} }
fixedValueFvPatchField<vector>::updateCoeffs(); fixedValueFvPatchVectorField::updateCoeffs();
} }

View file

@ -37,6 +37,15 @@ namespace Foam
Gamma, Gamma,
GammaLimiter GammaLimiter
) )
makeLLimitedMultivariateSurfaceInterpolationScheme
(
Gamma01,
Limited01Limiter,
GammaLimiter,
NVDTVD,
magSqr
)
} }
// ************************************************************************* // // ************************************************************************* //