ENH: Adding Fatal error if rEff is zero

This commit is contained in:
sergio
2018-06-06 12:51:40 -07:00
parent 82fed8f877
commit c229bc8a05

View File

@ -85,6 +85,13 @@ void Foam::swirlFanVelocityFvPatchField::calcFanJump()
} }
else else
{ {
if (rEff_ <= 0)
{
FatalErrorInFunction
<< "Effective radius rEff should be specified in the "<< nl
<< "dictionary." << nl
<< exit(FatalError);
}
magTangU = magTangU =
deltaP/rEff_/fanEff_/rpm_*constant::mathematical::pi/30.0; deltaP/rEff_/fanEff_/rpm_*constant::mathematical::pi/30.0;
} }