Skip to content

Commit fd2b033

Browse files
authored
Merge pull request #293 from deepmodeling/zhixchen-patch-1
Update EEqn.H, change alphaEff to alpha for laminar
2 parents 9860039 + 30633ea commit fd2b033

File tree

1 file changed

+15
-17
lines changed
  • applications/solvers/dfLowMachFoam

1 file changed

+15
-17
lines changed

applications/solvers/dfLowMachFoam/EEqn.H

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,27 @@
33

44
fvScalarMatrix EEqn
55
(
6-
turbName == "laminar"
7-
?
8-
(
9-
fvm::ddt(rho, he) + mvConvection->fvmDiv(phi, he)
10-
+ fvc::ddt(rho, K) + fvc::div(phi, K)
11-
- dpdt
12-
- fvm::laplacian(turbulence->alphaEff(), he)
13-
+ diffAlphaD
14-
==
15-
fvc::div(hDiffCorrFlux)
16-
)
17-
:
18-
(
6+
197
fvm::ddt(rho, he) + mvConvection->fvmDiv(phi, he)
208
+ fvc::ddt(rho, K) + fvc::div(phi, K)
219
- dpdt
22-
- fvm::laplacian(turbulence->alphaEff(), he)
23-
)
10+
==
11+
(
12+
turbName == "laminar"
13+
?
14+
(
15+
fvm::laplacian(turbulence->alpha(), he)
16+
- diffAlphaD
17+
+ fvc::div(hDiffCorrFlux)
18+
)
19+
:
20+
(
21+
fvm::laplacian(turbulence->alphaEff(), he)
22+
)
23+
)
2424
);
2525

2626
EEqn.relax();
2727

2828
EEqn.solve("ha");
29-
30-
3129
}

0 commit comments

Comments
 (0)