CFD Governing Equations and Discretization
What You'll Learn
- 1Write conservation laws as a generic transport equation
- 2Explain how the finite volume method builds an algebraic system
- 3Choose a convection scheme and its accuracy order
- 4Set time step from the Courant number
A CFD solver does not solve the Navier-Stokes equations; it solves a huge sparse algebraic system that approximates them. The gap between the two is discretization, and most wrong answers come from that gap rather than from physics. This lesson writes the conservation laws as one transport equation, shows how the finite volume method converts it into face fluxes, compares first and second order convection schemes, and sets the time step from the Courant number. Getting that chain right separates a converged number from an accurate one. Each step below is stated so a reviewer can repeat it.
The Conservation Laws as a Transport Equation
Mass, momentum, and energy share one structure: accumulation plus net efflux equals net source. For a generic transported quantity the Reynolds-averaged equations take the form
For mass, the transported quantity is unity and the right-hand side vanishes. For momentum it is a velocity component with pressure and viscous stress as sources. For energy it is temperature or enthalpy with heat transfer as sources.
Finite Volume Integration and Face Fluxes
The method integrates over each control volume, applies the divergence theorem to turn volume integrals of flux into surface integrals over faces, and evaluates each face flux from neighboring cell values. One algebraic equation per cell results, coupling a cell only to its neighbors.
Because the formulation works on integrated quantities, whatever leaves one cell enters the next exactly, so conservation holds to machine precision. The face value must still be reconstructed, and that reconstruction sets accuracy order: central interpolation is second order but oscillatory at high cell Reynolds number, first order upwind is robust but diffusive, and second order upwind is the usual default.
Pressure Velocity Coupling and Time Integration
Incompressible solvers have no pressure equation, so a pressure correction is computed from the continuity residual, velocity is updated, and the cycle repeats until mass imbalance falls below tolerance. SIMPLE and PISO differ mainly in under-relaxation, while coupled solvers solve momentum and continuity together in fewer iterations at higher cost.
Explicit schemes advance from known values only and are conditionally stable, with the Courant number below about 1 in one dimension. Implicit schemes allow much larger steps, so the practical limit becomes accuracy rather than stability.
Convection Schemes Compared
| Scheme | Accuracy order | Diffusion | Typical use |
|---|---|---|---|
| First order upwind | First | High | Startup and robust marching |
| Second order upwind | Second | Moderate | Default for RANS work |
| Central difference | Second | Low but dispersive | Large eddy simulation |
| Total variation diminishing | Second | Limited | Shock capturing |
Higher order buys accuracy per cell but demands better mesh quality, since skewed cells degrade the reconstruction.
Real-World Examples
- Cylinder vortex street - First order upwind at Reynolds number 100 predicts shedding about 10 percent low until a second order scheme is used.
- Heat exchanger passage - A segregated solver at Courant number 10 converges in about 600 iterations while a coupled solver needs 120.
- Supersonic wedge - A total variation diminishing scheme captures the oblique shock in three cells without overshoot.
- Channel large eddy simulation - A central difference scheme at friction Reynolds number 200 gives correct mean velocity and spectra.
đĄRaise the Order Before Adding Cells
Common Mistakes
Running first order upwind to convergence
Fix: It is diffusive by design, so switch to second order and confirm the result stops moving.
Equating implicit stability with accuracy
Fix: Implicit schemes stay stable at large Courant numbers but lose accuracy, so monitor the Courant number.
Ignoring non-orthogonal corrections
Fix: On skewed cells the diffusion flux is inaccurate unless the correction is enabled and converges cleanly.
Key Takeaways
- All conservation laws share one structure of accumulation, convection, diffusion, and source.
- The finite volume method conserves fluxes exactly between neighboring cells.
- Accuracy order is set by face reconstruction, not by cell count.
- The Courant number controls stability for explicit schemes and accuracy for implicit ones.
Frequently Asked Questions
What does second order accurate mean?
Errors fall with the square of cell size, so halving spacing cuts truncation error roughly fourfold.
Why can a central difference scheme oscillate?
It has no built-in dissipation, so at high cell Reynolds number it allows odd-even oscillations that upwinding damps.
Is a converged solution necessarily accurate?
No. Convergence only means the algebraic system is solved; discretization, model, and boundary errors can remain.
Interview Questions
Q1: Distinguish consistency from stability.
Consistency measures whether the discrete equations approach the original ones as the mesh refines, while stability measures whether errors stay bounded; the Lax equivalence theorem needs both.
Q2: When would you choose a coupled solver?
When variables are strongly linked, as in compressible high speed flow or strong buoyancy, because fewer iterations compensate for the larger memory and cost.
Extended Learning: Beyond the Basics
Key Concepts Summary
This lesson covers fundamental concepts that serve as building blocks for more advanced topics. Master these basics before moving to intermediate and advanced material.
Prerequisite Knowledge
Before studying this topic in depth, ensure you understand:
- Basic definitions and terminology
- Core formulas and their derivations
- Common applications in real-world scenarios
- Typical pitfalls and misconceptions
Step-by-Step Walkthrough
Let us work through a complete example to solidify understanding:
Step 1: Identify the problem type. Determine which category this problem falls into and which approach is most appropriate.
Step 2: Apply the relevant formula. Substitute known values into the appropriate equation, paying attention to units and constraints.
Step 3: Simplify and solve. Work through the algebra step by step, checking each intermediate result.
Step 4: Verify the answer. Check that the solution satisfies the original conditions and makes logical sense.
Common Mistakes to Avoid
- Misidentifying the problem type â Always start by categorizing the problem
- Incorrect formula application â Verify the formula applies to your specific case
- Unit errors â Always check units are consistent throughout
- Sign errors â Pay careful attention to positive and negative values
- Rounding too early â Keep full precision until the final answer
- Forgetting constraints â Check that solutions satisfy all given conditions
Real-World Applications
Understanding this concept is essential for:
- Advanced problem solving in examinations
- Building intuition for more complex topics
- Developing analytical thinking skills
- Applying mathematical reasoning to practical situations
Practice Exercises
- Basic: Solve 5 problems of increasing difficulty using the core concept.
- Intermediate: Apply the concept to word problems with multiple steps.
- Advanced: Combine this concept with 2-3 other topics in a comprehensive problem.
- Challenge: Create your own problem that requires this concept plus additional knowledge.
Interview and Exam Tips
- Common question patterns: Identify which exam or interview formats test this topic
- Time management: Practice completing problems within time constraints
- Common traps: Know the typical mistakes examiners set as distractors
- Verification strategy: Develop a quick method to check your answer
Related Topics
- Previous Topic â Build on the foundation laid here
- Next Topic â See how this concept extends to more advanced material
- Practice Problems â Additional exercises with solutions
- Video Explanation â Visual walkthrough of key concepts
Quick Reference Card
| Concept | Formula/Rule | Key Insight | Common Use |
|---|---|---|---|
| Core Definition | See main text | Understand the intuition | Foundation for all applications |
| Key Formula | See main text | Memorize the derivation | Direct problem solving |
| Special Case | See main text | Recognize when it applies | Simplifies complex problems |
| Edge Case | See main text | Know the limitations | Avoids errors |
Further Reading
For students who want to go deeper:
- Standard textbooks on the subject
- Research papers applying this concept
- Online courses with video explanations
- Practice problem collections with detailed solutions