diff --git a/applications/solvers/combustion/chemFoam/readInitialConditions.H b/applications/solvers/combustion/chemFoam/readInitialConditions.H index 817ed264f9a18224280ddd54f24becd72472ff51..3fbb13a0fce4df0e5c59c344ffcf6148b4723660 100644 --- a/applications/solvers/combustion/chemFoam/readInitialConditions.H +++ b/applications/solvers/combustion/chemFoam/readInitialConditions.H @@ -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." @@ -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; + +