Skip to main content

CFD Best Practices

Follow these guidelines to ensure accurate, efficient, and reliable CFD simulations on the Navier AI Platform.

Simulation Planning

Define Objectives Clearly

Before starting any simulation:

Primary Goals

Identify Key Metrics:
  • Drag/lift coefficients
  • Pressure distributions
  • Flow separation points
  • Heat transfer rates
  • Performance parameters

Accuracy Requirements

Set Realistic Targets:
  • Engineering accuracy: ±5-10%
  • Design optimization: ±2-5%
  • Research validation: ±1-2%
  • Parametric trends: ±10%

Understand Your Physics

Incompressible (M < 0.3):
  • Most automotive applications
  • Low-speed aircraft
  • Building aerodynamics
  • Marine applications
Compressible (M > 0.3):
  • High-speed aircraft
  • Gas turbine applications
  • Rocket analysis
  • Supersonic flows
High Re (> 10⁶): Turbulent flow, use RANS models Moderate Re (10³-10⁶): Transitional, consider transition models Low Re (< 10³): Laminar flow possibleCalculate Re = ρVL/μ
  • ρ: Density
  • V: Velocity
  • L: Characteristic length
  • μ: Dynamic viscosity

Geometry Best Practices

CAD Preparation

Golden Rule: Simplify geometry while preserving flow-critical features. Remove unnecessary details that don’t affect the primary flow physics.
Recommended Simplifications:
  • Remove small holes and fillets (< 1% of characteristic length)
  • Simplify complex assemblies to essential components
  • Use symmetry when applicable to reduce domain size
  • Close gaps between components if flow-through is not critical

File Quality Standards

Pre-Simulation Checklist:
✓ Watertight geometry (no holes)
✓ Proper normal orientation
✓ Reasonable triangle quality
✓ Consistent units (meters recommended)
✓ Proper coordinate system alignment
✓ Scale verification (realistic dimensions)

Mesh Strategy

Hierarchical Approach

  1. Start Coarse: Validate setup with ~1M cells
  2. Refine Strategically: Add refinement only where needed
  3. Check Independence: Verify results converge with mesh density
  4. Optimize Performance: Balance accuracy with computational cost

Critical Refinement Areas

Boundary Layers

Near-wall regions:
  • y+ = 30-300 (wall functions)
  • y+ < 1 (wall integration)
  • Adequate resolution for turbulence model

High Gradients

Flow feature capture:
  • Separation/reattachment zones
  • Wake regions
  • Stagnation points
  • Shock waves (compressible)

Shear Layers

Mixing regions:
  • Free shear layers
  • Jet boundaries
  • Wake mixing zones
  • Turbulent interfaces

Geometric Features

Shape-dependent:
  • Sharp edges
  • Leading/trailing edges
  • Surface discontinuities
  • Component intersections

Mesh Quality Guidelines

MetricTargetAcceptablePoor
Orthogonality> 0.3> 0.1< 0.1
Aspect Ratio< 100< 1000> 1000
Skewness< 0.7< 0.9> 0.9
Volume Ratio< 2< 4> 4

Boundary Condition Guidelines

Inlet Conditions

Uniform Velocity:
  • Most common for external aerodynamics
  • Specify magnitude and direction
  • Include turbulence parameters
Velocity Profile:
  • Atmospheric boundary layer
  • Pipe flow development
  • Wind tunnel conditions
Turbulence Intensity (Tu):
  • Wind tunnel: 0.1-0.5%
  • Atmospheric: 5-15%
  • Internal flows: 1-10%
Turbulent Viscosity Ratio:
  • External flows: 1-10
  • Internal flows: 10-100
  • High disturbance: 100-1000

Outlet Conditions

Pressure Outlet (Recommended):
  • Zero gauge pressure
  • Natural pressure boundary
  • Prevents artificial pressure drops
Velocity Outlet (Special Cases):
  • When outlet velocity is known
  • Mass flow conservation critical
  • Confined flow channels

Wall Conditions

No-Slip Walls

Standard for solid surfaces:
  • Zero velocity at wall
  • Appropriate for all viscous flows
  • Most physically realistic

Slip Walls

Inviscid approximation:
  • Zero normal velocity only
  • Useful for far-field boundaries
  • Computational efficiency

Convergence and Monitoring

Convergence Criteria

Residuals: Monitor equation residuals
  • Target: < 1e-4 for momentum and continuity
  • Target: < 1e-5 for turbulence equations
  • Trend more important than absolute values
