Skip to content

Flow Mixture

FlowMixture is the reactive-flow mixture-properties module. It controls whether the velocity field is updated, the inlet-velocity shape (uniform vs. Poiseuille), the LBM reference viscosity, and the switches that turn on species- / dendrite-level coupling. It sits at the centre of the Reactive Flows sub-tree and is initialised before the per-species and per-energy solvers.

Key Classes and Concepts

Usage

Input

Defined in the @FlowMixture block. Every token has a default — the block is optional.

text
@FlowMixture

$LengthScale      Length scale for non-dimensionalisation       : 1.0
$Update_Vel       Update the velocity field each step           : No
$UniformVel       Prescribe a uniform inlet velocity            : Yes
$PoiseuilleVel    Prescribe a Poiseuille inlet profile          : No
$Austar           Star-Austenite reference value                : 300.0
$Species          Enable species coupling                       : No
$DI               Enable dendritic-interaction coupling         : No
$ZCORNER          Treat Z-corner specifically                   : No
$YCORNER          Treat Y-corner specifically                   : No
$SecOrdBB         Second-order bounce-back boundary             : No
$lbnu             LBM reference kinematic viscosity             : 0.005
$MaxU             Maximum allowed velocity magnitude            : 1.0
$Kp               Pressure-coupling coefficient                 : 1.0
TokenVariableTypeDefault
$LengthScaleLengthScaledouble1.0
$Update_VelUpdating_Velocityboolfalse
$UniformVelUniformVelbooltrue
$PoiseuilleVelPoiseuilleVelboolfalse
$AustarAustardouble300.0
$SpeciesSpeciesboolfalse
$DIDIboolfalse
$ZCORNERDO_ZCORNERboolfalse
$YCORNERDO_YCORNERboolfalse
$SecOrdBBSecOrdBBboolfalse
$lbnulbnudouble0.005
$MaxUMaxUdouble1.0
$KpKpdouble1.0

Output

FlowMixture publishes mixture-level state consumed by the other reactive-flows modules; it does not write its own file.

Example

cpp
#include "ReactiveFlows/FlowMixture.h"
FlowMixture Mix(OPSettings, InputFile);
// Downstream: SpeciesTransport and EnergyTransport read Mix flags.

Dependencies

Released under the GNU GPLv3 License.