Board index FlightGear Development Aircraft Flight dynamics model

YASim users wanted

Good sims require good FDMs (the "thing" that makes an aircraft behave like an aircraft).

YASim users wanted

Postby jsb » Sat Dec 09, 2017 3:02 pm

Dear all,

I am working on some little features to extend yasim functionality, basically to support aircraft developers. I believe yasim CLI tools could give us some more information about the model that has been calculated from our XML input.
E.g. I have added some code to calculate the MAC of a wing and have the CLI tool print it as well as the CG_x as % of MAC.
I also added some XML attributes that allow you to input mass, altitude, speed in kg,meters,kmh or lbs,ft,knots as it can improve the readability and you do not have to wonder what units are used (of course the old attibutes are still available and unchanged).

I also discussed some ideas with Buckaroo (the guy who wrote the yasim guide) to add some more XML attributes to configure some details, e.g. for flaps.

Any ideas or whishes regarding this from your side?

Please keep in mind YASim is YASim and not jsbsim and it should stay this way, so your "feature requests" shouldn't be too complex. It is more about those little details that could make life easier or add flexibility by making things configurable.
jsb
 
Posts: 285
Joined: Sat Oct 25, 2014 9:17 pm
Location: Hamburg, Germany
Callsign: D-JSB
Version: next
OS: Win7/Linux

Re: YASim users wanted

Postby Octal450 » Sat Dec 09, 2017 3:24 pm

Fix EGT in the jet engines
Simulate proper startup/shutdown, so users don't have to work around it and fake it.

J
Skillset: JSBsim Flight Dynamics, Systems, Canvas, Autoflight/Control, Instrumentation, Animations
Aircraft: A320-family, MD-11, MD-80, Contribs in a few others

Octal450's GitHub|Launcher Catalog
|Airbus Dev Discord|Octal450 Hangar Dev Discord
User avatar
Octal450
 
Posts: 5601
Joined: Tue Oct 06, 2015 1:51 pm
Location: Huntsville, AL
Callsign: WTF411
Version: next
OS: Windows 11

Re: YASim users wanted

Postby StuartC » Sat Dec 09, 2017 3:34 pm

Proper Turbine support for choppers using engine function would be good. It would save the tons of extra nasal.
StuartC
 
Posts: 3179
Joined: Fri Jun 18, 2010 9:18 pm
Location: Arse end of the Universe
Callsign: WF01
Version: 2019.1
OS: W10 64 bit

Re: YASim users wanted

Postby LesterBoffo » Sat Dec 09, 2017 4:39 pm

P.S. Thanks for taking on improving the YAsim coding.

Some sort of data table look up for airfoils and propellers, honest propeller gyroscopic precession forces, and number of propeller blades, off the top of my head.

Fuselage drag with Alpha and Beta angles, maybe as simple as categorizing them as '0' for least draggy to '4' for most draggy?

Icing on the cake, Pie in the Sky stuff: A real fix for turbine helicopters lack of native fuel consumption, exhaust gas section and pressure ratio to power turbine power levels, tapping the cold air section for reactive forces.

Reciprocating engine categories such as Cetane (Diesel or Compression ignition) and Octane (spark ignited engines), bore and stroke, power and torque curves, icing effects on carbed engines, gasoline engine misfire with too rich of fuel mixture at altitude.
Last edited by LesterBoffo on Sun Dec 10, 2017 12:15 am, edited 2 times in total.
User avatar
LesterBoffo
 
Posts: 2171
Joined: Sun Oct 02, 2011 5:02 pm
Location: Oregon, USA
Callsign: LesBof
Version: 2018.3.2
OS: Win10 Pro

Re: YASim users wanted

Postby DFaber » Sat Dec 09, 2017 7:00 pm

Many thanks for your efforts to improve Yasim. It's really apreciated!

I really miss an option to "subtract" a wing element from the simulation. Use cases are Failure simulation, which I currently do by adding lots of drag. Also carrier aircraft with foldable wings would benefit from this feature when they have to fit through a narrow elevator.

It would be nice to have more control over the control surfaces on wing/mstab elements, e.g. deploy slats or spoilers on one wing only. The F-111 and P-61 use wing spoilers for roll control. The slats on the bf109 might open only on one side in tight turns.

Speaking of the bf109, a variable pitch propeller would be fantastic.

Greetings

Detlef
Detlef Faber
FlightGear Development:
http://flightgear-de.net

my 3D-Art:
https://www.sol2500.net
DFaber
 
Posts: 709
Joined: Fri Dec 01, 2006 8:51 pm
Location: Aachen, Germany
Version: GIT
OS: Linux

Re: YASim users wanted

Postby Michat » Sat Dec 09, 2017 11:00 pm

Hi

Two things that I want to point but have no idea it's is totally related to the YASIM paradigma.

A .Quite notice in small models but in general happen too. I note how difficult is to get an speed reduction of the aerodynamic model. Of course this should be related with the xml e.g flaps you talk about.

