Skip to content

Commit

Permalink
Merge pull request deepmodeling#416 from pkuLmq/master
Browse files Browse the repository at this point in the history
fix on coefficients of RK3
  • Loading branch information
JX278 authored Jan 4, 2024
2 parents 94c068d + d619453 commit 6fc4848
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion applications/solvers/dfHighSpeedFoam/createFieldsSave.H
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ else if(ddtSchemes == "RK3SSP")
{
rkcoe1[0]=1.0; rkcoe2[0]=0.0; rkcoe3[0]=1.0;
rkcoe1[1]=0.75; rkcoe2[1]=0.25; rkcoe3[1]=0.25;
rkcoe1[2]=0.33; rkcoe2[2]=0.66; rkcoe3[2]=0.66;
rkcoe1[2]=1.0/3.0; rkcoe2[2]=2.0/3.0; rkcoe3[2]=2.0/3.0;
rk=3;
}
2 changes: 1 addition & 1 deletion applications/solvers/dfHighSpeedFoam/rhoYEqn.H
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ time_monitor_corrDiff += double(end - start) / double(CLOCKS_PER_SEC);
rhoYi_rhs =
(
turbName == "laminar"
? (fvc::laplacian(DEff(), Yi) - fvc::div(phiUc,Yi,"div(phic,Yi)"))
? (fvc::laplacian(DEff(), Yi) - fvc::div(phiUc,Yi,"div(phi,Yi_h)"))
: fvc::laplacian(DEff(), Yi)
);

Expand Down

0 comments on commit 6fc4848

Please sign in to comment.