Skip to main content
Ctrl+K
Flow360 Computational Fluid Dynamics Solver - Home
  • Introduction
    • Capabilities
    • Feature Compatibility Matrix
  • Quick Start
    • Introduction to the Flow360 WebUI
    • Automated Meshing with the WebUI
    • Launching a case with the WebUI
    • Postprocessing a case with the WebUI
    • Flow360 API Quickstart
  • User Guide
    • How Does It Work?
    • Workflows & Interfaces
    • Asset Drafts
    • Meshing
    • Output Configuration
    • Run Control
    • Units & Expressions
      • Units
      • User Defined Expressions
      • Legacy User Defined Expressions
    • Non-Dimensionalization
      • Introduction
      • Non-Dimensional Inputs
      • Non-Dimensional Outputs
      • Force and Moment Coefficients
    • Troubleshooting
      • Error when calculating patch interpolation coefficients
      • Fixing Divergence Issues
    • User Defined Dynamics
    • Report
  • GUI
    • Introduction
      • Dashboard
      • Starting Project
      • Workbench Layout
        • Top Bar
        • Viewer Region
        • Status Bar
      • General Workflow in Flow360 GUI
      • Project Tree
      • Keyboard Shortcuts
      • Project Settings
    • Simulation Setup
      • Operating condition
      • Mesh
        • Farfield
        • Mesh parameters
        • Rotation regions
        • Custom zones
        • Volume mesh slices
        • Refinements
          • Surface Edge Refinement
          • Surface Refinement
          • Boundary Layer Refinement
          • Passive Spacing
          • Uniform Refinement
          • Axisymmetric Refinement
          • Geometry Refinement
      • Flow solver
        • Boundary Conditions
          • Wall Boundary Condition
          • Freestream Boundary Condition
          • Inflow Boundary Condition
          • Outflow Boundary Condition
          • Periodic Boundary Condition
          • Symmetry Boundary Condition
          • Slip Wall Boundary Condition
          • Turbulence Quantities
        • Time Stepping
        • Physics
          • Fluid model
          • Solid model
          • Rotation model
          • BET disk model
          • Actuator disk model
          • Porous medium model
        • User-defined dynamics
      • Output
        • Reference Dimensions
        • Outputs List
          • Volume Output
          • Time-averaging Volume Output
          • Surface Output
          • Time-averaging Surface Output
          • Slice Output
          • Time-averaging Slice Output
          • Probe Outputs
          • Time-averaging Probe Outputs
          • Surface Probe Outputs
          • Surface Slice Output [Python only]
          • Surface Integral Output
          • Isosurface Output
          • Time-averaging Isosurface Output
          • Aeroacoustic Output
          • Streamline Output
          • Time-averaging Streamline Output
          • Force Output
          • Force Distribution Output
          • Time-averaging Force Distribution Output
          • Output Formats
        • Available Output Fields
        • Scaling Values and Nondimensionalization
    • Analysis
      • Dashboard
      • Convergence Monitoring in Flow360
      • Monitor
      • Visualization
      • Aeroacoustic Interface
    • Entities browser
      • Geometry
        • Edges
        • Faces
      • Surface Mesh
      • Volume Mesh
        • Zones
        • Boundaries
      • Volumes
        • Box
        • Cylinder
        • Axisymmetric volume
        • Custom volume
      • Points
      • Slices
      • Sample Surfaces
      • Derived Entities
      • Viewpoints
      • Coordinate Systems
      • Environment
      • Entity Tags
    • Tools
      • Probing
      • Variable Settings
      • Surface Mesh Diagnostics
      • Volume Mesh Diagnostics
      • Mesh Statistics Panel
  • Python API
    • Getting Started
    • Grab-and-Go Snippets
      • Calculate Dimensional Forces
      • Change Account and Submit
      • Download Results
      • Folder Operations
      • Fork a Case
      • Generate Multiple Meshes
      • Transform geometric entities with coordinate systems
      • Get Averaged Forces from a Boundary
      • Interpolate
      • List Projects
      • Move Case to Folder
      • Plot Probe Monitor Time History
      • Print Occupied Storage
      • Reuse Cloud Project
      • Total Flex Credits
      • List Cases
      • List Mesh Resources
    • Examples Library
      • Aeroacoustics
      • Alpha Sweep
      • Conjugate Heat Transfer
      • DARPA SUBOFF Actuator Disk
      • Dynamic Derivatives Using Sliding Interfaces
      • F1 Car Demo
      • Flat Plate with Structural Aerodynamic Load
      • Hinge Torques Monitoring
      • Isolated Wing with Propeller BET Model
      • MRF rotor
      • Periodic BCs
      • RANS CFD on 2D CRM Airfoil
      • SRF with Cube
      • Time-Accurate BET eVTOL Simulation Example
      • Time‑Accurate XV‑15 rotor
      • Transition Model 2D Airfoil
      • UDD Alpha Controller (Constant CL)
      • Unsteady 2D cylinder
      • Unsteady DDES HLPW4
      • Wall Roughness
      • Windsor Body
    • Migration Guide
      • BET Migration Tools
      • Example Monitor Conversion
    • API Reference
      • Setup
        • SimulationParams
      • Cloud Assets
        • Project
        • Case
        • Geometry
        • SurfaceMesh
        • VolumeMesh
      • Entities
        • Box
        • Cylinder
        • AxisymmetricBody
        • CustomVolume
        • SeedpointVolume
        • RotationVolume
      • Draft
        • DraftContext
        • create_draft
        • CoordinateSystemManager
        • MirrorManager
      • Meshing
        • MeshingParams
        • ModularMeshingWorkflow
        • MeshingDefaults
        • SurfaceEdgeRefinement
        • AngleBasedRefinement
        • HeightBasedRefinement
        • AspectRatioBasedRefinement
        • ProjectAnisoSpacing
        • SurfaceRefinement
        • BoundaryLayer
        • PassiveSpacing
        • UniformRefinement
        • AxisymmetricRefinement
        • GeometryRefinement
        • snappy.SurfaceMeshingParams
        • snappy.CastellatedMeshControls
        • snappy.QualityMetrics
        • snappy.SmoothControls
        • snappy.SnapControls
        • snappy.SurfaceMeshingDefaults
        • OctreeSpacing
        • snappy.BodyRefinement
        • snappy.RegionRefinement
        • snappy.SurfaceEdgeRefinement
        • VolumeMeshingParams
        • VolumeMeshingDefaults
        • AutomatedFarfield
        • UserDefinedFarfield
        • WindTunnelFarfield
        • CustomZones
        • MeshSliceOutput
        • Farfield Specifications
          • StaticFloor
          • FullyMovingFloor
          • CentralBelt
          • WheelBelts
      • Reference Geometry
        • ReferenceGeometry
      • Material
        • Air
        • Sutherland
        • SolidMaterial
        • Water
      • Operating Condition
        • AerospaceCondition
        • LiquidOperatingCondition
        • GenericReferenceCondition
        • ThermalState
      • Volume Models
        • Fluid
        • Solid
        • ActuatorDisk
        • BETDisk
        • Rotation
        • PorousMedium
      • Surface Models
        • Wall
        • SlipWall
        • Freestream
        • Inflow
        • Outflow
        • Periodic
        • SymmetryPlane
        • PorousJump
      • Time Stepping
        • Steady
        • Unsteady
        • CFL
          • AdaptiveCFL
          • RampCFL
      • Solver Configurations
        • NavierStokesSolver
        • SpalartAllmaras
        • KOmegaSST
        • NoneSolver
        • TransitionModelSolver
        • HeatEquationSolver
        • Solver Specs
          • LinearSolver
          • DetachedEddySimulation
          • SpalartAllmarasModelConstants
          • KOmegaSSTModelConstants
          • TurbulenceModelControls
      • Run Control
        • RunControl
        • StoppingCriterion
      • User Defined Expressions
        • UserVariable
      • User Defined Dynamics
        • UserDefinedDynamic
      • Outputs
        • VolumeOutput
        • TimeAverageVolumeOutput
        • SliceOutput
        • TimeAverageSliceOutput
        • SurfaceOutput
        • TimeAverageSurfaceOutput
        • IsosurfaceOutput
        • SurfaceIntegralOutput
        • SurfaceSliceOutput
        • ProbeOutput
        • TimeAverageProbeOutput
        • SurfaceProbeOutput
        • TimeAverageSurfaceProbeOutput
        • ForceOutput
        • ForceDistributionOutput
        • TimeAverageForceDistributionOutput
        • StreamlineOutput
        • TimeAverageStreamlineOutput
        • RenderOutput
        • AeroAcousticOutput
        • MovingStatistic
        • RenderOutputGroup
        • Camera
        • PBRMaterial
        • FieldMaterial
        • Output Fields
        • Output Entities
          • Isosurface
          • Slice
          • Point
          • PointArray
          • PointArray2D
          • Observer
      • Results
        • CaseResultsModel
        • MonitorsResultModel
        • MonitorCSVModel
        • NonlinearResidualsResultCSVModel
        • LinearResidualsResultCSVModel
        • CFLResultCSVModel
        • MinMaxStateResultCSVModel
        • MaxResidualLocationResultCSVModel
        • TotalForcesResultCSVModel
        • SurfaceForcesResultCSVModel
        • CustomForceResultModel
        • CustomForceCSVModel
        • SurfaceHeatTransferResultCSVModel
        • AeroacousticsResultCSVModel
        • LegacyForceDistributionResultCSVModel
        • XSlicingForceDistributionResultCSVModel
        • YSlicingForceDistributionResultCSVModel
        • ForceDistributionsResultModel
        • ForceDistributionCSVModel
        • UserDefinedDynamicsResultModel
        • UserDefinedDynamicsCSVModel
        • ActuatorDiskResultCSVModel
        • ActuatorDiskCoefficientsCSVModel
        • BETForcesResultCSVModel
        • BETDiskCoefficientsCSVModel
        • BETForcesRadialDistributionResultCSVModel
        • PorousMediumResultCSVModel
        • PorousMediumCoefficientsCSVModel
      • Report
        • report.Chart2D
        • report.Chart3D
        • report.NonlinearResiduals
        • report.ReportTemplate
        • report.Summary
        • report.Table
        • Figure Specifications
          • report.Grouper
          • report.PatternCaption
          • report.Settings
          • report.FixedRangeLimit
          • report.ManualLimit
          • report.SubsetLimit
        • Data Utilities
          • report.DataItem
          • report.Delta
          • report.Variable
          • report.Average
          • report.Expression
          • report.GetAttribute
        • Chart3D Cameras
          • report.Camera
          • report.BottomCamera
          • report.FrontCamera
          • report.FrontLeftBottomCamera
          • report.FrontLeftTopCamera
          • report.LeftCamera
          • report.RearCamera
          • report.RearLeftTopCamera
          • report.RearRightBottomCamera
          • report.TopCamera
  • Knowledge Base
    • Preprocessing
      • Meshing Recommendations
      • CGNS Mesh Format and Multizone Interface Connectivity
      • STEP Format CAD Import for Automated Meshing
      • BET Disk
      • ESP Tutorials
        • ESP Tutorial for the ONERA M6 Wing
        • ESP Tutorial for a 2D Multi-element Airfoil
    • Simulation
      • Time Stepping
      • NavierStokesSolver
      • TurbulenceModelSolver
      • TransitionModelSolver
      • HeatEquationSolver
      • Propeller Models and Rotational Volume Zones
      • Aeroacoustics
      • Solid
      • PorousMedium
    • Validation Studies
      • NACA 0012 Low Speed Airfoil
      • 2D NACA 4412 Airfoil Trailing Edge Separation
      • 2D Backward Facing Step
      • Transition Modeling
      • Wall Model
      • High Lift Common Research Model (HL-CRM)
      • Drag Prediction of Common Research Model
      • ONERA M6 Wing
      • XV-15 Rotor Blade Analysis using the Blade Element Disk Method
      • DTU 10MW Wind Turbine
      • Scale-Resolving Simulations Past a Circular Cylinder
      • Aeroacoustics and Noise Simulation
      • Underwater Flow Around the DARPA Model 4740 Submarine
      • Supersonic Aerodynamics of a Hammerhead Launch Vehicle
    • Papers
  • Release Notes
  • Repository
  • Open issue
  • .rst

NavierStokesSolver

Contents

  • NavierStokesSolver
    • NavierStokesSolver.absolute_tolerance
    • NavierStokesSolver.relative_tolerance
    • NavierStokesSolver.equation_evaluation_frequency
    • NavierStokesSolver.linear_solver
    • NavierStokesSolver.CFL_multiplier
    • NavierStokesSolver.kappa_MUSCL
    • NavierStokesSolver.numerical_dissipation_factor
    • NavierStokesSolver.limit_velocity
    • NavierStokesSolver.limit_pressure_density
    • NavierStokesSolver.low_mach_preconditioner
    • NavierStokesSolver.low_mach_preconditioner_threshold
    • NavierStokesSolver.update_jacobian_frequency
    • NavierStokesSolver.max_force_jac_update_physical_steps
    • NavierStokesSolver.from_file()
    • NavierStokesSolver.help()
    • NavierStokesSolver.to_file()

NavierStokesSolver#

class NavierStokesSolver[source]#

Bases: GenericSolverSettings

NavierStokesSolver class for setting up the compressible Navier-Stokes solver. For more information on setting up the numerical parameters for the Navier-Stokes solver, refer to Navier-Stokes solver knowledge base.

Example

>>> fl.NavierStokesSolver(
...     absolute_tolerance=1e-10,
...     numerical_dissipation_factor=0.01,
...     linear_solver=LinearSolver(max_iterations=50),
...     low_mach_preconditioner=True,
... )

