Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
c229bc8a
Commit
c229bc8a
authored
Jun 06, 2018
by
sergio
Browse files
ENH: Adding Fatal error if rEff is zero
parent
82fed8f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/finiteVolume/fields/fvPatchFields/derived/swirlFanVelocity/swirlFanVelocityFvPatchField.C
View file @
c229bc8a
...
...
@@ -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
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment