## 2.2.1 Conservation Laws in Integral and Differential Form

In many engineering applications, the physical system is governed by a set of conservation laws. For example, in gas dynamics, the conservation of mass, momentum, and energy are applied to the gas. These conservation laws are often written in integral form for a fixed physical domain. Suppose we have a fixed two-dimensional physical domain, \(\Omega\), with the boundary of the domain, \(\delta \Omega\). Then, the canonical conservation equation in **integral** form is

where \(U\) is the conserved state (e.g., mass, momentum or energy per unit volume or per unit area), \(\vec{F}\) is a vector whose elements are the flux of the conserved state in each direction, \(\vec{n}\) is the outward pointing unit normal on the boundary of the domain, and \(S\) is a source term.

This conservation law can be writen as a partial differential equation by applying the divergence theorem which states that,

Thus, Equation 2.1 becomes,

Since this last equation must remain valid for any arbitrary domain, \(\Omega\), the integrand must be zero everywhere, or, equivalently,

Equations 2.1 and 2.6 are the **integral and differential forms** of the canonical conservation equations. Here, the term **canonical** refers to the equations describing the conservation of an arbitrary quantity U with arbitrary flux and source terms F and S.

The above equation is a partial differential equation (PDE), which is a differential equation that contains unknown multivariable functions (e.g., a function of space and time \(U(x,t)\) or a function of multiple spatial coordinates \(U(\vec{x})\)) and their partial derivatives (e.g. derivative to time and derivative to a spatial coordinate). This is in contrast to ODEs, which deal with functions of a single variable (e.g., \(u(t)\)) and their derivatives.

## Conservation of Mass for a Compressible Fluid

An example of a conservation law is the conservation of mass for a compressible fluid. Let the fluid density be \(\rho (x,y,t)\) and the fluid velocity vector as a function of space and time \(\vec{v}(\vec{x}, t)\). Then, the conservation of mass for the fluid is,

In terms of the canonical form (i.e., ),

## The Euler Equations for a Compressible Fluid

Often, multiple conservation laws are of interest. In this case, \(U\) is a vector of conserved states. Furthermore, the source \(S\) is a vectors, and the flux \(\vec{F}\) is a tensor. The dimension of the flux tensor is \((\) the number of conserved states \(\times\) the number of spatial dimension \()\). In two spatial dimensions, the flux tensos can be written as \(\vec{F} = (F, G)\), where both \(F\) and \(G\) are tensors. As an example, the Euler equations for a compressible fluid in two-dimensions are the combination of conservation of mass, \(x\)-momentum, \(y\)-momentum, and energy. In this case,

The first row of these vectors represents the conservation of mass (see the previous example for more). The second and third row represent conservation of \(x\) and \(y\) momentum, respectively. And, the fourth row represents conservation of energy. Note that in addition to the fluid density (\(\rho\)) and the \(x\) and \(y\) velocity components (\(u\) and \(v\)), the other quantities in these equations are:

The total energy and total enthalpy are related by,

This system of equations is not quite complete, however, since the number of equations does not equal the number of dependent variables in the equations. In particular, note that we have given five equations thus far (the four conservation equations and the relationship of \(H\) to \(E\)) while the number of dependent variables is six (i.e. \(\rho\), \(u\), \(v\), \(p\), \(E\), and \(H\)). The final equation is an equation of state. Often, we assume an ideal gas and use the ideal gas law. In terms of the dependent variables we have introduced, the ideal gas law can be written as,

where \(\gamma\) is the ratio of specific heats (for air, \(\gamma \approx 1.4\)). Many of you may be more familiar with the ideal gas law in the form, \(p = \rho R T\) where \(R\) is the gas constant and \(T\) is the temperature. Equation 2.16 is (in fact) equivalent to \(p = \rho R T\) but Equation 2.16 is used since \(p = \rho R T\) introduces a new dependent variable (i.e. the temperature) and would therefore require yet another state equation to complete the system.