Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
11fe0cf3
Commit
11fe0cf3
authored
May 26, 2011
by
andy
Browse files
ENH: Added stabilisation to NSRDS function
parent
4b375230
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/thermophysicalModels/thermophysicalFunctions/NSRDSfunctions/NSRDSfunc14/NSRDSfunc14.H
View file @
11fe0cf3
...
...
@@ -105,9 +105,11 @@ public:
//- Evaluate the function and return the result
scalar
f
(
scalar
,
scalar
T
)
const
{
scalar
t
=
1.0
-
T
/
Tc_
;
scalar
Tdash
=
min
(
T
,
Tc_
-
ROOTVSMALL
);
scalar
t
=
1.0
-
Tdash
/
Tc_
;
return
a_
*
a_
/
t
+
b_
-
t
a_
*
a_
/
(
t
+
ROOTVSMALL
)
+
b_
-
t
*
(
2.0
*
a_
*
c_
+
t
*
(
a_
*
d_
+
t
*
(
c_
*
c_
/
3.0
+
t
*
(
0.5
*
c_
*
d_
+
0.2
*
d_
*
d_
*
t
)))
...
...
Write
Preview
Markdown
is supported
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