Skip to content
GitLab
Menu
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
ab6aac74
Commit
ab6aac74
authored
Sep 09, 2013
by
andy
Browse files
ENH: curvatureSeparation film model - check that gravity is set/valid
parent
25817d95
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/regionModels/surfaceFilmModels/submodels/kinematic/injectionModel/curvatureSeparation/curvatureSeparation.C
View file @
ab6aac74
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011
-2013
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -229,8 +229,24 @@ curvatureSeparation::curvatureSeparation
deltaByR1Min_
(
coeffs
().
lookupOrDefault
<
scalar
>
(
"deltaByR1Min"
,
0
.
0
)),
definedPatchRadii_
(),
magG_
(
mag
(
owner
.
g
().
value
())),
gHat_
(
owner
.
g
().
value
()
/
magG_
)
gHat_
(
vector
::
zero
)
{
if
(
magG_
<
ROOTVSMALL
)
{
FatalErrorIn
(
"curvatureSeparation::curvatureSeparation"
"("
"const surfaceFilmModel&, "
"const dictionary&"
")"
)
<<
"Acceleration due to gravity must be non-zero"
<<
exit
(
FatalError
);
}
gHat_
=
owner
.
g
().
value
()
/
magG_
;
List
<
Tuple2
<
word
,
scalar
>
>
prIn
(
coeffs
().
lookup
(
"definedPatchRadii"
));
const
wordList
&
allPatchNames
=
owner
.
regionMesh
().
boundaryMesh
().
names
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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