B. Just after Auto throttle Set Off. It's pretty noticiable. How much throttle user must to apply to the engine throttle control, In my experience with a joystick lever. Don't know if happens with keyboard or mouse, since I never use them.
I have to move up or down the thottle lever to some point where to get the throttle sensibility back and then make quick adjustments and fine tunning to get again balance and the desire speed set previously by the APP Speed. HUD helps. I'm not sure if is related to YASIM or happen in JSB ? (Good nick for a YASIM modeler) Maybe is a problem on the FG side.

I'm gonna say that all my favorites aircraft are YASIM because I have a favor for those russian models performance and design.The programmer have to be a SuperShamman with special tactic logic- anti-logic agaisnt YASYM logic paradigm in order to satisfy the output we get , vivid alive and kicking models.


At the other side as the basic geometrical YASIM reference I have our wonderful http://helijah.free.fr/flightgear/hangaren.htm.

I know Marc Kraus from The Lake of Constance Hangar had to deal with a lot of unsolvable problems of YASIM especially notice in our dear I-16 Polikarpov Bombable for Helijah Hangar. We cannot decrease speed easily. Happens only with small YASIM aircraft ? Related with A.

What I find flying Herbyw's russian aircraft YASIM models exceeded my expectations of what is possible or not in YASIM. Those big models were silly floaty once. But no more since there is some magic on it. Dont't know if this magic is also applicable to small aircraft, since others have declared unsolvable.

Your project could help thousand of aircrafts and few developers.

.
29.92
User avatar
Michat
 
Posts: 1229
Joined: Mon Jan 25, 2010 7:24 pm
Location: Spain
Version: 191b
OS: MX 21 Fluxbox oniMac

Re: YASim users wanted

Postby LesterBoffo » Sun Dec 10, 2017 12:04 am

I'd just like to add for Michat's comments about certain aircraft coasting with no engine/propeller aerobraking with the throttle closed. This might be because of, at least with piston engine planes with a governed, variable pitch, constant speed propeller, the default coding is for a propeller to be controlled through the 'advance' channel which is more of an engine governor function. I've found that adding this line into the engine section
Code: Select all
min-throttle="0.05"
will force the engine to close it's throttle to a slower idle speed, it also improves taxiing. This entry will need slight adjustment, up or down depending on performance and whether you have supercharging.
User avatar
LesterBoffo
 
Posts: 2171
Joined: Sun Oct 02, 2011 5:02 pm
Location: Oregon, USA
Callsign: LesBof
Version: 2018.3.2
OS: Win10 Pro

Re: YASim users wanted

Postby D-ECHO » Sun Dec 10, 2017 7:29 am

Hi jsb and thanks for your effort :D
It would be really great to have a drag by extension parameter for gears so the ac dev can set how much drag is created by the gear when extended
D-ECHO
 
Posts: 2462
Joined: Sat May 09, 2015 1:31 pm
Pronouns: Bea (she/her)
Version: next

Re: YASim users wanted

Postby LesterBoffo » Sun Dec 10, 2017 4:34 pm

D-ECHO wrote in Sun Dec 10, 2017 7:29 am:...
It would be really great to have a drag by extension parameter for gears so the ac dev can set how much drag is created by the gear when extended


I've found that you can add little vstab entries that do the same thing.

IIRC, YAsim aircraft with retracts supposedly are able to mimic gear drag by adding an
Code: Select all
extension="x.xx"
entry to the gear. But I've found it's minimal if at all.

Here's a typical vstab entry I use..
Code: Select all
 <!-- Nose gear drag -->

   <vstab x="3.95" y="0" z="-1.049"
             taper="0"
             incidence="0"
             twist="0"
             chord="0.294"
             sweep="0"
             camber="0.0"
             dihedral="0"
             length="1.093">
                   <stall aoa="30"
             width="18"
             peak="5.5"/>
      <flap0 start="0.00"
                end="1"
                lift="0.00"
                drag="1.386"/>
      <control-input axis="/controls/gear/gear-down"
                            control="FLAP0"/>
      <control-output control="FLAP0"     
                                                 prop="/gear/gear[0]/position-norm"/>
   <control-speed control="FLAP0"
                            transition-time="5" />
   </vstab>


Admittedly it's a fudge at best, but it does allow you to scale your gear length and size, just make certain it doesn't extend past the gear's ground contact point, match the gear's transition timing, and you might take into account whether the gear doors are left open when extended because their being open will add to the scaling of the drag.
User avatar
LesterBoffo
 
Posts: 2171
Joined: Sun Oct 02, 2011 5:02 pm
Location: Oregon, USA
Callsign: LesBof
Version: 2018.3.2
OS: Win10 Pro

Re: YASim users wanted

Postby enrogue » Mon Dec 11, 2017 8:44 pm

I'm working on a patch for decoupling gear drag from compression - the drag area of each gear unit is currently tied to 3x the compression number, which is definitely not ideal

