Usage update: flowRateInletVelocity

This commit is contained in:
Hrvoje Jasak 2020-11-02 10:15:28 +00:00
parent e2e049bb04
commit d4af4d504f

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();
} }