Skip to content

Commit

Permalink
Added svg files to the list of file types that copy_build_artifacts c…
Browse files Browse the repository at this point in the history
…opies into the doc outputs. (#902)

Removed a duplicate doc section from water rocket.
  • Loading branch information
robfalck authored Feb 7, 2023
1 parent 4356939 commit 8f9f396
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 34 deletions.
2 changes: 1 addition & 1 deletion docs/copy_build_artifacts.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def copy_build_artifacts(book_dir='openmdao_book'):
book_dir : str
The directory containing the Jupyter-Book to be created.
"""
PATTERNS_TO_COPY = ('*.html', '*.png')
PATTERNS_TO_COPY = ('*.html', '*.png', '*.svg')
TARGET_DIR = '_build'
EXCLUDE_DIRS = ('_build', '.ipynb_checkpoints')

Expand Down
34 changes: 1 addition & 33 deletions docs/dymos_book/examples/water_rocket/water_rocket.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand Down Expand Up @@ -157,39 +158,6 @@
"<figure>\n",
" <img src=\"figures/water_rocket_waterengine.svg\"/>\n",
" <figcaption>N2 diagram for the water engine group</figcaption>\n",
"</figure>\n",
"\n",
"### Water engine\n",
"\n",
"The water engine is modelled by assuming that the air expansion in the rocket\n",
"follows an adiabatic process and the water flow is incompressible and inviscid,\n",
"i.e. it follows Bernoulli's equation. We also make the following simplifying\n",
"assumptions:\n",
"\n",
"1. The thrust developed after the water is depleted is negligible\n",
"2. The area inside the bottle is much smaller than the nozzle area\n",
"3. The inertial forces do not affect the fluid dynamics inside the bottle\n",
"\n",
"This simplified modelling can be found in Prusa {cite}`Prusa2000`.\n",
"A more rigorous formulation, which drops all these simplifying assumptions can be found in Wheeler {cite}`Wheeler2002`, Gommes {cite}`Gommes2010`, and Barria-Perotti {cite}`BarrioPerotti2010`.\n",
"\n",
"The first assumption leads to an underestimation of the rocket performance, since the air left in the bottle after it is out of water is known to generate appreciable thrust {cite}`Thorncroft2009`.\n",
"This simplified model, however, produces physically meaningful results.\n",
"\n",
"There are two states in this dynamical model, the water volume in the rocket $V_w$ and the gauge pressure inside the rocket $p$.\n",
"The constitutive equations and the N2 diagram showing the model organization are shown below.\n",
"\n",
"### Constitutive equations of the water engine model\n",
"| Component | Equation |\n",
"| -----------------------|-------------------------------------------------------------|\n",
"| water_exhaust_speed | $v_\\text{out} = \\sqrt{2(p-p_a)/\\rho_w}$ |\n",
"| water_flow_rate | $\\dot{V}_w = -v_\\text{out} A_\\text{out}$ |\n",
"| pressure_rate | $\\dot{p} = kp\\frac{\\dot{V_w}}{(V_b-V_w)}$ |\n",
"| water_thrust | $T = (\\rho_w v_\\text{out})(v_\\text{out}A_\\text{out})$ |\n",
"\n",
"<figure>\n",
" <img src=\"figures/water_rocket_waterengine.svg\"/>\n",
" <figcaption>N2 diagram for the water engine group</figcaption>\n",
"</figure>"
]
},
Expand Down

0 comments on commit 8f9f396

Please sign in to comment.