grokkingstuff Home Blog Projects Wiki Calculators About

Gas Dynamics

date2025-07-24tags:meche:

Steal from this URL and attribute it. https://kyleniemeyer.github.io/gas-dynamics-notes/intro/review-thermo.html#law Kyle Niemeyer took a more textbook approach to gas dynamics.

Labview stuff https://www.halvorsen.blog/documents/hardware/level_tank/Level%20Tank%20System.pdf

Add in this stuff too https://www.halvorsen.blog/documents/hardware/level_tank/Level%20Tank%20System.pdf https://kyleniemeyer.github.io/gas-dynamics-notes/intro/review-thermo.html#law https://github.com/kyleniemeyer/rocket-propulsion https://kyleniemeyer.github.io/dynamics-book/intro.html https://kyleniemeyer.github.io/space-systems-notes/orbital-mechanics/orbit-transfers.html https://github.com/kyleniemeyer/finite-difference-course

He uses openfoam too! https://github.com/kyleniemeyer/directChillFoam

Introduction and review

Review of thermodynamics

This section reviews thermodynamics concepts: definitions, laws, and useful property relationships.

%matplotlib inline
from matplotlib import pyplot as plt
import numpy as np

# these lines are only for helping improve the display
import matplotlib_inline.backend_inline
matplotlib_inline.backend_inline.set_matplotlib_formats('pdf', 'png')
plt.rcParams['figure.dpi']= 300
plt.rcParams['savefig.dpi'] = 300
plt.rcParams['mathtext.fontset'] = 'cm'

Our study of gas dynamics will focus on a handful of important fluid properties:

Equations of state

For a fluid in general, the pressure, density, and temperature are not fully independent, and we can find one property given the other two. When dealing with liquids, we will frequently assume that they are incompressible and thus the density is constant.

For gases, we can frequently use the perfect, or ideal, gas equation of state:

$$ p = \rho R T $$

where R is the specific gas constant:

$$ R = \frac{8314 \frac{J}{kmol K}}{MW} $$

and MW is the molecular weight of the gas. For air, R = 287 J/(kg K).

The ideal gas equation of state applies best for relatively low densities, or at relatively low pressures or high temperatures.

Thermodynamics definitions

Properties describe the state of a system.

We can also break down properties into type:

Path/process: a series of consecutive states that define a unique journey from one state to another. Common features of processes that we will encounter or assume include:

Cycle: a sequence of processes that returns a system to its original state. point function: a property, that depends only on the state of a system. path function: not just a function of the state, but of the path/journey taken. Examples include heat and work.

Laws of Thermodynamics

Related