Re: [Flightgear-devel] re manifold pressure

2001-12-21 Thread Alex Perry

 The reason I wanted to add this feature was for aircraft fitted with 
 variable pitch props.  As it is, its a bit too easy to set a given rpm 
 and manifold pressure for cruise.  In the real world as the rpm is 
 changed by changing the prop lever the manifold pressure should 
 change very slightly, needing a slight adjustment of the throttle 
 again to get the desired settings, and thus possibly another slight 
 adjustment of the prop lever if its not a constant speed prop.  Thats 
 what I would think anyway, IANAP. 

The easy way is to model the throttle lever as a variable size hole
and the engine as a volume flowrate that is proportional to RPM.
The input to the throttle and the output from the engine are both
the static pressure (as reported by the environmental module).
Solving tells you immediately what the instantaneous MP should be.
Given the MP, you have the energy required to crank the engine,
due to the volumetric flow being pressurized from MP up to static.
Combining the crank torque with friction and prop thrust
tells you whether the engine will speed up or slow down.

There is the same thing implemented in the steam for the vac pump.

Oh, and the prop control is a pure integrator, complete with all the
overshoot problems and the like you'd expect from control theory,
with the gain term more or less proportional to oil temperature
in fahrenheit (if you want a lazy way to model it) so that the
time constant is about one second in normal operating modes.

As a rule of thumb, changing altitude or any of the engine controls
on a controllable prop aircraft will usually affect both RPM and MP.
It is probably a good idea to detect overpressure-underspeed (on the
C310) and cause an engine failure ... to encourage careful usage...!

___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel



[Flightgear-devel] re manifold pressure

2001-12-14 Thread D Luff

Jon Bernt writes:

I added this in last night to JSBSim. Don't know if it's correct or 
not, it
just felt right. Do you have something already in LaRCSim that 
we might
steal? Or is what I put in OK:

void FGPiston::doManifoldPressure(void)
{
  if (Running ) {
ManifoldPressure_inHg = MinManifoldPressure_inHg +
(Throttle * (MaxManifoldPressure_inHg -
 MinManifoldPressure_inHg));
  } else if (Cranking) {
ManifoldPressure_inHg += dt*(ManifoldPressure_inHg -
  MinManifoldPressure_inHg / 6.0)/2.0;
  } else {
ManifoldPressure_inHg = 0.0;
  }
}

It was a quick and dirty fix. Comments?

Jon,

If its not running or cranking, manifold pressure = ambient (~29.92 
in HG), NOT zero.  (see LaRCsim)  

If its running or cranking leave it as it is.

There should be a better handling of the manifold pressure at 
different rpms (pressure drop across the throttle is mostly a 
function of throttle position, but partly a function of the flow rate 
past the throttle) - this is on my todo list.

Right now I'm wobbly after the Christmas Do so this is my last 
comment on this for a while.

Cheers - Dave

___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel