Commit c229bc8a authored by sergio's avatar sergio
Browse files

ENH: Adding Fatal error if rEff is zero

parent 82fed8f8
......@@ -85,6 +85,13 @@ void Foam::swirlFanVelocityFvPatchField::calcFanJump()
}
else
{
if (rEff_ <= 0)
{
FatalErrorInFunction
<< "Effective radius rEff should be specified in the "<< nl
<< "dictionary." << nl
<< exit(FatalError);
}
magTangU =
deltaP/rEff_/fanEff_/rpm_*constant::mathematical::pi/30.0;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment