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
51eb1ac5
Commit
51eb1ac5
authored
Nov 07, 2011
by
andy
Browse files
BUG: chemFoam - density output on start-up was misleading due to presence of
call to thermo.correct() - corresponds to mantis bug report 333
parent
3a960a33
Changes
1
Hide whitespace changes
Inline
Side-by-side
applications/solvers/combustion/chemFoam/readInitialConditions.H
View file @
51eb1ac5
word
constProp
(
initialConditions
.
lookup
(
"constantProperty"
));
if
(
constProp
==
"pressure"
||
constProp
==
"volume"
)
{
Info
<<
constProp
<<
" will be held constant."
<<
nl
<<
" p = "
<<
p
[
0
]
<<
" [Pa]"
<<
nl
<<
" T = "
<<
thermo
.
T
()[
0
]
<<
" [K] "
<<
nl
<<
" rho = "
<<
rho
[
0
]
<<
" [kg/m3]"
<<
nl
<<
endl
;
}
else
if
((
constProp
!=
"pressure"
)
&&
(
constProp
!=
"volume"
))
{
FatalError
<<
"in initialConditions, unknown constantProperty type "
<<
constProp
<<
nl
<<
" Valid types are: pressure volume."
...
...
@@ -110,3 +102,10 @@
scalar
integratedHeat
=
0
.
0
;
Info
<<
constProp
<<
" will be held constant."
<<
nl
<<
" p = "
<<
p
[
0
]
<<
" [Pa]"
<<
nl
<<
" T = "
<<
thermo
.
T
()[
0
]
<<
" [K] "
<<
nl
<<
" rho = "
<<
rho
[
0
]
<<
" [kg/m3]"
<<
nl
<<
endl
;
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