From 961804b03e59589576955cd4a1ed5965aaaf58ae Mon Sep 17 00:00:00 2001 From: david Date: Wed, 3 Jul 2002 04:13:28 +0000 Subject: [PATCH] Patch from Dave Luff to use dt properly in CHT calculation. --- src/FDM/JSBSim/FGPiston.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/FDM/JSBSim/FGPiston.cpp b/src/FDM/JSBSim/FGPiston.cpp index 9b0e5070c..cdafc5e98 100644 --- a/src/FDM/JSBSim/FGPiston.cpp +++ b/src/FDM/JSBSim/FGPiston.cpp @@ -459,7 +459,8 @@ void FGPiston::doCHT(void) double HeatCapacityCylinderHead = CpCylinderHead * MassCylinderHead; - CylinderHeadTemp_degK += dqdt_cylinder_head / HeatCapacityCylinderHead; + CylinderHeadTemp_degK += + (dqdt_cylinder_head / HeatCapacityCylinderHead) * dt; } //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%