Forces: Monitor integrated quantities
  • Drag/lift coefficients stable within ±1%
  • Running average over last 100 iterations
  • Check for oscillatory behavior
Mass Conservation: Verify global conservation
  • Inlet mass flow = Outlet mass flow
  • Imbalance < 0.1% of inlet flow
  • Check for leaks or boundary condition errors

Recognizing Convergence Issues

Signs of Poor Convergence:
  • Residuals not decreasing after 1000 iterations
  • Force coefficients oscillating > ±5%
  • Mass flow imbalance > 1%
  • Unphysical velocity or pressure values
Solutions:
  1. Improve mesh quality (orthogonality, aspect ratio)
  2. Reduce relaxation factors (more conservative)
  3. Check boundary conditions (compatibility, physical realism)
  4. Enable potential flow initialization
  5. Extend iteration count (sometimes needs more time)

Result Validation

Sanity Checks

Physical Realism:
  • Pressure higher at stagnation points
  • Flow separation in adverse pressure gradients
  • Wake formation behind bluff bodies
  • Symmetry preservation (if geometric symmetry exists)
Conservation Laws:
  • Mass conservation (continuity equation)
  • Momentum conservation (Newton’s second law)
  • Energy conservation (first law of thermodynamics)
Order of Magnitude:
  • Drag coefficients: 0.1-1.5 for most bodies
  • Pressure coefficients: -3 to +1 typically
  • Velocities: Within expected physical bounds

Comparison Standards

Experimental Data

Gold Standard:
  • Wind tunnel measurements
  • Flight test data
  • Published research results
  • Industry databases

Analytical Solutions

Simplified Cases:
  • Flat plate boundary layer
  • Cylinder in crossflow
  • Sphere drag curves
  • Potential flow solutions

CFD Benchmarks

Standard Test Cases:
  • Ahmed body (automotive)
  • DrivAer model (automotive)
  • NACA airfoils (aerospace)
  • Building aerodynamics cases

Previous Studies

Consistency Checks:
  • Similar geometries
  • Comparable conditions
  • Same simulation setup
  • Trend validation

Performance Optimization

Computational Efficiency

Mesh Size Management:
  • Start with coarse mesh for setup validation
  • Use adaptive refinement when available
  • Focus high resolution on critical regions only
  • Document mesh independence studies
Solver Optimization:
  • Use potential flow initialization for external flows
  • Monitor convergence and stop when adequate
  • Choose appropriate turbulence model for application
  • Balance accuracy requirements with time constraints

Resource Planning

Typical Simulation Times:
Mesh Size vs. Runtime (8-core system):
1-3M cells: 30-60 minutes
3-8M cells: 1-3 hours
8-15M cells: 3-8 hours
15M+ cells: 8+ hours
Memory Requirements:
Rule of Thumb:
~1GB RAM per 1M cells
Safety factor: 2× for comfort
Example: 10M cells → 20GB RAM recommended

Common Pitfalls to Avoid

Geometry Issues

  • Scale Errors: Always verify dimensions after import
  • Orientation Problems: Ensure proper flow direction alignment
  • Poor Quality: Check for holes, inverted normals, bad triangles

Mesh Problems

  • Under-Refinement: Missing critical flow features
  • Over-Refinement: Wasting computational resources
  • Poor Quality: High skewness, negative volumes, bad aspect ratios

Boundary Condition Errors

  • Unphysical Values: Unrealistic velocities or pressures
  • Incompatible Conditions: Mass flow imbalance
  • Wrong Types: Inappropriate boundary condition selection

Convergence Mistakes

  • Premature Stopping: Not running enough iterations
  • Ignoring Oscillations: Accepting oscillatory “convergence”
  • Poor Monitoring: Not watching the right variables

Documentation and Workflow

Simulation Documentation

Keep records of:
  • Geometry source and modifications
  • Mesh settings and refinement strategy
  • Boundary conditions and material properties
  • Solver settings and convergence criteria
  • Key results and validation metrics

Iterative Improvement Process

  1. Initial Setup: Quick validation run
  2. Mesh Study: Verify grid independence
  3. Validation: Compare with known data
  4. Optimization: Refine critical areas
  5. Production: Final high-quality simulation

Quality Assurance Checklist

Pre-Submission Checklist:
□ Geometry validated and properly oriented
□ Mesh quality meets standards
□ Boundary conditions physically realistic
□ Simulation converged to target criteria
□ Results pass sanity checks
□ Key metrics documented
□ Comparison with validation data (if available)

Remember: CFD is both an art and a science. These guidelines provide a foundation, but experience and engineering judgment are essential for consistently accurate results.