Skip to content

Commit 485b0d9

Browse files
CopilotTimoLin
andcommitted
fix: use absolute enthalpy in df0DFoam
Co-authored-by: TimoLin <[email protected]>
1 parent 00140ad commit 485b0d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

applications/solvers/df0DFoam/createFields.H

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Info<< "Reading thermophysical properties\n" << endl;
44

5-
CanteraMixture::setEnergyName("hs");
5+
CanteraMixture::setEnergyName("ha");
66
// fluidThermo* pThermo = new hePsiThermo<psiThermo, CanteraMixture>(mesh, word::null);
77
fluidThermo* pThermo = new heRhoThermo<rhoThermo, CanteraMixture>(mesh, word::null);
88
fluidThermo& thermo = *pThermo;
@@ -126,4 +126,4 @@ scalar u0 = he[0] - p[0]/rho[0];
126126
#ifdef USE_LIBTORCH
127127
const Switch log_ = CanteraTorchProperties.subDict("TorchSettings").lookupOrDefault("log", false);
128128
const Switch torch_ = CanteraTorchProperties.subDict("TorchSettings").lookupOrDefault("torch", false);
129-
#endif
129+
#endif

0 commit comments

Comments
 (0)