luminarycloud.params.simulation.physics.fluid

Submodules

Classes

AdjointControlsFluid

BasicFluid

Basic settings for a fluid flow physics solver.

BoundaryConditionsFluid

Boundary conditions for a fluid flow physics solver.

InitializationFluid

Type of initial condition for the field variables.

PhysicalBehavior

Physical behavior settings for a fluid flow physics solver.

PorousBehavior

Porous model settings for a fluid flow physics solver.

SolutionControlsFluid

Solution controls for a fluid flow physics solver.

SpatialDiscretizationFluid

Spatial discretization settings for a fluid flow physics solver.

Turbulence

Turbulence settings for a fluid flow physics solver.

Package Contents

class AdjointControlsFluid
to_code() str
frozen_transition: bool = False

Simplify the adjoint equations (at the expense of accuracy) by assuming that turbulence variables are not affected by turbulence intermittency (γ).

frozen_turbulence: bool = False

Simplify the adjoint equations (at the expense of accuracy) by assuming that eddy viscosity does not depend on the turbulence variables.

gmres_restart_iters: int = 50

Number of iterations between GMRES restarts. A larger period makes the method more effective for tougher problems (for example incompressible flows), but increases the computational cost.

second_order_damping: float = 0

Simplify the adjoint equations (at the expense of accuracy) by reducing the blend between first-order and second-order convective schemes used in the primal simulation.

solution_method: luminarycloud.params.enum.AdjointSolutionMethod

The method used to solve the discrete adjoint equations.

class BasicFluid

Basic settings for a fluid flow physics solver.

to_code() str
viscous_model: luminarycloud.params.enum.ViscousModel

Set the viscous model for the fluid solver.

class BoundaryConditionsFluid

Boundary conditions for a fluid flow physics solver.

to_code() str
id: str = ''
name: str = ''
surfaces: list[str] = []
class InitializationFluid

Type of initial condition for the field variables.

to_code() str
class PhysicalBehavior

Physical behavior settings for a fluid flow physics solver.

to_code() str
blade_element_airfoil_data: list[BladeElementAirfoilData] = []

Construct a blade by assigning airfoil profiles to different radial stations

id: str = ''
name: str = ''
physical_behavior_model: PhysicalBehaviorModel

Defines the physical behavior type.

class PorousBehavior

Porous model settings for a fluid flow physics solver.

to_code() str
darcy_coeff: luminarycloud.types.Vector3

(x,y,z) components of the Darcy coefficients.

forchheimer_coeff: luminarycloud.types.Vector3

(x,y,z) components of the Forchheimer coefficients.

id: str = ''
name: str = ''
porous_model_type: luminarycloud.params.enum.PorousModelType

Type of porous model.

power_per_unit_volume: float = 0

Power per unit volume of the heat source.

ref_frame_id: str = ''

Frame that defines the principal directions used by the Darcy-Forchheimer coefficients.

volumes: list[str] = []
class SolutionControlsFluid

Solution controls for a fluid flow physics solver.

to_code() str
fluid_relaxation_method: FluidRelaxationMethod

Relaxation scheme for steady-state simulations or time implicit transient simulations.

preset: luminarycloud.params.enum.SolutionControlsFluidPreset

Select suggested control settings or allow a custom choice. In general, assume a trade-off between speed and robustness (i.e. the ability to converge).

pseudo_time_step_method: PseudoTimeStepMethod

Method for obtaining the pseudo time step in a steady-state simulation or for the inner iterations of the dual time stepping method.

class SpatialDiscretizationFluid

Spatial discretization settings for a fluid flow physics solver.

to_code() str
convective_scheme: ConvectiveScheme

Type of scheme for discretizing the convective terms of the fluid equations.

convective_scheme_order: ConvectiveSchemeOrder

Spatial order of accuracy of the convective scheme used for the fluid equations.

gradient_method: luminarycloud.params.enum.GradientMethod

Method for computing the spatial gradients of fluid variables.

hlsq_blend: float = 2.0

Blending parameter in the hybrid least squares gradient methods in [1,2].

preset: luminarycloud.params.enum.SpatialDiscretizationFluidPreset

Select suggested control settings or allow a custom choice. In general, assume a trade-off between accuracy and robustness (i.e. the ability to converge).

class Turbulence

Turbulence settings for a fluid flow physics solver.

to_code() str
des_formulation: DesFormulation

Select a Detached Eddy Simulation (DES) formulation.

sub_grid_scale_model: Optional[SubGridScaleModel]

Sub-grid scale models available for Large Eddy Simulation (LES).

transition_free_stream_turbulence_intensity: float = 0.002

The ratio of the root-mean-square velocity fluctuations to the free stream velocity. A higher number indicates a greater degree of turbulence in the incoming flow.

transition_model: luminarycloud.params.enum.TransitionModel

Laminar-turbulent transition models available for Reynolds-averaged Navier-Stokes (RANS).

transition_model_cross_flow: luminarycloud.params.enum.TransitionModelCrossFlow

Crossflow instability treatment for transition model.

turbulent_prandtl_number: float = 0.85

Turbulent Prandtl number for computing an effective thermal conductivity for heat transport.