diff --git a/src/finiteVolume/cfdTools/general/SRF/derivedFvPatchFields/SRFTotalPressure/SRFTotalPressureFvPatchScalarField.C b/src/finiteVolume/cfdTools/general/SRF/derivedFvPatchFields/SRFTotalPressure/SRFTotalPressureFvPatchScalarField.C index 0ada33097..23cf15053 100644 --- a/src/finiteVolume/cfdTools/general/SRF/derivedFvPatchFields/SRFTotalPressure/SRFTotalPressureFvPatchScalarField.C +++ b/src/finiteVolume/cfdTools/general/SRF/derivedFvPatchFields/SRFTotalPressure/SRFTotalPressureFvPatchScalarField.C @@ -170,8 +170,8 @@ void SRFTotalPressureFvPatchScalarField::updateCoeffs(const vectorField& Up) return; } - const fvsPatchField& phip = - patch().lookupPatchField(phiName_); + const fvsPatchScalarField& phip = + lookupPatchField(phiName_); if (psiName_ == "none" && rhoName_ == "none") { diff --git a/src/finiteVolume/fields/fvPatchFields/derived/flowRateInletVelocity/flowRateInletVelocityFvPatchVectorField.C b/src/finiteVolume/fields/fvPatchFields/derived/flowRateInletVelocity/flowRateInletVelocityFvPatchVectorField.C index e1b4b2e09..232a75dd2 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/flowRateInletVelocity/flowRateInletVelocityFvPatchVectorField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/flowRateInletVelocity/flowRateInletVelocityFvPatchVectorField.C @@ -117,6 +117,18 @@ void Foam::flowRateInletVelocityFvPatchVectorField::updateCoeffs() 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()) // { // WarningIn @@ -159,7 +171,7 @@ void Foam::flowRateInletVelocityFvPatchVectorField::updateCoeffs() << nl << exit(FatalError); } - fixedValueFvPatchField::updateCoeffs(); + fixedValueFvPatchVectorField::updateCoeffs(); } diff --git a/src/finiteVolume/interpolation/surfaceInterpolation/multivariateSchemes/Gamma/multivariateGamma.C b/src/finiteVolume/interpolation/surfaceInterpolation/multivariateSchemes/Gamma/multivariateGamma.C index bdd302c36..70384043d 100644 --- a/src/finiteVolume/interpolation/surfaceInterpolation/multivariateSchemes/Gamma/multivariateGamma.C +++ b/src/finiteVolume/interpolation/surfaceInterpolation/multivariateSchemes/Gamma/multivariateGamma.C @@ -37,6 +37,15 @@ namespace Foam Gamma, GammaLimiter ) + + makeLLimitedMultivariateSurfaceInterpolationScheme + ( + Gamma01, + Limited01Limiter, + GammaLimiter, + NVDTVD, + magSqr + ) } // ************************************************************************* // diff --git a/src/finiteVolume/interpolation/surfaceInterpolation/multivariateSchemes/multivariateScheme/multivariateScheme.H b/src/finiteVolume/interpolation/surfaceInterpolation/multivariateSchemes/multivariateScheme/multivariateScheme.H index bc2367232..75ff52540 100644 --- a/src/finiteVolume/interpolation/surfaceInterpolation/multivariateSchemes/multivariateScheme/multivariateScheme.H +++ b/src/finiteVolume/interpolation/surfaceInterpolation/multivariateSchemes/multivariateScheme/multivariateScheme.H @@ -45,7 +45,7 @@ namespace Foam { /*---------------------------------------------------------------------------*\ - Class multivariateScheme Declaration + Class multivariateScheme Declaration \*---------------------------------------------------------------------------*/ template