diff --git a/applications/solvers/combustion/chemFoam/readInitialConditions.H b/applications/solvers/combustion/chemFoam/readInitialConditions.H index 817ed264f9..3fbb13a0fc 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; + + diff --git a/src/lagrangian/intermediate/submodels/CloudFunctionObjects/FacePostProcessing/FacePostProcessing.C b/src/lagrangian/intermediate/submodels/CloudFunctionObjects/FacePostProcessing/FacePostProcessing.C index e907b2d599..0f2a765ea8 100644 --- a/src/lagrangian/intermediate/submodels/CloudFunctionObjects/FacePostProcessing/FacePostProcessing.C +++ b/src/lagrangian/intermediate/submodels/CloudFunctionObjects/FacePostProcessing/FacePostProcessing.C @@ -80,12 +80,12 @@ void Foam::FacePostProcessing::write() const Time& time = mesh.time(); const faceZoneMesh& fzm = mesh.faceZones(); scalar timeNew = time.value(); - scalar timeElapsed = timeNew-timeOld_; + scalar timeElapsed = timeNew - timeOld_; totalTime_ += timeElapsed; const scalar alpha = (totalTime_ - timeElapsed)/totalTime_; - const scalar beta = timeElapsed/totalTime_; //correct + const scalar beta = timeElapsed/totalTime_; forAll(faceZoneIDs_, zoneI) { @@ -96,7 +96,7 @@ void Foam::FacePostProcessing::write() const label procI = Pstream::myProcNo(); - Info<< "particleFaceFlowRate output:" << nl; + Info<< type() << " output:" << nl; List zoneMassTotal(mass_.size()); List zoneMassFlowRate(massFlowRate_.size());