I also have an updated version of the (now ancient) yasim ground friction fix - just in the middle of updating it to be turned on & off (and not be the default)
User avatar
enrogue
 
Posts: 294
Joined: Mon May 19, 2014 7:40 pm
Location: London (UK)
Callsign: enrogue
OS: Ubuntu, macOS

Re: YASim users wanted

Postby fmg » Mon Dec 11, 2017 9:25 pm

Great attempt!
Just a few wishes/thoughts:

Crosswind sensibility seemed to be to strong during start and landing (taildraggers).

Possibility to have several gears (fixed and retractable) to simulate planes with skid and start trolley so that you don't crash when trolley is retracted/away.

Strange behavior of piston engines. Rotation gets up in a climb and down in a dive. Shouldn't it be the over way round?

Rocket engine support.

More engine parameters. E. g. to tune fuel consumption.

No automilling propellers.

No sliding on ground while parking.

Supersonic effects.
User avatar
fmg
 
Posts: 565
Joined: Tue Jun 29, 2010 6:13 pm
Location: EDDI
Callsign: fotomas
Version: 2
OS: Mac OS X 10.6.8

Re: YASim users wanted

Postby D-ECHO » Tue Dec 12, 2017 5:24 pm

@enrogue: Great to hear
@Lester: Yep, definetely possible, but quite dirty, would be great to have some yasim built-in thing

Some other thoughts from my side:
support of electric propeller engines
spin
more realistic stall characteristics (if somehow possible)
possibility to slip
D-ECHO
 
Posts: 2462
Joined: Sat May 09, 2015 1:31 pm
Pronouns: Bea (she/her)
Version: next

Re: YASim users wanted

Postby jsb » Sat Dec 23, 2017 4:10 pm

Thanks for all the input and sorry for my delayed answer. I was a little busy but my latest work just made it into the FG repo ("next") and I updated the http://wiki.flightgear.org/YASim :D
The CLI tool will output more information about the model that YASim created from the XML file.

Regarding your answers and ideas:
Very interesting input, i really appreciate it :)
Some of them might be quite easy to implement, most of them are beyond my current knowledge so I definitly need more details.

You may want edit your posts and add
1) how you'd like something to be configured in the XML e.g. define new attibutes that should be added to the XML parser
2) specifiy what behaviour you would like to see e.g. give math model for values to be calculated.

Just to pick the first as an example:
Fix EGT in the jet engines
Simulate proper startup/shutdown, so users don't have to work around it and fake it.

What does "fix" or "proper" mean in this case? Should EGT be a fixed value? Should it be calculated from other values and if so what formular and parameters are needed?
I guess we could search for nasal code in different aircrafts and look how they do things but it would be better to have someone with knowledge who could explain and give the equations we need :)

Merry x-mas :)
jsb
 
Posts: 285
Joined: Sat Oct 25, 2014 9:17 pm
Location: Hamburg, Germany
Callsign: D-JSB
Version: next
OS: Win7/Linux

Re: YASim users wanted

Postby Octal450 » Sat Dec 23, 2017 4:27 pm

Well, in Yasim, EGT starts at 20F or something stupid like that with idle engines, it's very unrealistic. JSBs isn't much better, so I'm working on a custom equation for that. Will get back to you.

Kind Regards,
Josh
Skillset: JSBsim Flight Dynamics, Systems, Canvas, Autoflight/Control, Instrumentation, Animations
Aircraft: A320-family, MD-11, MD-80, Contribs in a few others

Octal450's GitHub|Launcher Catalog
|Airbus Dev Discord|Octal450 Hangar Dev Discord
User avatar
Octal450
 
Posts: 5601
Joined: Tue Oct 06, 2015 1:51 pm
Location: Huntsville, AL
Callsign: WTF411
Version: next
OS: Windows 11

Re: YASim users wanted

Postby LesterBoffo » Sat Dec 23, 2017 6:30 pm

The problem with automilling propellers can be fixed at the animation .xml level by adding this to the propeller spin animation group.

Code: Select all
    <condition>
      <greater-than>
        <property>engines/engine[0]/rpm</property>
        <value> 12 </value>
      </greater-than>
    </condition>


You'll want to increase the value if the engine has a large, geared propeller.

Of course to fix this at the YASim coding level would have to account for how many cylinders a recip engine has, their displacement in bore and stroke, and throttling effects, which would require a ton of internal lookup tables and and some complex maths needing to be run continuously while the recip engine runs.

The upshot of this is a very realistic fuel consumption and other operational features like engine misfire/damage from running outside of fuel mixture stoichiometric, or air to fuel ratios for the altitude being flown at.
User avatar
LesterBoffo
 
Posts: 2171
Joined: Sun Oct 02, 2011 5:02 pm
Location: Oregon, USA
Callsign: LesBof
Version: 2018.3.2
OS: Win10 Pro

Next

Return to Flight dynamics model

Who is online

Users browsing this forum: No registered users and 2 guests