Skip to main content

Documentation Index

Fetch the complete documentation index at: https://compflowlab.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

CompFlowLab solves the coupled conservation equations for mass, momentum, total energy, and species mass fractions: qt+fxfvx=H\frac{\partial q}{\partial t} + \frac{\partial f}{\partial x} - \frac{\partial f_v}{\partial x} = H where qq is the vector of conserved variables defined as q=(ρρuρh0pρYl)q = \begin{pmatrix} \rho \\ \rho u \\ \rho h^0 - p \\ \rho Y_l \end{pmatrix} Here, ρ\rho is the density, uu is the velocity in the x-direction, and YlY_l is the mass fraction of the lthl^{th} species. The total specific enthalpy h0h^0 is defined as h0=h+12u2=lNhlYl+12u2h^0 = h + \frac{1}{2} u^2 = \sum_{l}^N h_l Y_l + \frac{1}{2} u^2

Fluxes

The fluxes are decomposed into inviscid ff and viscous fvf_v components: f=(ρuρu2+pρuh0ρuYl),fv=(0τxxuτxxqxρDlYlx)f = \begin{pmatrix} \rho u \\ \rho u^2 + p \\ \rho u h^0 \\ \rho u Y_l \end{pmatrix}, \quad f_v = \begin{pmatrix} 0 \\ \tau_{xx} \\ u \tau_{xx} - q_x \\ \rho D_l \frac{\partial Y_l} { \partial x} \end{pmatrix} Here, DlD_l denotes the effective diffusion coefficient of the lthl^th species into the mixture. In practice, this approximates multicomponent diffusion as the binary diffusion of each species into a mixture.

Heat Flux

The heat flux in the x-direction, qxq_x, is defined as qx=KTx+l=1NρDlYlxhl+qsourceq_x = -K \frac{\partial T}{\partial x} + \sum_{l=1}^N \rho D_l \frac{\partial Y_l}{\partial x} h_l + q_{source} where:
  • KK is the thermal conductivity,
  • TT is the temperature,
  • YlY_l are the species mass fractions,
  • hlh_l are the species specific enthalpies,
  • qsourceq_{source} represents volumetric heat sources (e.g., radiation or external heating).

    These three terms correspond to conduction, species diffusion, and volumetric heat generation, respectively.\

Shear Stress

The shear stress τxx\tau_{xx} is defined in terms of the molecular viscosity and velocity gradient:\ τxx=43μux\tau_{xx} = \frac{4}{3} \mu \frac{\partial u}{\partial x} where μ\mu is the molecular viscosity.

Source term

The source term HH accounts for chemical reactions and includes one entry per species equation representing the production or destruction rate of the lthl^th species, ωl\omega_l: H=(000ωl)H = \begin{pmatrix} 0 \\ 0 \\ 0 \\ \omega_l \end{pmatrix}