Skip to content
This repository has been archived by the owner on Feb 2, 2022. It is now read-only.

Commit

Permalink
Add kinetic energy field K correction (v0.4.2-alpha)
Browse files Browse the repository at this point in the history
  • Loading branch information
staneuski committed Apr 14, 2020
1 parent c22ef54 commit 61c2137
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions solvers/multiCompressionFoam/createFieldRefs.H
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
volScalarField& T = thermo.T();
volScalarField& e = thermo.he();
const volScalarField& psi = thermo.psi(); // 1/R/T - compressibility [s^2/m^2]
const volScalarField& mu = thermo.mu();
2 changes: 0 additions & 2 deletions solvers/multiCompressionFoam/createFields.H
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ autoPtr<fluidThermo> pThermo
fluidThermo& thermo = pThermo();
thermo.validate(args.executable(), "h", "e");

volScalarField& e = thermo.he(); /*FIXME thermo.he() creates negative enengy*/

volScalarField& p = thermo.p(); // Ref

Info<< "Reading velocity field U" << endl;
Expand Down
2 changes: 2 additions & 0 deletions solvers/multiCompressionFoam/multiCompressionFoam.C
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,9 @@ int main(int argc, char *argv[])

UEqn.relax();
UEqn.solve();

fvOptions.correct(U);
K = 0.5*magSqr(U);

fvScalarMatrix EEqn
(
Expand Down

0 comments on commit 61c2137

Please sign in to comment.