Attributes

absolute_tolerance: float#

Tolerance for the NS residual, below which the solver goes to the next physical step.

Default:

1e-10

relative_tolerance: float#

Tolerance to the relative residual, below which the solver goes to the next physical step. Relative residual is defined as the ratio of the current pseudoStep’s residual to the maximum residual present in the first 10 pseudoSteps within the current physicalStep. NOTE: relativeTolerance is ignored in steady simulations and only absoluteTolerance is used as the convergence criterion.

Default:

0

equation_evaluation_frequency: int#

Frequency at which to solve the equation.

Default:

1

linear_solver: LinearSolver#
Default:

LinearSolver()

CFL_multiplier: float#

Factor to the CFL definitions defined in the Time Stepping section.

Default:

1.0

kappa_MUSCL: float#

Kappa for the MUSCL scheme, range from [-1, 1], with 1 being unstable. The default value of -1 leads to a 2nd order upwind scheme and is the most stable. A value of 0.33 leads to a blended upwind/central scheme and is recommended for low subsonic flows leading to reduced dissipation.

Default:

-1

numerical_dissipation_factor: float#

A factor in the range [0.01, 1.0] which exponentially reduces the dissipation of the numerical flux. The recommended starting value for most low-dissipation runs is 0.2.

Default:

1

