From 00140add7180f5b0f8049b8585d80f6394c3d453 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 13 Jan 2026 07:39:10 +0000 Subject: [PATCH 1/2] Initial plan From 485b0d9abaf775d9f5faabc52a1fdb6218273de8 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 13 Jan 2026 07:47:01 +0000 Subject: [PATCH 2/2] fix: use absolute enthalpy in df0DFoam Co-authored-by: TimoLin <7792396+TimoLin@users.noreply.github.com> --- applications/solvers/df0DFoam/createFields.H | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/applications/solvers/df0DFoam/createFields.H b/applications/solvers/df0DFoam/createFields.H index 5ac2944f..f0f29c06 100644 --- a/applications/solvers/df0DFoam/createFields.H +++ b/applications/solvers/df0DFoam/createFields.H @@ -2,7 +2,7 @@ Info<< "Reading thermophysical properties\n" << endl; -CanteraMixture::setEnergyName("hs"); +CanteraMixture::setEnergyName("ha"); // fluidThermo* pThermo = new hePsiThermo(mesh, word::null); fluidThermo* pThermo = new heRhoThermo(mesh, word::null); fluidThermo& thermo = *pThermo; @@ -126,4 +126,4 @@ scalar u0 = he[0] - p[0]/rho[0]; #ifdef USE_LIBTORCH const Switch log_ = CanteraTorchProperties.subDict("TorchSettings").lookupOrDefault("log", false); const Switch torch_ = CanteraTorchProperties.subDict("TorchSettings").lookupOrDefault("torch", false); -#endif \ No newline at end of file +#endif