YASim: Difference between revisions

Jump to navigation Jump to search
514 bytes added ,  31 January 2018
m
no edit summary
(Updated CLI output example)
mNo edit summary
Line 72: Line 72:
Wing section support to define variable geometry (geometry parameters per section)
Wing section support to define variable geometry (geometry parameters per section)
* More than one <wing>-element is allowed now.  
* More than one <wing>-element is allowed now.  
* x, y, z, chord and incidence attribute shall be specifed only for the first <wing> in the XML file. They will be overriden for subsequent <wing>-elements.
* x, y, z, chord and incidence attribute shall be specifed only for the first <wing> in the XML file. They will be overridden for subsequent <wing>-elements.
* Use '''append="1"''' for additional '''wing''' elements to skip x, y, z, chord and incidence attribute as the will be calculated from previous '''wing''' element tip chord. This workaround is currently needed due to limitations in the XML parser.
* Use '''append="1"''' for additional '''wing''' elements to skip x, y, z, chord and incidence attribute as the will be calculated from previous '''wing''' element tip chord. This workaround is currently needed due to limitations in the XML parser.


Line 81: Line 81:
'''New in 2018.1:'''
'''New in 2018.1:'''
* '''hstab''' supports sections in the same way '''wing''' does, but it is still considered as /the/ (only) hstab used by the solver.
* '''hstab''' supports sections in the same way '''wing''' does, but it is still considered as /the/ (only) hstab used by the solver.
*  '''incidence-max-deg''' and '''incidence-max-deg''': optional attributes to limit valid result range fore the solver.
*  '''incidence-max-deg''' and '''incidence-max-deg''': optional attributes to limit valid result range fore the solver. Use with care or you won't get a solution.


==== vstab ====
==== vstab ====
Line 502: Line 502:
{{Note|YASim will ignore the root point (x,y,z), the chord length and the incidence attributes, if you add "append" and calculate those from the previous wing section. }}
{{Note|YASim will ignore the root point (x,y,z), the chord length and the incidence attributes, if you add "append" and calculate those from the previous wing section. }}
MAC calculation works for the whole wing.
MAC calculation works for the whole wing.
{{warning|Aircrafts using this feature will not work with older versions of flightgear. }}
To keep the aircraft backward compatible for a while, it is recommended to create a copy of its yasim XML file for development.
Once you are happy with the CG and wing parameters you can use the output of the YASim CLI tool to modifiy the original XML.
The tool will output the needed x,y,z etc per wing section to create a XML in old format with (only one) <wing> + <mstab>.


=== More information from CLI tools ===
=== More information from CLI tools ===
252

edits

Navigation menu