Usage update: flowRateInletVelocity
This commit is contained in:
parent
e2e049bb04
commit
d4af4d504f
1 changed files with 13 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
|
Reference in a new issue