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;
}
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<vector>::updateCoeffs();
fixedValueFvPatchVectorField::updateCoeffs();
}