First law of thermodynamics (fluid mechanics)

In physics, the first law of thermodynamics is an expression of the conservation of total energy of a system. The increase of the energy of a system is equal to the sum of work done on the system and the heat added to that system:
where
In fluid mechanics, the first law of thermodynamics takes the following form:
where
Because it expresses conservation of total energy, this is sometimes referred to as the energy balance equation of continuous media. The first law is used to derive the non-conservation form of the Navier–Stokes equations.
Note.
Where
That is, pulling is positive stress and pushing is negative stress.
Compressible fluid.
For a compressible fluid the left hand side of equation becomes:
because in general
Integral form.
That is, the change in the internal energy of the substance within a volume is the negative of the amount carried out of the volume by the flow of material across the boundary plus the work done compressing the material on the boundary minus the flow of heat out through the boundary. More generally, it is possible to incorporate source terms.
Alternative representation.
where formula_17 is specific enthalpy, formula_18 is dissipation function and formula_19 is temperature. And where
i.e. internal energy per unit volume equals mass density times the sum of: proper energy per unit mass, kinetic energy per unit mass, and gravitational potential energy per unit mass.
i.e. change in heat per unit volume (negative divergence of heat flow) equals the divergence of heat conductivity times the gradient of the temperature.
i.e. divergence of work done against stress equals flow of material times divergence of stress plus stress times divergence of material flow.
i.e. stress times divergence of material flow equals deviatoric stress tensor times divergence of material flow minus pressure times material flow.
i.e. enthalpy per unit mass equals proper energy per unit mass plus pressure times volume per unit mass (reciprocal of mass density).