ENH: Adding Fatal error if rEff is zero
This commit is contained in:
parent
82fed8f877
commit
c229bc8a05
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user