Replies: 6 comments 14 replies
-
Doesn't the |
Beta Was this translation helpful? Give feedback.
-
But that's real life right? If the engine is really cut-off, otherwise if you don't want the start up time then you would need to leave the engine in idle. |
Beta Was this translation helpful? Give feedback.
-
Yes, an idle engine will consume some amount of fuel. Again that's reality. I guess I'm confused, isn't the aim to model reality in terms of aircraft with multiple engines and/or engine types? So for example say I'm modelling some e-vtol aircraft which has say 4 electric engines (with virtually zero start-up time) and say 1 piston engine for cruise which has some start-up time on the order of 10s etc. Then surely in terms of modelling the system you would then either choose to use the cut-off option or the idle option, and JSBSim would model both options fairly realistically?
Not sure I'm really understanding your aim. Convenient in terms of JSBSim/FlightGear user, or the convenience of having JSBSim realistically model the actual configuration? |
Beta Was this translation helpful? Give feedback.
-
Hmm, does at first glance seem like a fairly hacky solution. Share a link to the commit in your fork, when I take a look I only see a commit from 15 days ago to do with Aeromatic. Are you talking about the aircraft now being defined with multiple engine options under jsbsim/aircraft/c172p/c172p.xml Lines 201 to 219 in 6461c86 |
Beta Was this translation helpful? Give feedback.
-
Hmm, isn't this approach going to be problematic? So if I've got a B747 with say both GE and PW engines then we'll have So what do gauges or anyone else who wants to query the 'current' engine(s) do in terms of property lookups? For example, from the 737 cruise script: <property>propulsion/engine[0]/n2</property>
<property>propulsion/engine[1]/n2</property>
<property>propulsion/engine[0]/thrust-lbs</property>
<property>propulsion/engine[1]/thrust-lbs</property> And existing code/script that sets engines running? <event name="Set engines running">
<condition> simulation/sim-time-sec le 0.1 </condition>
<set name="propulsion/engine[0]/set-running" value="1"/>
<set name="propulsion/engine[1]/set-running" value="1"/> You can specify -1 in the initial conditions file for example to start all engines running, so in the 747 example all 8 would be started. But if a user didn't specify -1 but rather an explicit set then not all 8 engines would be started. And is this going to work with throttle inputs? ThrottlePos = in.ThrottlePos[EngineNumber]; What happens with the trim routines? If you were going to go down this route it sounds like what you really need is some symbolic link feature in the property tree. |
Beta Was this translation helpful? Give feedback.
-
After rethinking what you said and what I really want to achieve I've come to the conclusion I was too focused on solving the problem the way others already had implemented it in their aircraft configuration. I guess I really wanted to solve the problem that having multiple JSBSim configuration files with different engine specifications would mean that changes to the aerodynamics sections would be a nightmare to keep synchronized. Or so I thought. It turns out you could easily include a separate aerodynamic file from multiple configuration files. Same goes for ground reactions and external reactions. I'll experiment a bit more to see how this works out. |
Beta Was this translation helpful? Give feedback.
-
For FlightGear it starts to become common to have an aircraft with multiple engine options selectable at runtime.
Therefore I was considering adding an enabled/serviceable boolean which declares whether an engine/thruster combination should use fuel and return calculated forces and moments or not. I think I would want to leave the rest as is: e.g. all defined engines go to a running state at the the startup procedure which means that engine selection can take place after engine run up.
Does anybody have any objections or thoughts on this?
Beta Was this translation helpful? Give feedback.
All reactions