Mesh Generation
Learn how to create high-quality computational meshes using the Navier AI Platform’s advanced meshing capabilities. Our platform uses industry-standard algorithms (SnappyHexMesh) with an intuitive interface that eliminates complex command-line operations.Meshing Workflow Overview
The platform provides a streamlined mesh generation process:- Block Mesh Setup: Define computational domain and base mesh resolution
- Refinement Zones: Add local mesh density control where needed
- Mesh Settings: Configure parallel processing and quality parameters
- Generation: Create mesh with real-time monitoring and validation
- Quality Check: Verify mesh metrics and visual inspection
Block Mesh Configuration
The block mesh defines your computational domain and provides the foundation for all mesh refinement.External Flow Setup
For external aerodynamics (most common):Access and Configuration
- Search Box:
Ctrl+K→ “External Flow” - Toolbar: Click the domain icon
- Presets: Choose from Small, Medium, or Large domain presets
Domain Sizing Guidelines
Core Parameters
- Cell Size: Base mesh resolution (start coarse, refine locally)
- Exterior Point: Location inside flow domain but outside geometry
- Domain Bounds: Manual adjustment for custom requirements
Automatic Boundary Conditions
The platform assigns appropriate boundary conditions:- Inlet (X-min): Velocity inlet
- Outlet (X-max): Pressure outlet
- Sides (Y±, Z±): Slip walls or symmetry
Internal Flow Setup
For internal flow analysis:When to Use
- Pipe flows, ducts, and enclosed volumes
- Flow through components with defined inlet/outlet
Configuration
- Interior Point: Location inside the flow domain
- Geometry Boundaries: Platform automatically detects surface patches
- Boundary Assignment: Manual assignment of inlet/outlet/wall conditions
Mesh Settings
Configure mesh generation parameters for optimal performance:Parallel Processing
- Number of Cores: 3-8 cores recommended for parallel mesh generation
- Access: Gear icon in toolbar → “Mesh Settings”
- Performance: More cores = faster generation (diminishing returns beyond 8)
Cell Size Guidelines
| Application | Recommended Base Cell Size |
|---|---|
| Large aircraft | 0.5-1.0m |
| Small vehicles | 0.1-0.2m |
| Components | 0.01-0.05m |
| Micro-scale | 0.001-0.01m |
Refinement Zones
Refinement zones provide targeted mesh density control where flow physics demand higher resolution.Available Zone Types
Box Refinement Zone
- Access: Search → “Box Refinement Zone” or hotkey
R1 - Best for: Wake regions, general flow areas
- Configuration: Min/max coordinates, refinement level
- Modes: Inside, outside, or distance-based refinement
Sphere Refinement Zone
- Access: Search → “Sphere Refinement Zone” or hotkey
R2 - Best for: Point sources, localized features
- Configuration: Center point, radius, refinement level
Cylinder Refinement Zone
- Access: Search → “Cylinder Refinement Zone” or hotkey
R3 - Best for: Rotating machinery, cylindrical wakes
- Configuration: Two axis points, radius, refinement level
Plane Refinement Zone
- Access: Search → “Plane Refinement Zone” or hotkey
R4 - Best for: Symmetry planes, ground effects
- Configuration: Base point, normal vector, refinement level
Geometry Refinement Zone
- Access: Search → “Geometry Refinement Zone” or hotkey
R6 - Best for: Surface refinement and boundary layers
- Configuration: Surface levels, feature angles, boundary layers
Refinement Strategy
Hierarchical Approach
Use multiple refinement levels for optimal efficiency:- Background Mesh: Coarse base mesh (Level 0)
- Flow Region: Medium refinement around geometry (Level 1-2)
- Critical Areas: High refinement near surfaces (Level 2-4)
- Boundary Layers: Surface layers for viscous effects
Refinement Level Guidelines
Surface Layers (Boundary Layers)
Essential for accurate viscous flow simulation:Key Parameters
- Number of Layers: 3-5 layers typically sufficient
- Expansion Ratio: 1.1-1.3 (gradual growth from surface)
- Final Layer Thickness: Target y+ values for flow regime
- Minimum Thickness: Prevent layer collapse
Y+ Guidelines
- y+ < 1: Direct viscous sublayer resolution (most accurate)
- 30 < y+ < 300: Wall function region (efficient)
- y+ > 300: Avoid this range (inaccurate)
Mesh Generation Process
Pre-Generation Validation
Before starting mesh generation:- Geometry Upload: STL files properly uploaded and oriented
- Domain Size: Adequate clearance from boundaries
- Refinement Setup: Zones configured appropriately
- Settings Check: Core count and quality parameters set
Generation Workflow
Starting Generation
- Access: Search (
Ctrl+K) → “Generate Mesh” or hotkeyG - Validation: Platform automatically checks configuration
- Resource Allocation: Cores assigned for parallel processing
Real-Time Monitoring
- Progress Bar: Completion percentage and time estimates
- Log Output: Detailed meshing progress and warnings
- Quality Metrics: Ongoing validation during generation
Typical Runtime Expectations
| Mesh Complexity | Cell Count | Runtime |
|---|---|---|
| Simple geometry | 0.5-2M cells | 10-30 minutes |
| Moderate detail | 2-8M cells | 30-90 minutes |
| High fidelity | 8-20M cells | 1-4 hours |
Mesh Quality Assessment
Automatic Quality Checks
The platform provides comprehensive quality validation:Key Metrics
- Orthogonality: Should be > 0.1 (higher is better)
- Aspect Ratio: Typically < 100 for most cells
- Volume Ratio: Smooth transitions between adjacent cells
- Skewness: Measure of cell distortion
Visual Inspection
- Surface Resolution: Geometry features properly captured
- Boundary Layers: Smooth inflation from surfaces
- Transitions: Gradual refinement level changes
- Coverage: Complete domain discretization
Quality Optimization Tips
For Better Accuracy
- Increase surface refinement around critical flow features
- Add boundary layers for viscous flow effects
- Extend refinement zones to capture flow phenomena
- Smooth transitions between refinement levels
For Computational Efficiency
- Optimize base cell size for problem scale
- Limit refinement levels to essential regions
- Use distance refinement when appropriate
- Balance accuracy vs. cost based on objectives
Troubleshooting Common Issues
Mesh Generation Failures
Poor Geometry Quality
Symptoms: Generation fails or poor surface resolution
Solutions: Check STL quality, repair geometry, adjust feature angles
Excessive Refinement
Symptoms: Very long generation times, memory issues
Solutions: Reduce refinement levels, optimize zone placement
Boundary Layer Collapse
Symptoms: No surface layers or poor inflation
Solutions: Adjust layer thickness, expansion ratio, minimum thickness
Domain Size Issues
Symptoms: Boundary effects, poor convergence
Solutions: Increase domain size, check exterior point placement
Quality Issues
Low Orthogonality
- Cause: Poor geometry or aggressive refinement
- Solution: Smooth geometry transitions, adjust refinement zones
High Aspect Ratio
- Cause: Boundary layer settings or domain shape
- Solution: Adjust layer parameters, modify domain proportions
Volume Ratio Problems
- Cause: Abrupt refinement transitions
- Solution: Add intermediate refinement levels
Advanced Meshing Techniques
Mesh Independence Studies
Verify solution accuracy by testing multiple mesh densities:- Coarse Mesh: Baseline case for quick iteration
- Medium Mesh: Production mesh with balanced accuracy/cost
- Fine Mesh: Validation mesh for critical results
Adaptive Refinement Strategies
Error-Based Refinement
- Identify high-gradient regions automatically
- Focus computational resources where needed
- Iterative improvement of solution quality
Feature-Based Refinement
- Target geometric features (edges, corners)
- Capture flow physics (shocks, boundary layers)
- Application-specific refinement patterns
Optimization Workflows
Template Creation
- Save successful mesh configurations
- Reuse for similar geometries
- Standardize team practices
Batch Processing
- Automate mesh generation for parameter studies
- Queue multiple configurations
- Unattended operation for overnight runs
Best Practices Summary
Planning Phase
- Understand Flow Physics: Know what features need resolution
- Start Simple: Begin with coarse meshes, add complexity gradually
- Plan Refinement: Identify critical regions before mesh generation
Execution Phase
- Validate Geometry: Ensure clean, properly oriented STL files
- Size Domain Appropriately: Balance accuracy with computational cost
- Use Hierarchical Refinement: Multiple levels for optimal efficiency
Validation Phase
- Check Quality Metrics: Review orthogonality, aspect ratio, skewness
- Visual Inspection: Verify surface resolution and layer quality
- Mesh Independence: Test solution sensitivity to mesh density