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
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: luminarycloud.types.LcFloat = 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.

viscous_model: luminarycloud.params.enum.ViscousModel

Set the viscous model for the fluid solver.

class BoundaryConditionsFluid

Boundary conditions for a fluid flow physics solver.

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

Type of initial condition for the field variables.

class PhysicalBehavior

Physical behavior settings for a fluid flow physics solver.

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. Possible types: ActuatorDiskModel, ActuatorLineModel, ParticleSourceModel from the physical_behavior_model module.

class PorousBehavior

Porous model settings for a fluid flow physics solver.

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: luminarycloud.types.LcFloat = 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.

fluid_relaxation_method: FluidRelaxationMethod

Relaxation scheme for steady-state simulations or time implicit transient simulations. Possible types: FluidImplicitRelaxation, FluidExplicitRelaxation from the fluid_relaxation_method module.

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. Possible types: CflBased, FixedPseudoTimeStep from the pseudo_time_step_method module.

class SpatialDiscretizationFluid

Spatial discretization settings for a fluid flow physics solver.

convective_scheme: ConvectiveScheme

Type of scheme for discretizing the convective terms of the fluid equations. Possible types: Fds, Ld2, Ec2, RhieChow from the convective_scheme module.

convective_scheme_order: ConvectiveSchemeOrder

Spatial order of accuracy of the convective scheme used for the fluid equations. Possible types: SecondOrder, FirstOrder from the convective_scheme_order module.

gradient_method: luminarycloud.params.enum.GradientMethod

Method for computing the spatial gradients of fluid variables.

hlsq_blend: LcFloat = 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.

des_formulation: DesFormulation

Select a Detached Eddy Simulation (DES) formulation. Possible types: DdesVtm, DdesVtmSigma, Iddes, Ddes, Des97, Zdes from the des_formulation module.

sub_grid_scale_model: SubGridScaleModel | None

Sub-grid scale models available for Large Eddy Simulation (LES). Possible types: Smagorinsky, Vreman, Wale, Sigma, Amd from the sub_grid_scale_model module.

transition_free_stream_turbulence_intensity: LcFloat = 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: LcFloat = 0.85

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