Frederic Bouvier writes: > There is an invalid float operation in FGPiston when the engine is off : > > in void FGPiston::doAirFlow(void) > ... > double swept_volume = (displacement_SI * (RPM/60)) / 2; > double v_dot_air = swept_volume * volumetric_efficiency; > m_dot_air = v_dot_air * rho_air_manifold; > ... > RPM is zero so m_dot_air is zero, and in void FGPiston::doEGT(void) > ... > double heat_capacity_exhaust = (Cp_air * m_dot_air) + (Cp_fuel * > m_dot_fuel); > double delta_T_exhaust = enthalpy_exhaust / heat_capacity_exhaust; > ... > heat_capacity_exhaust that depends on m_dot_air is zero so we should have a > div by zero error but enthalpy_exhaust is also zero > > I think we need a special case for engine off here. >
Good catch. Cheers - Dave -- [EMAIL PROTECTED] _______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
