Skip to content

Commit

Permalink
BUG: chemFoam - moved output of initial conditions to after thermo.co…
Browse files Browse the repository at this point in the history
…rrect()

- corresponds to mantis bu report 333
  • Loading branch information
andy committed Nov 7, 2011
1 parent a3b4e20 commit 5f38cb9
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions applications/solvers/combustion/chemFoam/readInitialConditions.H
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
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."
Expand Down Expand Up @@ -110,3 +102,8 @@

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;

0 comments on commit 5f38cb9

Please sign in to comment.