04_energyConservation
0. Preface
We have previously discussed the continuity equation and momentum equation, and we know that physics is essentially based on the conservation of mass and momentum. Many flow problems also involve discussions of energy changes, for example, temperature variations.
The derivation of the energy equation is based on energy conservation.
This article mainly discusses:
- Derivation of the energy equation
- Derivation from different perspectives
- Understanding the physical meaning of mathematical expressions
1. Component Form

Assuming we take an infinitesimal material volume element model, we can establish conservation for the control volume system.
Rate of change of energy in the material volume element A = Net heat flux into the element per unit time B + Power done by body forces and surface forces on the element C
1.1. Work Done by External Forces
As discussed previously, external forces include body forces and surface forces.
Considering work done by body forces, the power is:
Considering work done by surface forces:
Taking the direction as an example, we define work as positive when the force is in the positive coordinate axis direction, and negative when opposite.
The power of pressure work is:
The power of viscous force work is:
Combining work done by forces in all directions, we finally obtain C as:
1.2. Heat Flux
Volume heating, such as absorbed and emitted radiation heat:
Heat transport through surfaces due to temperature gradients, i.e., heat conduction:
Taking the direction as an example, heat conduction is:
The total heating from heat conduction is:
Combining all terms, the net heat flux B into the element is:
According to Fourier’s law of heat conduction:
Finally:
1.3. Energy Change
The total energy of the element includes kinetic energy and internal energy. One part is the internal energy generated by random molecular motion, and the other part is the kinetic energy of the fluid element.
That is:
1.4. Energy Equation
According to the conservation form:
That is:
Considering gravity as the main body force:
The general form of the energy equation:
In later discussions, all terms on the right side are incorporated into the source term .
1.5. Kinetic and Internal Energy
From the momentum equation’s force analysis in the direction:
Multiplying both sides by , we can obtain:
And:
Subtracting all directional kinetic energy terms from the energy equation, we obtain the energy equation for internal energy only:
Tip
Note that this form of the energy equation does not include body force terms, and stresses are outside the velocity gradients.
Shear stresses have symmetry:
Thus:
Using the fluid constitutive relations discussed previously (Stokes’ relations):
The internal energy equation can be further rewritten into a completely flow-variable-represented energy equation, i.e.:
The complete form of the energy equation can also be rearranged by substituting constitutive relations.
1.6. Conservative and Non-Conservative Forms
Note that the equations discussed above are in non-conservative form.
According to the Material Derivative Conversion, we have:
We can convert the previous non-conservative equation to conservative form:
Using generalized source terms, the general form energy equation is:
2. Tensor Form
The energy of a material fluid element is:
Thus:
According to the first law of thermodynamics,
Change in energy = Heat absorbed - Work done by the system
2.1. Heat Absorption
Internally generated and dissipated :
Increase is positive, decrease is negative. Here it is positive, meaning heat increase.
Additionally, there is heat transport through surfaces :
Outward along the surface normal is positive, inward is negative. The negative sign here indicates heat flowing into the material volume, i.e., heat increase.
2.2. Work Done on the Surroundings
Work done on the surroundings includes work done by body forces and surface forces.
Work done by body forces:
Adding a negative sign to body force work means work done by the material volume on the surroundings through body forces.
Work done by surface forces:
Tip
Remember previously discussed: using to represent the total stress tensor (complete including pressure per unit area and viscous force per unit area).
Surface forces are positive outward along the normal, negative inward. Adding a negative sign to surface force work means work done by the material volume on the surroundings through surface forces.
Using the discussion of surface forces in the momentum equation, we obtain:
Using tensor calculation rules, we get:
2.3. Energy Equation
Substituting the above into:
According to the Reynolds Transport Theorem:
We have:
Removing the common integral, we obtain:
ใComplete Energy Equationใ
We remove the kinetic energy part to obtain the energy equation in internal energy form.
Considering the momentum equation (discussed in the momentum equation article):
We have:
According to tensor calculation relations, rearranging gives:
Further rearranging:
The external force is:
Substituting and rearranging, dividing both sides by 2:
Using tensor calculation relations:
Subtracting this kinetic energy-based equation from the total energy equation, we obtain the internal energy-based energy equation:
2.4. Temperature Equation
In many cases (non-supersonic, non-combustion reactions), we don’t need to solve the complete energy equation, only need to obtain the temperature field distribution.
Considering enthalpy expression:
Substituting into the internal energy-based energy equation:
Tip
The energy equation is rarely solved in complete form; different forms are often used for specific problems. To ensure understanding, we won’t delve deeper at this stage. Don’t worry, we’ll continue discussing when appropriate in the future.
Here we directly give the temperature-related energy equation:
3. Summary
This article completes the discussion of:
- Derivation of the energy equation
- Derivation from different perspectives
- Understanding the physical meaning of mathematical expressions
References
[1] The Finite Volume Method in Computational Fluid Dynamics, https://link.springer.com/book/10.1007/978-3-319-16874-6
[2] Computational fluid dynamics : the basics with applications, https://searchworks.stanford.edu/view/2989631
[3] Mathematics, Numerics, Derivations and OpenFOAMยฎ, https://holzmann-cfd.com/community/publications/mathematics-numerics-derivations-and-openfoam-free
[4] Notes on Computational Fluid Dynamics: General Principles, https://doc.cfd.direct/notes/cfd-general-principles/
Support us
Tip
Hopefully, the sharing here can be helpful to you.
If you find this content helpful, your comments or donations would be greatly appreciated. Your support helps ensure the ongoing updates, corrections, refinements, and improvements to this and future series, ultimately benefiting new readers as well.
The information and message provided during donation will be displayed as an acknowledgment of your support.
Copyright @ 2026 Aerosand
- Course (text, images, etc.)๏ผCC BY-NC-SA 4.0
- Code derived from OpenFOAM๏ผGPL v3
- Other code๏ผMIT License
