00_cfdbIntro
Important
Visit https://aerosand.cc for the latest updates.
0. Preface
This series aims to help readers smoothly understand the fundamental theories of computational fluid dynamics.
1. Roadmap
Fluid Dynamics
Theoretical equations
Finite Difference Method
Basic concepts and methods of finite difference method.
Finite Volume Method
Basic concepts and methods of finite volume method
2. Mathematical Foundations
2.1. Partial Derivative Calculations
Sum and difference rule
Product rule
Constant
2.2. Tensor Notation
Tensor notation, also known as Einstein summation convention, is a concise and accurate mathematical expression form.
Repeated indices imply summation.
For example
Different indices are independent.
For example
2.3. Tensor Operations
Vector inner product
Vector and tensor inner product
Tensor and vector inner product
Tensor double inner product (dyadic product)
Vector outer product
2.4. Gradient Calculations
Gradient calculation is a dimension-increasing operation.
Scalar gradient
Vector gradient
2.5. Divergence Calculations
Divergence calculation is a dimension-reducing operation.
Vector divergence
Tensor divergence
2.6. Trace of Gradient
Reference gradient calculation
The trace of this gradient calculation is
We can see that
2.6. Mixed Calculations
2.7. Matrix Decomposition
Any matrix can be decomposed into hydrostatic (mean) and deviatoric (non-mean) parts.
The magnitude of the hydrostatic part is the sum of diagonal elements, which is also the trace calculation
The hydrostatic matrix is
We can also obtain
To aid understanding, let’s take a 3D matrix as an example
The trace of this matrix is
The hydrostatic part of this matrix is
The deviatoric part of this matrix is
2.8. Gauss Theorem
Gauss theorem is also known as the divergence theorem
The flux integral over the volume boundary equals the divergence integral within the volume, i.e.
3. Recommendations
It is strongly recommended that readers personally derive the theoretical formulas.
Additionally, be aware that theoretical learning and understanding is an iterative process. It is very normal to consult many books for one knowledge point, or to read one book many times.
When encountering difficulties in learning and understanding, it is recommended not to retreat, but to consult widely, actively discuss, and finally form your own output.
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
