Intro to Computational Fluids
Discretization, stability, and convergence in introductory flow simulations.
Conceptual context
Computational fluid dynamics turns a continuous flow into a finite set of cells, variables, and algebraic equations. Each cell carries approximations of , , pressure, and other properties. determines which flow structures can be resolved and how far lies from . A coarse grid smooths gradients and boundary layers; a fine grid increases cost and may require a smaller . The central task is not producing an attractive image, but demonstrating that decreases consistently under refinement without changing the physical problem.
🟢 Essential level
A fluid simulation divides the domain into small cells and computes how the fluid moves through them.
describes the spatial scale of those cells. Reducing it allows the grid to represent changes in , , and pressure more accurately, especially near walls and inlets. Consequently, usually decreases under refinement. A finer mesh does not repair incorrect boundaries, an unreliable , or an unsuitable physical model. It can also create instability when is not adjusted. The correct practice is to compare several meshes while keeping , geometry, and boundary conditions fixed. A regular error trend supports convergence; an irregular curve indicates that another mechanism controls the result. Refinement is therefore a test of the numerical model, not merely a request for more detail. It must also be evaluated with a quantity defined consistently across meshes: comparing a pointwise velocity on one mesh with an averaged value on another would create a false impression of improvement.
🔵 Formal level
Basic formulas
Mass conservation in a two-dimensional incompressible flow requires the local defect to vanish:
Continuity for incompressible flow
The dynamic regime is characterized by , built from , , , and :
Reynolds number
For transient simulations, advective travel per cell is controlled through , which links and :
Advective CFL number
The discrepancy between and is measured by:
Relative velocity error
Real student questions
Is a finer mesh always better? Only when spatial error dominates and the model, solver, and time step are appropriate.
Why must remain fixed? Because it defines the physical regime. Changing it means comparing different flows.
What does small mean? The computed field approximately satisfies local mass conservation.
Can a stable simulation still be inaccurate? Yes. A suitable prevents some instabilities but does not guarantee spatial resolution.
What if the reference velocity is near zero? Use absolute error or a global norm because pointwise relative error becomes misleading.
Final synthesis
A trustworthy flow simulation is demonstrated, not assumed. should reduce consistently while conservation, regime, and stability remain controlled. One mesh gives a result; several meshes provide evidence.
Formal development
This section is part of the complete theory. See the subscription options to access it.
🔴 Structural level
This section is part of the complete theory. See the subscription options to access it.
Deep physical interpretation
This section is part of the complete theory. See the subscription options to access it.
Order of magnitude
This section is part of the complete theory. See the subscription options to access it.
Personalized resolution method
This section is part of the complete theory. See the subscription options to access it.
Special cases and extended example
This section is part of the complete theory. See the subscription options to access it.
Cross-cutting connections and study paths
This section is part of the complete theory. See the subscription options to access it.