Difference between revisions of "Advanced Flight Simulation"

From OpenRocket wiki
Jump to navigation Jump to search
m (Formatting around)
m
 
(30 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
<div style="float: left;">[[Advanced Rocket Design|&larr; Advanced Rocket Design]]</div>
 
<div style="float: left;">[[Advanced Rocket Design|&larr; Advanced Rocket Design]]</div>
 
<div style="float: right;">[[Rocket Analysis|Rocket Analysis &rarr;]]</div>
 
<div style="float: right;">[[Rocket Analysis|Rocket Analysis &rarr;]]</div>
[[User's Guide|&uarr; Back to Contents]]
+
[[Main Page|&uarr; Back to Contents]]
 
</div>
 
</div>
<span style="float: none"><span>
+
<span style="clear:both;"><span>
  
 
{{UserGuideHelp}}
 
{{UserGuideHelp}}
  
  
== Advanced Flight Simulation ==
+
__TOC__
  
  
<div style="float: left;margin: .5em 3em 2em 0;">__TOC__</div>
+
OpenRocket offers more advanced options for simulating flight. You can plot your rocket's predicted acceleration, climb, eject and landing, make a prediction for how far downrange and in which direction your flight will land, and even experiment with different models of Earth's geometry, as it affects your flight. Once you're satisfied with a sim, you can export your data for analysis and charting in other packages.<br />
  
OpenRocket offers more advanced options for simulating flight. You can plot your rocket's predicted acceleration, climb, eject and landing, make a prediction for how far downrange and in which direction your flight will land, and even experiment with different models of Earth's geometry, as it affects your flight.<br />
+
== Plotting your rocket's flight ==
 +
 
 +
To begin learning about OpenRocket's plotting features, first, click the <strong>Plot / Export</strong> button on the <strong>Flight simulations</strong> window.<br /><br />
 +
 
 +
[[File:PlotExportButton.png|thumb|800 px|center|The <em>Plot / export</em> Button.]] <br />
 +
 
 +
On the <strong>Edit simulation</strong> panel, you'll see tabs marked <strong>Plot data</strong> and <strong>Export data</strong>. <br /><br />
 +
 
 +
===Plotting data===
 +
 
 +
The <strong>Plot data</strong> opens first. Here you can define many parameters that will determine what values are plotted, and what events are marked on the plot.<br /><br />
 +
 
 +
[[File:PlotExportWindow.png|thumb|800 px|center|The <em>Plot / export</em> window.]] <br />
 +
 
 +
Here you'll be able to quickly choose from a number of standard plots: <br /><br />
 +
 
 +
[[File:PlotConfigs.png|thumb|806 px|center|Standard plots]] <br />
 +
 
 +
<span id="parameters">You'll also be able to assign to the X and Y axes any one of over 50 parameters</span>:
 +
 
 +
<div style="height:30rem;width:60rem;">
 +
<div style="float:left;margin:1rem 3rem 1rem 0;">
 +
<ul>
 +
<li>Time</li>
 +
<li>Altitude</li>
 +
<li>Vertical velocity</li>
 +
<li>Vertical acceleration</li>
 +
<li>Total velocity</li>
 +
<li>Total acceleration</li>
 +
<li>Lateral distance</li>
 +
<li>Lateral direction</li>
 +
<li>Lateral velocity</li>
 +
<li>Lateral acceleration</li>
 +
<li>Latitude</li>
 +
<li>Longitude</li>
 +
<li>Gravitational acceleration</li>
 +
<li>Angle of attack</li>
 +
<li>Roll rate</li>
 +
<li>Pitch rate</li>
 +
<li>Yaw rate</li>
 +
<li>Mass</li>
 +
</ul>
 +
</div>
 +
<div style="float:left;margin:1rem 3rem 1rem 3rem;">
 +
<ul>
 +
<li>Propellant mass</li>
 +
<li>Longitudinal moment of inertia</li>
 +
<li>Rotational moment of inertia</li>
 +
<li>CP location</li>
 +
<li>CG location</li>
 +
<li>Stability margin calibers</li>
 +
<li>Mach number</li>
 +
<li>Reynolds number</li>
 +
<li>Thrust</li>
 +
<li>Drag force</li>
 +
<li>Drag coefficient</li>
 +
<li>Axial drag coefficient</li>
 +
<li>Friction drag coefficient</li>
 +
<li>Pressure drag coefficient</li>
 +
<li>Base drag coefficient</li>
 +
<li>Normal force coefficient</li>
 +
<li>Pitch moment coefficient</li>
 +
<li>Yaw moment coefficient</li>
 +
</ul>
 +
</div>
 +
<div style="float:left;margin:1rem 0 1rem 3rem;">
 +
<ul>
 +
<li>Side force coefficient</li>
 +
<li>Roll moment coefficient</li>
 +
<li>Roll forcing coefficient</li>
 +
<li>Roll damping coefficient</li>
 +
<li>Pitch damping coefficient</li>
 +
<li>Reference length</li>
 +
<li>Reference area</li>
 +
<li>Vertical orientation (zenith)</li>
 +
<li>Lateral orientation (azimuth)</li>
 +
<li>Wind velocity</li>
 +
<li>Air temperature</li>
 +
<li>Air pressure</li>
 +
<li>Speed of sound</li>
 +
<li>Simulation time step</li>
 +
<li>Computation time</li>
 +
<li>Position parallel to wind</li>
 +
<li>Position upwind</li>
 +
</ul>
 +
</div>
 +
<span style="clear:both;">&nbsp;</span>
 +
</div>
 +
 
 +
You can assign multiple parameters to the Y-axis, and choose whether their scales appear on the left, or the right side of the plot. You can add Y-axis parameters with the <strong>New Y-axis plot type</strong> button, or delete parameters from the plot with the <strong>X</strong> buttons. <em>(The X-axis takes only a single plotted parameter, typically <strong>Time</strong>).</em>
  
<span style="float:none;"></float>
+
Additionally, you can choose from several flight events, any or all of which can be called out on your plot, in reference to the simulated time of occurrence.<br /><br />
  
== Plotting your rocket's flight ==
+
[[File:YaxisTypes.png|thumb|800 px|center|Setting Y-axes and Events for plotting]] <br />
 +
 
 +
===Plotted results===
 +
 
 +
Below you can see a plot of <em>A simple model rocket</em>, simulation number 4, flying on a C6-5. Note that the five events checked in the above screen have been marked on the plot (<em>some very close to each other, or to the edge</em>): <strong>Motor ignition</strong>, <strong>Motor burnout</strong>, <strong>Apogee</strong>, <strong>Recovery device deployment</strong>, and <strong>Ground hit</strong>.
 +
 
 +
You can also see that the three Y-axis parameters described above: <strong>Altitude</strong>, <strong>Vertical velocity</strong>, and <strong>Vertical acceleration</strong> appear as lines of three different colors. <br /><br />
  
[[File:PlotExportButton.png|thumb|800 px|center|The <em>Plot/Export</em> Button.]] <br />
 
[[File:PlotExportWindow.png|thumb|800 px|center|The <em>Plot/Export</em> window.]] <br />
 
 
[[File:PlotOfSimulation.png|thumb|800 px|center|A <em>Plot</em> of the simulation.]] <br />
 
[[File:PlotOfSimulation.png|thumb|800 px|center|A <em>Plot</em> of the simulation.]] <br />
[[File:EditSimulationLaunchCond.png|thumb|800 px|center|The <em>Edit Simulation</em> window: <em>Launch Conditions</em>.]] <br />
+
 
[[File:EditSimulationSimOpts.png|thumb|800 px|center|The <em>Edit Simulation</em> window: <em>Simulation Options</em>.]] <br />
+
As your rockets get more complex, with features like dual-deploy, air-start and multiple stages, your plots can grow in complexity to simulate their expected behavior. Below is a plot (<em>from the example rockets</em>) of a "High Power Airstart" rocket, modeled after a Patriot missile. The central motor starts on the launch pad, while the surrounding motors start while the rocket is in the air (<em>hence, an "airstart"</em>). The plot records the separate motor start events, and the deployment of both a drogue, and a main parachute. <br /><br />
 +
 
 +
[[File:ComplexPlot.png|thumb|800 px|center|A <em>Plot</em> of Sim #5 of the "High Power Airstart" example rocket.]] <br />
 +
 
 +
Notice what's happening in the plot above: The rocket is <em>losing velocity</em> - the blue line - before the airstart occurs. This is probably not what we want.
 +
 
 +
However, simulation number 3 of the same rocket, below, has an earlier airstart, and looks like it should work as expected. Looking at the slight wiggle in the velocity curve, we could also try another simulation to provide a little bit more margin for error. <br /><br />
 +
 
 +
[[File:ComplexPlot2.png|thumb|800 px|center|A <em>Plot</em> of Sim #3 of the "High Power Airstart" example rocket.]] <br /><br />
 +
 
 +
== Launch Conditions and Simulation Options ==
 +
 
 +
From the <strong>Plot data</strong> window, you can click the <strong><< Edit</strong> button to configure <strong>Launch conditions</strong>, and <strong>Simulation options</strong> before you plot.
 +
 
 +
===Launch conditions===
 +
 
 +
OpenRocket can simulate conditions at the launch site, so you can estimate how winds will direct your flight, and how far downrange your rocket will drift.
 +
 
 +
In the screen shown below, you can set parameters (and units) for wind, and for your <strong>Launch site</strong>, you can set the <strong>Latitude</strong>, <strong>Longitude</strong> and <strong>Altitude</strong>, as well as <strong>Atmospheric conditions</strong>. Note that Atmospheric conditions affect your rocket's ascent velocity, as well as the local [https://en.wikipedia.org/wiki/Speed_of_sound Speed of Sound].
 +
 
 +
This is also the panel where you can set the length of your launch rod or rail. This length will affect whether your simulation <em>passes or fails</em>, when it's evaluated for minimum speed off the rod. <br /><br />
 +
 
 +
[[File:EditSimulationLaunchCond.png|thumb|800 px|center|The <em>Edit simulation</em> window: <em>Launch conditions</em>.]] <br />
 +
 
 +
===Simulation options===
 +
 
 +
In the <strong>Simulation options</strong> tab, the <strong>Simulator options</strong> let you choose the shape of the simulated Earth in your calculations (<em>doing so <strong>does not</strong> affect the Earth background in Photo Studio</em>), and you can choose the time-resolution of the simulation. This is also the place where you add and set up <strong>Simulation extensions</strong>, which are beyond this guide's purpose (<em>and frankly, beyond this author's knowledge!</em>).<br /><br />
 +
 
 +
[[File:EditSimulationSimOpts.png|thumb|800 px|center|The <em>Edit simulation</em> window: <em>Simulation options</em>.]] <br /><br />
 +
 
 +
== Exporting Data ==
 +
 
 +
Located on the Plot / export panel, the Export Data tab (shown below) helps you set up a Comma-Separated Value (.csv) formatted file to export data from your simulations. You can export any or all of over 50 values (generally speaking, the [[#parameters|list of parameters]] above, plus <strong>Coriolis acceleration</strong>). Optional <strong>Comments</strong> sections list any flight events (<strong>Apogee</strong>, for example) you selected for your simulation, as well as description and field descriptions.
 +
 
 +
You can choose separators other than comma, if you prefer semicolon, space, or TAB-delimited data. Once you have your data choices set up, clicking the <strong>Export</strong> button brings up a file dialog to choose a filename and location for your exported data.<br /><br />
 +
 
 +
[[File:ExportData.png|thumb|800 px|center|The <em>Export data</em> window.]] <br />
  
 
----
 
----
Line 30: Line 159:
 
<div style="float: left;">[[Advanced Rocket Design|&larr; Advanced Rocket Design]]</div>
 
<div style="float: left;">[[Advanced Rocket Design|&larr; Advanced Rocket Design]]</div>
 
<div style="float: right;">[[Rocket Analysis|Rocket Analysis &rarr;]]</div>
 
<div style="float: right;">[[Rocket Analysis|Rocket Analysis &rarr;]]</div>
[[User's Guide|&uarr; Back to Contents]]
+
[[Main Page|&uarr; Back to Contents]]
 
</div>
 
</div>

Latest revision as of 05:35, 10 March 2021

↑ Back to Contents

The current User's Guide is very much a work in progress, any help would be greatly appreciated!
If you'd like to contribute something, just hit the 'Edit' tab at the top.



OpenRocket offers more advanced options for simulating flight. You can plot your rocket's predicted acceleration, climb, eject and landing, make a prediction for how far downrange and in which direction your flight will land, and even experiment with different models of Earth's geometry, as it affects your flight. Once you're satisfied with a sim, you can export your data for analysis and charting in other packages.

Plotting your rocket's flight[edit]

To begin learning about OpenRocket's plotting features, first, click the Plot / Export button on the Flight simulations window.

The Plot / export Button.


On the Edit simulation panel, you'll see tabs marked Plot data and Export data.

Plotting data[edit]

The Plot data opens first. Here you can define many parameters that will determine what values are plotted, and what events are marked on the plot.

The Plot / export window.


Here you'll be able to quickly choose from a number of standard plots:

Standard plots


You'll also be able to assign to the X and Y axes any one of over 50 parameters:

  • Time
  • Altitude
  • Vertical velocity
  • Vertical acceleration
  • Total velocity
  • Total acceleration
  • Lateral distance
  • Lateral direction
  • Lateral velocity
  • Lateral acceleration
  • Latitude
  • Longitude
  • Gravitational acceleration
  • Angle of attack
  • Roll rate
  • Pitch rate
  • Yaw rate
  • Mass
  • Propellant mass
  • Longitudinal moment of inertia
  • Rotational moment of inertia
  • CP location
  • CG location
  • Stability margin calibers
  • Mach number
  • Reynolds number
  • Thrust
  • Drag force
  • Drag coefficient
  • Axial drag coefficient
  • Friction drag coefficient
  • Pressure drag coefficient
  • Base drag coefficient
  • Normal force coefficient
  • Pitch moment coefficient
  • Yaw moment coefficient
  • Side force coefficient
  • Roll moment coefficient
  • Roll forcing coefficient
  • Roll damping coefficient
  • Pitch damping coefficient
  • Reference length
  • Reference area
  • Vertical orientation (zenith)
  • Lateral orientation (azimuth)
  • Wind velocity
  • Air temperature
  • Air pressure
  • Speed of sound
  • Simulation time step
  • Computation time
  • Position parallel to wind
  • Position upwind

 

You can assign multiple parameters to the Y-axis, and choose whether their scales appear on the left, or the right side of the plot. You can add Y-axis parameters with the New Y-axis plot type button, or delete parameters from the plot with the X buttons. (The X-axis takes only a single plotted parameter, typically Time).

Additionally, you can choose from several flight events, any or all of which can be called out on your plot, in reference to the simulated time of occurrence.

Setting Y-axes and Events for plotting


Plotted results[edit]

Below you can see a plot of A simple model rocket, simulation number 4, flying on a C6-5. Note that the five events checked in the above screen have been marked on the plot (some very close to each other, or to the edge): Motor ignition, Motor burnout, Apogee, Recovery device deployment, and Ground hit.

You can also see that the three Y-axis parameters described above: Altitude, Vertical velocity, and Vertical acceleration appear as lines of three different colors.

A Plot of the simulation.


As your rockets get more complex, with features like dual-deploy, air-start and multiple stages, your plots can grow in complexity to simulate their expected behavior. Below is a plot (from the example rockets) of a "High Power Airstart" rocket, modeled after a Patriot missile. The central motor starts on the launch pad, while the surrounding motors start while the rocket is in the air (hence, an "airstart"). The plot records the separate motor start events, and the deployment of both a drogue, and a main parachute.

A Plot of Sim #5 of the "High Power Airstart" example rocket.


Notice what's happening in the plot above: The rocket is losing velocity - the blue line - before the airstart occurs. This is probably not what we want.

However, simulation number 3 of the same rocket, below, has an earlier airstart, and looks like it should work as expected. Looking at the slight wiggle in the velocity curve, we could also try another simulation to provide a little bit more margin for error.

A Plot of Sim #3 of the "High Power Airstart" example rocket.



Launch Conditions and Simulation Options[edit]

From the Plot data window, you can click the << Edit button to configure Launch conditions, and Simulation options before you plot.

Launch conditions[edit]

OpenRocket can simulate conditions at the launch site, so you can estimate how winds will direct your flight, and how far downrange your rocket will drift.

In the screen shown below, you can set parameters (and units) for wind, and for your Launch site, you can set the Latitude, Longitude and Altitude, as well as Atmospheric conditions. Note that Atmospheric conditions affect your rocket's ascent velocity, as well as the local Speed of Sound.

This is also the panel where you can set the length of your launch rod or rail. This length will affect whether your simulation passes or fails, when it's evaluated for minimum speed off the rod.

The Edit simulation window: Launch conditions.


Simulation options[edit]

In the Simulation options tab, the Simulator options let you choose the shape of the simulated Earth in your calculations (doing so does not affect the Earth background in Photo Studio), and you can choose the time-resolution of the simulation. This is also the place where you add and set up Simulation extensions, which are beyond this guide's purpose (and frankly, beyond this author's knowledge!).

The Edit simulation window: Simulation options.



Exporting Data[edit]

Located on the Plot / export panel, the Export Data tab (shown below) helps you set up a Comma-Separated Value (.csv) formatted file to export data from your simulations. You can export any or all of over 50 values (generally speaking, the list of parameters above, plus Coriolis acceleration). Optional Comments sections list any flight events (Apogee, for example) you selected for your simulation, as well as description and field descriptions.

You can choose separators other than comma, if you prefer semicolon, space, or TAB-delimited data. Once you have your data choices set up, clicking the Export button brings up a file dialog to choose a filename and location for your exported data.

The Export data window.



↑ Back to Contents