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
Flow Regime Classification
Flow Regime Classification
Incompressible (M < 0.3):
- Most automotive applications
- Low-speed aircraft
- Building aerodynamics
- Marine applications
- High-speed aircraft
- Gas turbine applications
- Rocket analysis
- Supersonic flows
Reynolds Number Considerations
Reynolds Number Considerations
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
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
Mesh Strategy
Hierarchical Approach
- Start Coarse: Validate setup with ~1M cells
- Refine Strategically: Add refinement only where needed
- Check Independence: Verify results converge with mesh density
- 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
| Metric | Target | Acceptable | Poor |
|---|---|---|---|
| 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
Velocity Specification
Velocity Specification
Uniform Velocity:
- Most common for external aerodynamics
- Specify magnitude and direction
- Include turbulence parameters
- Atmospheric boundary layer
- Pipe flow development
- Wind tunnel conditions
Turbulence Parameters
Turbulence Parameters
Turbulence Intensity (Tu):
- Wind tunnel: 0.1-0.5%
- Atmospheric: 5-15%
- Internal flows: 1-10%
- 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
- 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
- Drag/lift coefficients stable within ±1%
- Running average over last 100 iterations
- Check for oscillatory behavior
- Inlet mass flow = Outlet mass flow
- Imbalance < 0.1% of inlet flow
- Check for leaks or boundary condition errors
Recognizing Convergence Issues
Solutions:- Improve mesh quality (orthogonality, aspect ratio)
- Reduce relaxation factors (more conservative)
- Check boundary conditions (compatibility, physical realism)
- Enable potential flow initialization
- 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)
- Mass conservation (continuity equation)
- Momentum conservation (Newton’s second law)
- Energy conservation (first law of thermodynamics)
- 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
- 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: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
- Initial Setup: Quick validation run
- Mesh Study: Verify grid independence
- Validation: Compare with known data
- Optimization: Refine critical areas
- Production: Final high-quality simulation