A CFD problem is not just the governing equations — it's the equations plus boundary conditions. The solution inside the domain is entirely determined by what happens at the boundaries. Wrong boundary conditions guarantee wrong answers, regardless of mesh quality or solver settings.
The Mathematical Necessity
The Navier-Stokes equations are a system of PDEs. For a well-posed problem, we need:
Existence: A solution exists
Uniqueness: Only one solution exists
Stability: Small changes in BCs → small changes in solution
This requires specifying the right number and type of boundary conditions:
Sponsored
70% of India's auto industry trusts Skill-Lync
For training their engineers in CAD, CAE & simulation
Learn More
Equation
Type
Required BCs
Continuity
1st order in $p$
1 condition somewhere
Momentum
2nd order in $\mathbf{u}$
2 conditions per direction
Energy
2nd order in $T$
2 conditions
Types of Boundary Conditions
Click each boundary type to see how it's implemented and when to use it.
1. Inlet Conditions
Purpose: Specify fluid entering the domain.
Common specifications:
Type
Variables Specified
Use Case
Velocity inlet
$u, v, w, k, \epsilon$
Known velocity profile
Mass flow inlet
$\dot{m}$, direction
Fixed mass flow rate
Pressure inlet
$p_0, T_0$
Compressible/HVAC
Turbulence
$k, \epsilon$ or $I, L$
Turbulent flows
Implementation (velocity inlet):
At inlet face $f$:
$u_f = u_{specified}$
$\phi_f = \phi_{specified}$ for all transported scalars
Turbulence specification:
If turbulence intensity $I$ and length scale $L$ are given:
$$k = \frac{3}{2}(U_{avg} \cdot I)^2$$
Sponsored
Harshal got placed at Fiat Chrysler as Design Engineer
Watch his video testimonial on how the program helped him
See His Journey
$$\epsilon = C_\mu^{3/4} \frac{k^{3/2}}{L}$$
2. Outlet Conditions
Purpose: Allow fluid to leave the domain without reflecting back.
Types:
Type
Specification
Physics
Pressure outlet
$p = p_{specified}$
Subsonic exit to atmosphere
Outflow
$\frac{\partial \phi}{\partial n} = 0$
Fully developed flow
Mass flow outlet
$\dot{m} = \dot{m}_{specified}$
Fixed extraction
Implementation (pressure outlet):
Pressure: $p_f = p_{specified}$
Velocity: Extrapolated from interior
Scalars: Zero gradient $\frac{\partial \phi}{\partial n} = 0$
Warning: Place outlets far from regions of interest. Flow should be nearly uniform at the outlet.
3. Wall Conditions
Purpose: Model the fluid-solid interface.
No-slip condition:
Alternatively, modify the discretization coefficients:
For a Dirichlet condition $\phi_{wall} = \phi_0$:
Set $a_{wall} = 0$ (no flux from wall)
Modify source: $S_P = S_P + $ wall contribution
For a Neumann condition $\frac{\partial \phi}{\partial n} = q$:
The flux is directly specified
No coefficient modification needed
Common Boundary Condition Mistakes
Mistake
Symptom
Solution
Outlet too close
Reversed flow at outlet
Extend domain
Wrong outlet BC
Non-physical pressure
Use pressure outlet
Missing turbulence at inlet
Laminar-like results
Specify $k, \epsilon$
Symmetry on asymmetric flow
Wrong flow patterns
Use full domain
Wall function with $y^+ < 30$
Incorrect wall shear
Adjust mesh or model
Compressible Flow BCs
For compressible flows, boundary conditions are based on characteristic analysis:
Subsonic Inlet
Specify: $p_0, T_0$, flow direction
Extrapolate: One characteristic (pressure wave)
Subsonic Outlet
Specify: $p_{exit}$
Extrapolate: All other variables
Supersonic Inlet
Specify: All variables ($\rho, u, v, w, T$)
No extrapolation (all characteristics enter)
Supersonic Outlet
Specify: Nothing
Extrapolate: All variables (all characteristics leave)
Practical Guidelines
Inlet Placement
Place far enough upstream that flow develops
Use velocity profile if developed flow exists
Include turbulence levels matching experiments
Outlet Placement
Far from recirculation zones
Flow should be nearly uniform
Monitor for reverse flow (indicates too close)
Domain Size (External Flows)
Upstream: 5-10 characteristic lengths
Downstream: 10-20 characteristic lengths
Lateral: 5-10 characteristic lengths
Symmetry reduces requirements
Checking BCs
Always verify:
Mass conservation (inlet = outlet for steady flow)
No reverse flow at outlets
Wall y+ in correct range for turbulence model
Reasonable velocity/pressure profiles
Key Takeaways
Boundary conditions complete the mathematical problem — wrong BCs = wrong solution
Inlet: Specify velocity or pressure, plus turbulence quantities
Outlet: Usually pressure outlet for subsonic, place far from region of interest
Walls: No-slip for viscous, wall functions for high-Re turbulent flows
Symmetry: Only use for truly symmetric flows
y+: Must match turbulence model requirements
Ghost cells: Common implementation technique for FVM
What's Next
With boundaries specified, we need to discretize the convection terms. The next lesson covers Convection Schemes — how different interpolation methods (upwind, central, QUICK) affect accuracy and stability.
Career Growth
3,000+ Engineers Placed in Top Companies
Join the ranks of successful engineers at Bosch, Tata, L&T, and 500+ hiring partners.