jsbsim.js
Version:
JSBSim flight dynamics model ported to JavaScript
310 lines (268 loc) • 14.7 kB
HTML
<HTML xmlns="http://www.w3.org/1999/xhtml">
<HEAD>
<TITLE>Aeromatic for the JSBSim Open Source Flight Dynamics Model</TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<META content="Aeromatic, JSBSim, flight simulation, fdm, flight dynamics, equations of motion" name=keywords>
<LINK media=screen href="StyleSheet2.css" type=text/css rel=stylesheet>
<META content="MSHTML 6.00.6000.16674" name=GENERATOR></HEAD>
<body leftMargin=50 topMargin=50 rightMargin=15>
<DIV id=topTitle align=left>
<DIV id=redBlockText>An <EM>open source</EM>,<BR>platform-independent,<BR>flight dynamics model in C++
</DIV>
</DIV>
<UL class=solidblockmenu>
<LI><A href="http://jsbsim.sourceforge.net/index.html">Home</A></LI>
<LI><A href="http://jsbsim.sourceforge.net/about.html">About Us</A></LI>
<LI><A href="http://jsbsim.sourceforge.net/news.html">News</A></LI>
<LI><A href="http://jsbsim.sourceforge.net/download.html">Download</A></LI>
<LI><A title="JSBSim Reference Manual (PDF)" href="http://jsbsim.sourceforge.net/JSBSimReferenceManual.pdf">Documentation</A></LI>
<LI><A href="http://sourceforge.net/mail/?group_id=19399">Mailing List</A></LI>
<LI><A href="http://jsbsim.sourceforge.net/links.html">Links</A></LI>
<LI><A href="http://www.sf.net/projects/jsbsim">SF.net/JSBSim</A></LI>
<LI><A title="View or file a bug report." href="http://sourceforge.net/tracker/?atid=119399&group_id=19399&func=browse">Bugs</A></LI>
<LI><A title="Make a suggestion to the JSBSim team." href="http://sourceforge.net/tracker/?atid=369399&group_id=19399&func=browse">Suggestions</A></LI>
<LI><A href="http://jsbsim.wiki.sourceforge.net/">Wiki</A> </LI>
<LI><A class=current href="http://jsbsim.sf.net/aeromatic2.html">Aeromatic</A></LI>
</UL>
<DIV id=main align=center>
<DIV id=mainText>
<DIV align=left>
<P><STRONG>Aeromatic</STRONG></P>
<b>version 0.9</b>
<!-- 03 July 2003, David P. Culp, davidculp2@comcast.net -->
<!-- update: 26 July 2003, DPC, new aero.php with flap changes -->
<!-- update: 5 Sept 2003, DPC, added multi-engine prop transport -->
<!-- update: 29 Sept 2003, DPC, added high-alpha/beta drag -->
<!-- update: 16 Oct 2003, DPC, better FCS, version 0.7 -->
<!-- update: 13 Dec 2004, DPC, new configuration file format 2.0 -->
<br><hr>
This form can be used to create aircraft configuration files for
use with the <A href="http://jsbsim.sourceforge.net" target="top">JSBSim</A> Flight
Dynamics Model, the default FDM for the
<A href="http://www.flightgear.org">FlightGear</A> and <a href="http://www.openeaagles.org">
OpenEaagles</a> (etc.) flight simulators. The configuration file format
produced using this utility is version 2.0, and is incompatable with older formats
because of an extensive overhaul of JSBSim's XML code that occured in December
of 2004.
<br><br>
You will need at least two files for a complete configuration, an <i>aircraft</i>
file containing information on the aircraft's mass properties, propulsion, flight
control, aerodynamic properties, etc., an <i>engine</i> file describing the
engine(s), and in the case of a propeller-driven aircraft you will need a
<i>prop</i> file. Aeromatic will generate plausible configuration files for your
aircraft using some simplifying assumptions. Note that Aeromatic allows only one
type of engine to be defined per aircraft. If you want to mix engine types you'll
have to make the necessary changes by hand. Also note that all turbine, turboprop and
rocket engines use the default "direct" thruster.
<br><br>
<b>
Note: After a configuration file has been generated and is displayed in your browser,
you should select (via the menu) "View Source". This is needed because when viewing
aircraft configuration files (for instance), some formatting is performed for web browser
viewing, but if the file is saved in that format it will not work. The source for the
page needs to be viewed, and the file saved with a '.xml' extension.
</b>
<br><br>
For more detailed instructions see the <B><A href="readme-aeromatic.html">How-to</A></B>
<br><br><hr><br>
<!-- *************************************************************************** -->
<!-- * Engine Form * -->
<!-- *************************************************************************** -->
<form action="engine2.php" method="post">
<font color=red size=5>Step 1: The Engine configuration ...</font>
This step is not necessary if you are using an already existing engine
configuration file. In any case you will have to edit the propulsion
section of the aircraft configuration file to ensure that the engine name
is the same as the name of the engine configuration file.
<br><br><br>
<b>Engine Name</b><br>
<input name="ac_enginename" value="my_engine" >
<br><hr align=left width="'%"50"'">
<b>Engine Type</b><br>
<input type="radio" name="ac_enginetype" value="0" checked>piston
<input type="radio" name="ac_enginetype" value="1">turbine
<input type="radio" name="ac_enginetype" value="2">turboprop
<input type="radio" name="ac_enginetype" value="3">rocket
<br><hr align=left width="'%"50"'">
<b>Engine Power or Thrust</b> (per engine, without afterburning)<br>
<input name="ac_enginepower" value="1000.0" ><br>
<input type="radio" name="ac_engineunits" value="0" checked>horsepower
<input type="radio" name="ac_engineunits" value="1">kw
<input type="radio" name="ac_engineunits" value="2">pounds
<input type="radio" name="ac_engineunits" value="3">newtons
<br><hr align=left width="'%"50"'">
<b>Augmentation (afterburning) Installed?</b><br>
<input type="radio" name="ac_augmented" value="1">yes
<input type="radio" name="ac_augmented" value="0" checked>no
<br><hr align=left width="'%"50"'">
<b>Water Injection Installed?</b><br>
<input type="radio" name="ac_injected" value="1">yes
<input type="radio" name="ac_injected" value="0" checked>no
<br><br><br>
You are now ready to have Aeromatic generate your file. Aeromatic will create a file called
<i>engine.php</i>, which is your engine configuration file. You will need to save
this file with a filename of the form <i>engine_name.xml</i>.<br><br>
<center><input type="submit" name="generate" value="Generate"></center>
<br><br><br><hr><br>
</form>
<!-- *************************************************************************** -->
<!-- * Propeller Form * -->
<!-- *************************************************************************** -->
<form action="prop2.php" method="post">
<font color=red size=5>Step 2: The Prop configuration (if applicable)...</font>
<br><br>
<b>Engine Power</b> (per engine)<br>
<input name="ac_enginepower" value="1000.0" ><br>
<input type="radio" name="ac_engineunits" value="0" checked>horsepower
<input type="radio" name="ac_engineunits" value="1">kw
<br><hr align=left width="'%"50"'">
<b>Maximum Engine RPM</b><br>
<input name="ac_maxengrpm" value="2700" >
<br><hr align=left width="'%"50"'">
<b>Pitch</b><br>
<input type="radio" name="ac_prop_pitch" value="0" checked>fixed
<input type="radio" name="ac_prop_pitch" value="1">variable
<br><hr align=left width="'%"50"'">
<b>Propeller Diameter</b><br>
<input name="ac_diameter" value="8" ><br>
<input type="radio" name="ac_diaunits" value="0" checked>feet
<input type="radio" name="ac_diaunits" value="1" >inches
<input type="radio" name="ac_diaunits" value="2" >meters
<br><br><br>
You are now ready to have Aeromatic generate your file. Aeromatic will create a file called
<i>prop.php</i>, which is your propeller configuration file. You will need to save
this file with a filename of the form <i>prop_name.xml</i>.<br><br>
<center><input type="submit" name="generate" value="Generate"></center>
<br><br><br><hr><br>
</form>
<!-- *************************************************************************** -->
<!-- * Aero Form * -->
<!-- *************************************************************************** -->
<form action="aero2.php" method="post">
<font color=red size=5>Step 3: The Aircraft configuration ...</font>
<br><br>
<b>Chose a system of measurement</b><br>
<input type="radio" name="ac_units" value="0" checked>English (feet, pounds)
<input type="radio" name="ac_units" value="1">Metric (meters, kilograms)
<br><hr align=left width="'%"50"'">
<b>Name of aircraft</b>
<input name="ac_name" value="unnamed" maxlength=100 >
<br><hr align=left width="'%"50"'">
<b>Type of aircraft</b> (Select closest <i>aerodynamic</i> type)<br>
<input type="radio" name="ac_type" value="0">Glider<br>
<input type="radio" name="ac_type" value="1" checked>Light Single<br>
<input type="radio" name="ac_type" value="2">Light Twin<br>
<input type="radio" name="ac_type" value="3">WWII Fighter (or subsonic racer/aerobatic)<br>
<input type="radio" name="ac_type" value="4">Single-engine Transonic or Supersonic Fighter<br>
<input type="radio" name="ac_type" value="5">Two-engine Transonic or Supersonic Fighter<br>
<input type="radio" name="ac_type" value="6">Two-engine Transonic Transport<br>
<input type="radio" name="ac_type" value="7">Three-engine Transonic Transport<br>
<input type="radio" name="ac_type" value="8">Four+-engine Transonic Transport<br>
<input type="radio" name="ac_type" value="9">Multi-engine Prop Transport<br>
<br><hr align=left width="'%"50"'">
<b>Maximum Takeoff Weight</b><br>
<input name="ac_weight" value=10000.0 >
<br><hr align=left width="'%"50"'">
<b>Empty Weight</b> (Enter 0 to use estimated value)<br>
<input name="ac_emptyweight" value=0 >
<br><hr align=left width="'%"50"'">
<b>Length</b><br>
<input name="ac_length" value=40.0 >
<br><hr align=left width="'%"50"'">
<b>Wing span</b><br>
<input name="ac_wingspan" value=40.0 >
<br><hr align=left width="'%"50"'">
<b>Wing chord</b> (Enter 0 to use estimated value)<br>
<input name="ac_wingchord" value=0 >
<br><hr align=left width="'%"50"'">
<b>Wing area</b> (Enter 0 to use estimated value)<br>
<input name="ac_wingarea" value=0 >
<br><hr align=left width="'%"50"'">
<b>Wing incidence</b> (Enter 0 to use estimated value)<br>
<input name="ac_wingincidence" value=0 >
<br><hr align=left width="'%"50"'">
<b>Htail area</b> (Enter 0 to use estimated value)<br>
<input name="ac_htailarea" value=0 >
<br><hr align=left width="'%"50"'">
<b>Htail arm</b> (Enter 0 to use estimated value)<br>
<input name="ac_htailarm" value=0 >
<br><hr align=left width="'%"50"'">
<b>Vtail area</b> (Enter 0 to use estimated value)<br>
<input name="ac_vtailarea" value=0 >
<br><hr align=left width="'%"50"'">
<b>Vtail arm</b> (Enter 0 to use estimated value)<br>
<input name="ac_vtailarm" value=0 >
<br><hr align=left width="'%"50"'">
<b>Inertia (xx, yy, zz)</b> (Enter 0 to use estimated value)<br>
<input name="ac_ixx" value=0 >
<input name="ac_iyy" value=0 >
<input name="ac_izz" value=0 >
<br><hr align=left width="'%"50"'">
<b>Landing Gear Layout</b><br>
<input type="radio" name="ac_geartype" value="0" checked>tricycle
<input type="radio" name="ac_geartype" value="1">taildragger
<br><hr align=left width="'%"50"'">
<b>Is the Landing Gear Retractable?</b><br>
<input type="radio" name="ac_gearretract" value="1" checked>yes
<input type="radio" name="ac_gearretract" value="0">no
<br><hr align=left width="'%"50"'">
<b>Number of Engines</b><br>
<input type="radio" name="ac_numengines" value=0>0
<input type="radio" name="ac_numengines" value=1 checked>1
<input type="radio" name="ac_numengines" value=2>2
<input type="radio" name="ac_numengines" value=3>3
<input type="radio" name="ac_numengines" value=4>4
<input type="radio" name="ac_numengines" value=5>5
<input type="radio" name="ac_numengines" value=6>6
<input type="radio" name="ac_numengines" value=7>7
<input type="radio" name="ac_numengines" value=8>8
<br><hr align=left width="'%"50"'">
<b>Engine Type</b><br>
<input type="radio" name="ac_enginetype" value="0" checked>piston
<input type="radio" name="ac_enginetype" value="1">turbine
<input type="radio" name="ac_enginetype" value="2">turboprop
<input type="radio" name="ac_enginetype" value="3">rocket
<input type="radio" name="ac_enginetype" value="4">electric
<br><hr align=left width="'%"50"'">
<b>Engine Layout</b><br>
<input type="radio" name="ac_enginelayout" value="0" checked>fwd_fuselage
<input type="radio" name="ac_enginelayout" value="1">mid_fuselage
<input type="radio" name="ac_enginelayout" value="2">aft_fuselage
<input type="radio" name="ac_enginelayout" value="3">wings
<input type="radio" name="ac_enginelayout" value="4">wings and tail
<input type="radio" name="ac_enginelayout" value="5">wings and nose
<br><hr align=left width="'%"50"'">
<b>Yaw Damper Installed?</b> (Almost all jets will need one)<br>
<input type="radio" name="ac_yawdamper" value="1">yes
<input type="radio" name="ac_yawdamper" value="0" checked>no
<br><br><br>
You are ready to have Aeromatic generate your file. Aeromatic will create a file called
<i>aero.php</i> which is your configuration file. Save this file with a suitable
filename, such as <i>spitfireIX.xml</i>. You will need to edit the
propulsion section of this file so that the engine name is the same as the
engine configuration file name, and the propeller name (if applicable) is
the same as the propeller configuration file name.<br><br>
<center><input type="submit" name="generate" value="Generate"></center>
</form>
<br><br><hr>
31 Dec 2005 <A href="presets.html">[.]</A><br/><br/>
<!-- Start of StatCounter Code -->
<SCRIPT type=text/javascript>
sc_project=1910964;
sc_invisible=1;
sc_partition=17;
sc_security="60e19068";
sc_text=2;
</SCRIPT>
<SCRIPT src="counter.js" type=text/javascript></SCRIPT>
<NOSCRIPT>
<DIV class=statcounter><A href="http://www.statcounter.com/free_web_stats.html"
target=_blank><IMG class=statcounter alt="website statistics"
src="counter.gif"></A></DIV></NOSCRIPT><!-- End of StatCounter Code -->
</DIV>
</DIV>
<BR>
</BODY>
</HTML>