Skip to content

Commit 6fc4848

Browse files
authored
Merge pull request #416 from pkuLmq/master
fix on coefficients of RK3
2 parents 94c068d + d619453 commit 6fc4848

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

applications/solvers/dfHighSpeedFoam/createFieldsSave.H

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@ else if(ddtSchemes == "RK3SSP")
4141
{
4242
rkcoe1[0]=1.0; rkcoe2[0]=0.0; rkcoe3[0]=1.0;
4343
rkcoe1[1]=0.75; rkcoe2[1]=0.25; rkcoe3[1]=0.25;
44-
rkcoe1[2]=0.33; rkcoe2[2]=0.66; rkcoe3[2]=0.66;
44+
rkcoe1[2]=1.0/3.0; rkcoe2[2]=2.0/3.0; rkcoe3[2]=2.0/3.0;
4545
rk=3;
4646
}

applications/solvers/dfHighSpeedFoam/rhoYEqn.H

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ time_monitor_corrDiff += double(end - start) / double(CLOCKS_PER_SEC);
110110
rhoYi_rhs =
111111
(
112112
turbName == "laminar"
113-
? (fvc::laplacian(DEff(), Yi) - fvc::div(phiUc,Yi,"div(phic,Yi)"))
113+
? (fvc::laplacian(DEff(), Yi) - fvc::div(phiUc,Yi,"div(phi,Yi_h)"))
114114
: fvc::laplacian(DEff(), Yi)
115115
);
116116

0 commit comments

Comments
 (0)