limit_velocity: bool#

Limiter for velocity

Default:

False

limit_pressure_density: bool#

Limiter for pressure and density.

Default:

False

low_mach_preconditioner: bool#

Use preconditioning for accelerating low Mach number flows.

Default:

False

low_mach_preconditioner_threshold: float, optional#

For flow regions with Mach numbers smaller than threshold, the input Mach number to the preconditioner is assumed to be the threshold value if it is smaller than the threshold. The default value for the threshold is the freestream Mach number.

Default:

None

update_jacobian_frequency: int#

Frequency at which the jacobian is updated.

Default:

4

max_force_jac_update_physical_steps: int#

When physical step is less than this value, the jacobian matrix is updated every pseudo step.

Default:

0

Additional Constructors

classmethod from_file(filename)#

Loads a Flow360BaseModel from .json, or .yaml file.

Parameters:

filename (str) – Full path to the .yaml or .json file to load the Flow360BaseModel from.

Returns:

An instance of the component class calling load.

Return type:

Flow360BaseModel

Example

>>> params = Flow360BaseModel.from_file(filename='folder/sim.json') 

Methods

help(methods=False)#

Prints message describing the fields and methods of a Flow360BaseModel.

Parameters:

methods (bool = False) – Whether to also print out information about object’s methods.

Return type:

None

Example

>>> params.help(methods=True) 
to_file(filename, **kwargs)#

Exports Flow360BaseModel instance to .json or .yaml file

Parameters:

filename (str) – Full path to the .json or .yaml or file to save the Flow360BaseModel to.

Return type:

None

Example

>>> params.to_file(filename='folder/flow360.json') 

previous

Solver Configurations

next

SpalartAllmaras

By Flexcompute Inc

© Copyright Flexcompute 2020-2026.