@@ -5,7 +5,7 @@ if (!inviscid)
55 hDiffCorrFlux = Zero;
66 diffAlphaD = Zero;
77 sumYDiffError = Zero;
8-
8+
99 forAll (Y, i)
1010 {
1111 sumYDiffError += chemistry->rhoD (i)*fvc::grad (Y[i]);
@@ -45,7 +45,7 @@ time_monitor_corrDiff += double(end - start) / double(CLOCKS_PER_SEC);
4545 MPI_Initialized (&flag_mpi_init);
4646 if (flag_mpi_init) MPI_Barrier (PstreamGlobals::MPI_COMM_FOAM);
4747 end = std::clock ();
48- time_monitor_chem += double (end - start) / double (CLOCKS_PER_SEC);
48+ time_monitor_chem += double (end - start) / double (CLOCKS_PER_SEC);
4949
5050 volScalarField Yt (0.0 *Y[0 ]);
5151
@@ -57,12 +57,12 @@ time_monitor_corrDiff += double(end - start) / double(CLOCKS_PER_SEC);
5757
5858 if (!inviscid)
5959 {
60- hDiffCorrFlux += chemistry->hai (i)*(chemistry->rhoD (i)*fvc::grad (Yi) - Yi*sumYDiffError);
61- diffAlphaD += fvc::laplacian (thermo.alpha ()*chemistry->hai (i), Yi);
60+ hDiffCorrFlux += chemistry->hei (i)*(chemistry->rhoD (i)*fvc::grad (Yi) - Yi*sumYDiffError);
61+ diffAlphaD += fvc::laplacian (thermo.alpha ()*chemistry->hei (i), Yi);
6262 }
6363
6464 // if (i != inertIndex)
65- {
65+ {
6666 if ((ddtSchemes == " RK2SSP" ) || (ddtSchemes == " RK3SSP" ))
6767 {
6868 rhoYi_rhs = -fvc::div (rhoPhiYi[i]);
@@ -72,12 +72,12 @@ time_monitor_corrDiff += double(end - start) / double(CLOCKS_PER_SEC);
7272 rhoYi_rhs.ref () += chemistry->wrate (i);
7373 Info <<" max reaction rate " << Yi.name () << " is " << max (chemistry->wrate (i)).value () << endl;
7474 }
75-
75+
7676
7777 rhoYi[i] = rkcoe1[nrk]*rhoYi_save[i]
7878 + rkcoe2[nrk]*rhoYi[i]
7979 + rkcoe3[nrk]*rhoYi_rhs*runTime.deltaT ();
80-
80+
8181 Yi=rhoYi[i]/rho;
8282 Yi.max (0.0 );
8383
@@ -86,10 +86,10 @@ time_monitor_corrDiff += double(end - start) / double(CLOCKS_PER_SEC);
8686 const surfaceScalarField phiUc = linearInterpolate (sumYDiffError) & mesh.Sf ();
8787 tmp<volScalarField> DEff = chemistry->rhoD (i) + turbulence->mut ()/Sct;
8888
89- rhoYi_rhs =
89+ rhoYi_rhs =
9090 (
9191 turbName == " laminar"
92- ? (fvc::laplacian (DEff (), Yi) - fvc::div (phiUc,Yi," div(phi,Yi_h)" ))
92+ ? (fvc::laplacian (DEff (), Yi) - fvc::div (phiUc,Yi," div(phi,Yi_h)" ))
9393 : fvc::laplacian (DEff (), Yi)
9494 );
9595
@@ -103,7 +103,7 @@ time_monitor_corrDiff += double(end - start) / double(CLOCKS_PER_SEC);
103103 Yi.correctBoundaryConditions ();
104104 rhoYi[i] = rho*Yi;
105105
106- }
106+ }
107107 else
108108 {
109109 // original convection term
@@ -115,12 +115,12 @@ time_monitor_corrDiff += double(end - start) / double(CLOCKS_PER_SEC);
115115 // combustion->R(Yi)
116116 // + parcels.SYi(i, Yi)
117117 // );
118-
118+
119119 solve
120120 (
121121 fvm::ddt (rhoYi[i])
122122 + fvc::div (rhoPhiYi[i])
123- ==
123+ ==
124124 chemistry->RR (i)
125125 + parcels.SYi (i, rhoYi[i])
126126 );
@@ -134,11 +134,11 @@ time_monitor_corrDiff += double(end - start) / double(CLOCKS_PER_SEC);
134134 tmp<volScalarField> DEff = chemistry->rhoD (i) + turbulence->mut ()/Sct;
135135
136136 // original term
137- // YiEqn -=
137+ // YiEqn -=
138138 // (
139139 // turbName == "laminar"
140140 // ? (fvm::laplacian(DEff(), Yi) - mvConvection->fvmDiv(phiUc, Yi))
141- // : fvm::laplacian(DEff(), Yi)
141+ // : fvm::laplacian(DEff(), Yi)
142142 // );
143143
144144
@@ -165,7 +165,7 @@ time_monitor_corrDiff += double(end - start) / double(CLOCKS_PER_SEC);
165165 // Yi.max(0.0);
166166 rhoYi[i] = rho*Yi;
167167
168- }
168+ }
169169 Yt += Yi;
170170 }
171171 }
0 commit comments