2,732
edits
(Heading cleanup) |
Red Leader (talk | contribs) No edit summary |
||
Line 325: | Line 325: | ||
== Command Line == | == Command Line == | ||
=== | === Windows === | ||
By | By using the standard command line, we can see what the YASim solver is calculating. First, open up Command Prompt, enter in the location of yasim.exe, and then the location of the YASim XML file. For example, here's what you would type in for a standard Windows [[Changelog_2.12|FlightGear 2.12.0]] installation, and viewing the [[F-14_Tomcat|F-14B's]] YASim file. | ||
{{Note|You can copy & paste the examples into Command Prompt by right-clicking on the title and navigate to Edit > Paste. Then, click Enter to execute.}} | |||
<code>"C:\Program Files\FlightGear\bin\Win32\yasim.exe" "C:\Program Files\FlightGear\data\Aircraft\ | <code>"C:\Program Files\FlightGear\bin\Win32\yasim.exe" "C:\Program Files\FlightGear\data\Aircraft\f-14b\f-14b-yasim.xml"</code> | ||
The results will give many different values. | The results will give many different values. | ||
Line 336: | Line 335: | ||
* '''Drag Coefficient:''' The drag coefficient of the aircraft. | * '''Drag Coefficient:''' The drag coefficient of the aircraft. | ||
* '''Lift Ratio:''' The lift ratio of the aircraft. | * '''Lift Ratio:''' The lift ratio of the aircraft. | ||
* '''Cruise AoA:''' The cruise AoA, from conditions at | * '''Cruise AoA:''' The cruise AoA, from conditions at [[YASim#cruise|<cruise>]] in the xml file. | ||
* '''Tail Incidence:''' The incidence angle of the tail, "solved" by YASim as a way to stabilize the aircraft. | * '''Tail Incidence:''' The incidence angle of the tail, "solved" by YASim as a way to stabilize the aircraft. | ||
* '''Approach Elevator:''' The approach elevator, from conditions at | * '''Approach Elevator:''' The approach elevator, from conditions at [[YASim#approach|<approach>]] in the xml file. | ||
* '''CG:''' Center of gravity of the aircraft in coordinates. Unless it's supposed to be offset, it should always have a Y value of 0. | * '''CG:''' Center of gravity of the aircraft in coordinates. Unless it's supposed to be offset, it should always have a Y value of 0. | ||
The YASim standalone solver also has some command line flags that change it's behaviour. | The YASim standalone solver also has some command line flags that change it's behaviour. | ||
<code> | <code>"C:\Program Files\FlightGear\bin\Win32\yasim.exe" "C:\Program Files\FlightGear\data\Aircraft\f-14b\f-14b-yasim.xml" -g -a 1000 -s 490</code> | ||
*'''-g :''' Instructs YASim to generate | * '''-g:''' Instructs YASim to generate table-style data instead of the usual solver output. This can be redirected to a file and used in various plotting programs to visualize the actual lift, drag, L/D curves. The columns of the output from left to right are: AoA, Lift, Drag, L/D. (aoa in degrees, lift and drag in G's). | ||
*'''-a | * '''-a <altitude in feet:>''' Run the solver at the given altitude in feet. | ||
*'''-s | * '''-s <speed in knots>:''' Also run at the given airspeed in knots. | ||
Note | {{Note|The values generated by this method are for the aircraft taken as a whole, as solved by YASim, so they differ from the values of the wing airfoil.}} | ||
To get the tabular output for the example above at 1000 ft and 150 knots one would issue: | To get the tabular output for the example above at 1000 ft and 150 knots, and to redirect this to a file, one would issue: | ||
<code>"C:\Program Files\FlightGear\bin\Win32\yasim.exe" "C:\Program Files\FlightGear\data\Aircraft\ | <code>"C:\Program Files\FlightGear\bin\Win32\yasim.exe" "C:\Program Files\FlightGear\data\Aircraft\f-14b\f-14b-yasim.xml" -g -a 1000 -s 150 > "C:\Program Files\FlightGear\yasim.txt"</code> | ||
== YASim design notes == | == YASim design notes == |