Skip to main content

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:
  1. Block Mesh Setup: Define computational domain and base mesh resolution
  2. Refinement Zones: Add local mesh density control where needed
  3. Mesh Settings: Configure parallel processing and quality parameters
  4. Generation: Create mesh with real-time monitoring and validation
  5. 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

Recommended Domain Factors (relative to geometry size):
- Upstream: 5-10× geometry length (flow development)
- Downstream: 15-25× geometry length (wake capture)
- Lateral: 5-8× geometry width (side effects)
- Vertical: 5-8× geometry height (boundary effects)

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

ApplicationRecommended Base Cell Size
Large aircraft0.5-1.0m
Small vehicles0.1-0.2m
Components0.01-0.05m
Micro-scale0.001-0.01m
Start Coarse: Begin with larger cell sizes and use refinement zones for local detail. This approach is more efficient than uniformly fine meshes.

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:
  1. Background Mesh: Coarse base mesh (Level 0)
  2. Flow Region: Medium refinement around geometry (Level 1-2)
  3. Critical Areas: High refinement near surfaces (Level 2-4)
  4. Boundary Layers: Surface layers for viscous effects

Refinement Level Guidelines

Level 0 (Base): Cell size = base_size
Level 1: Cell size = base_size / 2
Level 2: Cell size = base_size / 4
Level 3: Cell size = base_size / 8
Level 4: Cell size = base_size / 16

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

  1. Access: Search (Ctrl+K) → “Generate Mesh” or hotkey G
  2. Validation: Platform automatically checks configuration
  3. 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 ComplexityCell CountRuntime
Simple geometry0.5-2M cells10-30 minutes
Moderate detail2-8M cells30-90 minutes
High fidelity8-20M cells1-4 hours
Memory Requirements: Plan for ~100-200 MB RAM per million cells. Monitor system resources for large meshes.

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:
  1. Coarse Mesh: Baseline case for quick iteration
  2. Medium Mesh: Production mesh with balanced accuracy/cost
  3. Fine Mesh: Validation mesh for critical results
Convergence Criteria: Key results should vary < 5% between medium and fine meshes.

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

  1. Understand Flow Physics: Know what features need resolution
  2. Start Simple: Begin with coarse meshes, add complexity gradually
  3. Plan Refinement: Identify critical regions before mesh generation

Execution Phase

  1. Validate Geometry: Ensure clean, properly oriented STL files
  2. Size Domain Appropriately: Balance accuracy with computational cost
  3. Use Hierarchical Refinement: Multiple levels for optimal efficiency

Validation Phase

  1. Check Quality Metrics: Review orthogonality, aspect ratio, skewness
  2. Visual Inspection: Verify surface resolution and layer quality
  3. Mesh Independence: Test solution sensitivity to mesh density
Iterative Approach: Mesh generation is often iterative. Start with conservative settings and refine based on initial results and flow physics understanding.