mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Adding Fatal error if rEff is zero
This commit is contained in:
@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user