# Mathematical Background

This section on mathematical background covers the various notations and operators used to formulate and define the equations of fluid flow.

The conservation laws for a continuum medium involve vector and tensor quantities as well as several operators such as gradient and divergence.

In order to have a comprehensive understanding of these equations it is essential to get a good grasp of the notations and operators used in this manual.

In this notation, the governing equation is independent of the choice of the coordinate system. For the purposes of this manual the scalar quantities would be denoted with italicized letters. For example, pressure field is denoted as $p$. The vector quantities would be denoted with an arrow above the letters, for example velocity field denoted as $\stackrel{\to }{u}$. Tensor quantities are donated with bold face letters, for example stress tensor represented as .

## Cartesian Tensor Notation

In this notation, an index subscript is written after the quantity which corresponds to a component of the quantity.

Single subscript is used to denote a component of vector, for example ${u}_{i}$ for the vector field $\stackrel{\to }{u}$ and two subscripts are used to denote a component of tensor, for example ${\tau }_{ij}$ for the stress tensor .

## Kroneker Delta

The Kroneker Delta is a second-order isotropic tensor which is defined as: , .

## Operators

The most frequently used math operator related to flow equations is the $\nabla$ referred to as nabla, grad or del.

The nabla operator operates on the quantity to the right of it and the rules of a derivative of a product still hold. Otherwise the nabla operator behaves like any other vector in an algebraic operation. It is a vector operator and for a Cartesian coordinate system, it is defined as (1) $\nabla =\frac{\partial }{\partial x}\stackrel{^}{i}+\frac{\partial }{\partial y}\stackrel{^}{j}+\frac{\partial }{\partial z}\stackrel{^}{k}$

$\nabla$ appears in several different ways when applied to scalar, vector and tensor quantities.

When the nabla operator is applied on a scalar quantity $\phi$, it is called Gradient and it gives a vector whose components are the partial derivatives. (2) $\nabla \phi =\frac{\partial \phi }{\partial x}\stackrel{^}{i}+\frac{\partial \phi }{\partial y}\stackrel{^}{j}+\frac{\partial \phi }{\partial z}\stackrel{^}{k}$
The gradient of $\phi$ points to the direction of greatest change of $\phi$ and has a magnitude equal to the rate of change of $\phi$ with respect to distance in that direction.
When gradient is applied to a tensor quantity it produces a tensor one rank higher. When applied to a vector quantity $\stackrel{\to }{u}$ it gives a second-order tensor given by (3) $\nabla \left(\stackrel{\to }{u}\right)=\left(\frac{\partial }{\partial x}\stackrel{^}{i}+\frac{\partial }{\partial y}\stackrel{^}{j}+\frac{\partial }{\partial z}\stackrel{^}{k}\right)\left(\text{u}\stackrel{^}{i}+\text{v}\stackrel{^}{j}+\text{w}\stackrel{^}{k}\right)\equiv \left(\begin{array}{ccc}\frac{\partial \text{u}}{\partial x}& \frac{\partial \text{u}}{\partial y}& \frac{\partial \text{u}}{\partial z}\\ \frac{\partial \text{v}}{\partial x}& \frac{\partial \text{v}}{\partial y}& \frac{\partial \text{v}}{\partial z}\\ \frac{\partial \text{w}}{\partial x}& \frac{\partial \text{w}}{\partial y}& \frac{\partial \text{w}}{\partial z}\end{array}\right)$

The gradient of a vector quantity represents the gradient of each component of the vector field individually, each of which is a scalar.

### Divergence

The divergence of a vector quantity $\stackrel{\to }{u}$ is defined as a scalar quantity given by (4) $\nabla \cdot \stackrel{\to }{u}=\frac{\partial \text{u}}{\partial x}+\frac{\partial \text{v}}{\partial y}+\frac{\partial \text{w}}{\partial z}$
The divergence of a vector field represents the flux generation per unit volume (flux density) at each point on the field.
The divergence of a tensor gives a tensor which is one rank lower. When applied to a second-order stress tensor $\tau$ it yields a vector field whose ith component is expressed as (5) ${\left(\nabla \cdot \tau \right)}_{i}=\frac{\partial {\tau }_{ij}}{\partial {x}_{j}}$

### Div

The div operator is defined as $\stackrel{\to }{u}\cdot \nabla$ and is expressed as (6)

It maps a vector quantity to a scalar which can then be applied to a scalar, vector or higher order tensors.

### Laplacian

The Laplacian of a scalar quantity $\phi$ is a scalar defined as (7) ${\nabla }^{2}\phi =\frac{{\partial }^{2}\phi }{\partial {x}^{2}}+\frac{{\partial }^{2}\phi }{\partial {y}^{2}}+\frac{{\partial }^{2}\phi }{\partial {z}^{2}}$

### Double Dot Product (Scalar Product of Two Tensors)

The double dot product is a doubly contracted product between two tensors. It is expressed as (8) $A:B={A}_{ij}{B}_{ji}$

### Total Derivative

The total derivative, also known as material derivative or substantial derivative, describes the rate of change of a physical quantity of a fluid element with time as it moves along a trajectory in a velocity field. The total derivative of a scalar quantity $\phi$ is a scalar defined as (9) $\frac{D\text{φ}}{Dt}=\frac{\partial \phi }{\partial t}+\stackrel{\to }{u}\cdot \nabla \phi$

The total derivative of a quantity can be seen as a sum of local time derivative and convective derivative.