CMIM Module

The cmim_avof module models compressible flow with immiscible materials. This module is an algebraic VOF method. Each material has its own equation of state (EOS) and may contain multiple species. Materials share pressure, temperature, and velocity. It currently solves the total enthalpy equation only.

Basic Setup

Below is an example of how to load the cmim_avof module and the EOS modules required by the materials. In this example liquid is placed on the negative-x side of a plane at x=0 and gas on the other side. Everything is at rest at 1 bar and 300 K. The gas.mdl and liquid.mdl files have one species each, with no reactions. The liquid uses realFluid.

CMIM additions to a run control file.
loadModule: realFluid
loadModule: cmim_avof
{
// Initial conditions
initialConditionRegions: <
  default=state(u=0 m/s, p=1 bar, T=300 K, vof=[Gas=1]),
  liquid=state(u=0 m/s, p=1 bar, T=300 K, vof=[Liquid=1]),
  regions=[leftPlane(point=[0 m, 0 m, 0 m], normal=[1, 0, 0], composition=liquid)]
>

// Flow properties
flowRegime: laminar
flowCompressibility: compressible

// Transport properties
transport_model: module
diffusion_model: none

// Time-stepping
timeIntegrator: BDF

// Fluxes
inviscidFlux: FOU
momentumInterpolationOptions: <form=new, conservativePressure>

// Pressure-correction equation
pressureBasedMethod: SIMPLEC

// Energy equation
energyEquationOptions: <form=totalEnthalpy>

// CMIM materials
materialModels: <
  Gas=materialModel(chemistry_model=gas, eos_type=gas, thermodynamic_model=adaptive,
    transport_model=const_viscosity, mu=1.8e-5, kcond=0.026),
  Liquid=materialModel(chemistry_model=liquid, eos_type=fluid, thermodynamic_model=adaptive,
    transport_model=const_viscosity, mu=0.001, kcond=0.6)
>

// CMIM transport
vofInviscidFlux: FOU

// Printing, plotting and restart parameters.
plot_output: vof, materialDensity
}

Material Properties

Materials are defined in a materialModels list. Each material is specified using the materialModel(...). The options that can be set inside each material are listed in the table below. See Appendix: Thermodynamic Data for file syntax.

Material property options

Option

Requirement

Meaning

chemistry_model

Required

Material model filename without .mdl

eos_type

Required

EOS name: gas for an ideal gas, fluid for a loaded real-fluid or tabulated EOS, or default

thermodynamic_model

Required

Caloric model, such as adaptive; see Appendix: Thermodynamic Data

transport_model

Required

const_viscosity, chemkin, transportDB, or tabularEoS

mu

With const_viscosity

Constant viscosity, kg/(m s)

kcond

With const_viscosity

Constant conductivity, W/(m K)

eos_temperature_min, eos_temperature_max

Optional pair

Temperature bounds, K; minimum below maximum

eos_pressure_min, eos_pressure_max

Optional pair

EOS pressure bounds, Pa; minimum below maximum

Coefficients with no units specified will use SI units. See Appendix: Transport Properties for transport data. Select these models inside each material and keep top-level transport_model: module when using the cmim_avof module. Keep top-level diffusion_model: none as well. Material diffusion is configured under Turbulence and Diffusion.

The min and max temperature and pressure bounds can be used to set EOS bounds to the verified range of each material model. Use these optional bounds to restrict a material’s EOS queries to a chosen pressure or temperature range. Active material states must remain within them. Tabulated liquid/vapor branches may impose narrower limits than the table’s overall pressure and temperature range.

For a material using transport_model=tabularEoS, specify eos=Table(...) and viscosity and conductivity tables for every species. See Tabulated EoS Transport.

Initial and Boundary Conditions

Use initialCondition or initialConditionRegions with pressure, temperature, velocity to specify the standard flow variables initial conditions. For specifying the per-material VOF initial condition, use vof=[material=fraction,...], where fraction is just a placeholder here for the volume fraction. Names must match the ones used in the materialModels section. Volume fractions must sum to one. Omitted materials are assumed to be absent.

For multispecies materials, also give materialComposition, such as materialComposition=[material=[species1=fraction1,species2=fraction2]]. A simple example is shown below.

materialComposition=[Air=[N2=0.77,O2=0.23]]

In this example above Air is the material name, and N2 and O2 are the species names of the species that are part of that material. Each composition must sum to one. Omitted species are assumed to be zero. Single-species material compositions are inferred to be 1.0. These species fractions are mass fractions within each material.

Boundary Conditions

Boundary conditions are specified using the standard syntax boundary syntax. The example below shows how to specify boundary conditions for a single-species Gas material.

boundary_conditions: <
  Inlet=subsonicInlet(mdot=0.01 kg/s, T=300 K, vof=[Gas=1]),
  Outlet=fixedPressureOutlet(p=1 bar)
>

To allow backflow through a fixedPressureOutlet boundary, add entrainment and specify reservoir pressure p, total temperature T0 and vof, plus any required materialComposition.

Outlet=fixedPressureOutlet(p=1 bar, entrainment, T0=300 K, vof=[Gas=1])

As a note: backflow uses a low-Mach stagnation approximation.

Cell-Average Volume Fractions

By default, cmimVOFInitialization: cellCenter assigns material fractions from the regional state at each cell center. When using initialConditionRegions, set cmimVOFInitialization: geometric to average material volume fractions over each cell. Pressure, temperature and velocity use the same regional state at the cell center. Consider the example below with two single-species Gas and Liquid materials.

initialConditionRegions: <
  default=state(u=0 m/s, p=1 atm, T=300 K, vof=[Gas=1]),
  liquid=state(u=0 m/s, p=1 atm, T=300 K, vof=[Liquid=1]),
  regions=[inSphere(center=[0.5 m, 0.5 m, 0.5 m], radius=0.25 m, composition=liquid)]
>

cmimVOFInitialization: geometric

The geometric initialization averages the material volume fractions over each cell, which gives a more accurate representation of the interface between the two materials, especially in cases where the interface is not aligned with the grid. Using the standard cellCenter initialization may lead to a more jagged interface representation. The table below summarizes the geometric initialization options.

Geometric Initialization Options

Option

Default

Meaning

cmimVOFInitialization

cellCenter

cellCenter samples cell centers; geometric averages regional material volume fractions over each cell.

cmimGeometricVOFRefinement

4

Maximum subdivision depth: 0–8, or 0–5 for three or more materials in 3-D.

cmimGeometricVOFTolerance

1e-3

Absolute volume-fraction tolerance for two-material 3-D initialization: 1e-8 to 0.1. Surface resolution is set separately.

For two-material 3-D initialization, increase refinement to meet a tighter volume-fraction tolerance. Use smaller tolerances to resolve small fractions. For 2-D overlaps or three or more materials, assess volume accuracy by increasing refinement.

Regions from Surface Meshes

The initialConditionRegions specification accepts closed surface files. These externally defined surface meshes can be used to initialize regions with complex shapes. A closed surface encloses the region that receives a named state from initialConditionRegions. This surface mesh is independent of the fluid mesh.

Use inSurface to select the interior of a provided ASCII .surf file in the format written by Loci’s vog2surf utility. Below is a sample of how to specify a region using a surface mesh file named fill.surf.

regions=[inSurface(file="fill.surf", composition=liquid)]

Here, fill.surf defines the shape and liquid names a state in initialConditionRegions. Surface coordinates use metres. Faces may be triangles, quadrilaterals or planar polygons. This surface must be closed, consistently oriented and without self-intersections. Regions may contain concave or disconnected volumes.

If you have a separate volume mesh that you wish to use to define the region, extract its boundary surface with:

vog2surf fill -o fill.surf

For a curved surface representation, a Loci .geom file can be used. Loci’s computegeom utility reconstructs curved patches from a triangle or quadrilateral surface mesh. Below is an example of how to call the utility.

computegeom -from_surf fill

This reads fill.surf and writes fill.geom. Once the .geom file is generated, it can be specified using inGeometry, as shown below.

regions=[inGeometry(file="fill.geom", composition=liquid)]

Set subdivisions in inGeometry to control how finely the curved patches are sampled (default 4; range 1-64).

Initial Condition Programs

More complex initial conditions can be specified using the initialConditionProgram. Set vof inside model=fields(...). Add materialComposition for multispecies materials. Use the material names from materialModels and the species names from their .mdl files.

model=fields(
  vof=[Liquid_water=0.6, Air_mix=0.4],
  materialComposition=[Air_mix=[N2=0.77, O2=0.23]]
)

For hydrostatic pressure, CMIM evaluates density from the material equations of state.

Numerical Controls

CMIM couples material transport to pressure, velocity, and energy. The controls below set spatial reconstruction, equation convergence, and the treatment of gravity.

Reconstruction

Reconstruction determines the values used to calculate fluxes at cell faces. inviscidFlux selects the flow scheme, while vofInviscidFlux selects the material scheme. Material reconstruction defaults to first-order upwind (FOU), while MIG uses compressive reconstruction to maintain sharp material interfaces. The table below summarizes combinations of options can be used together.

Flow and material fluxes

inviscidFlux

vofInviscidFlux

Setup

FOU

FOU, MIG

First-order flow reconstruction.

SOU

SOU, MIG

limiter: barth (or B), vecminLimiter: 0, gradStencil: standard, gradType: standard. Use MIG at open boundaries. SOU/SOU can fail to converge at sharp interfaces.

SLAU, SLAU2

FOU

limiter: zero, slau_reconstruct: 1, slau_SD: 0, slau_hybrid: off. Closed or periodic boundaries.

AUSMUP

FOU

limiter: zero, MUSCL pressure reconstruction (default). Closed or periodic boundaries.

For bodyForceWeighted interpolation, see the momentum interpolation settings.

Equation Controls

Material transport has separate controls for advection, species solves, and convergence. Set advection and material convergence controls in vofEquationOptions and species-solver controls in materialSpeciesEquationOptions:

vofEquationOptions: <materialAdvection=implicit,requireConvergence=on>
materialSpeciesEquationOptions: <linearSolver=SGS,relaxationFactor=0.5>
Options inside vofEquationOptions

Option

Default

Values and meaning

materialAdvection

implicit

implicit or standard: different linearizations of the same converged flux. Material FOU uses donor advection in either mode.

conservativeFluxRescale

off

on limits face-flux corrections for material SOU or MIG.

requireConvergence

off

on stops if CMIM convergence checks fail at maxIterationsPerTimeStep; off warns.

updateTolerance

1e-6

Volume-fraction update tolerance, including post-pressure material appearance.

materialVolumeTolerance

1e-6

Material-volume residual tolerance.

continuityTolerance

1e-6

Material continuity residual tolerance.

admissibilityTolerance

1e-6

Volume-fraction bound and sum-to-one tolerance, in (0,0.5).

These tolerances are dimensionless.

Options inside materialSpeciesEquationOptions

Option

Default

Values and meaning

linearSolver

SGS

Symmetric Gauss–Seidel species solve.

relaxationFactor

0.5

Species-equation under-relaxation factor, in (0,1].

maxIterations

5

Maximum linear-solver iterations.

updateTolerance

1e-6

Species-density update tolerance, normalized by mixture density.

negativeDensityTolerance

1e-16 kg/m³

Round negative species densities within this tolerance to zero.

materialDensityCutoff

1e-20 kg/m³

Zero an entire material below this partial-density cutoff. Equality and trace species in retained materials are preserved. Materials participating in materialReactions are exempt. Zero retains only floating-point underflow cleanup.

Values without units for the density controls are assumed to be in kg/m³. The material cutoff applies after the species solve and to both saved time levels on restart. Cleanup changes mass. Species equations residual tolerances use the species entries in convergenceAbsoluteTolerance and convergenceRelativeTolerance (or their default entries). The relative species residual is normalized by the magnitudes of the equation terms, not by its initial residual. For a species equation that passes either its absolute or relative test, it must also pass the separate species-density and volume-fraction update tests. See Time Step Convergence.

cmimEnthalpyInversionTolerance sets the absolute enthalpy residual used to recover the common temperature. Supply a value in J/kg. The default is 1e-6. Smaller values tighten the temperature solve.

Composition Limiters

Composition limiters control the reconstructed species mass fractions within each material and their contribution to the enthalpy flux. With inviscidFlux: SOU, select the composition limiter using cmim_limiter and keep the flow limiter: barth.

Composition limiter options

Option

Default

Values and meaning

cmim_limiter

barth

barth/B, venkatakrishnan/V, mlp, or mlp_pw.

cmim_limiter_K

1.0

Smoothing parameter for venkatakrishnan, mlp, and mlp_pw.

cmim_mlp_mode

0

For mlp_pw: 0 pressure weighted, 1 strict, 2 weak.

AUSM Parameters

The AUSMUP parameters control pressure and velocity jump dissipation in the face fluxes. Set them in cmimAUSMFluxParameters:

cmimAUSMFluxParameters: <Kp=0.25,Ku=0.75>
Options inside cmimAUSMFluxParameters

Option

Default

Meaning

Kp

0.25

Pressure-jump dissipation in the mass flux

Ku

0.75

Velocity-jump dissipation in the face pressure

sigma

1.0

Controls the decrease of pressure-jump dissipation with Mach number

pressureMachCutoff

0.1

Mach-number floor for pressure-jump dissipation

velocityMachCutoff

1e-13

Mach-number floor for pressure splitting and velocity-jump dissipation

Kp, Ku, and sigma lie in [0,1]. The Mach cutoffs lie in (0,1].

Gravity Density

The density that is used for gravity affects the coupling to material transport during each nonlinear iteration. In buoyancyOptions, density=current (default) uses density entering the nonlinear iteration. The density=predictor option uses density after material prediction for both cell and face gravity. Both choices give the same converged equations, but the predictor option can improve convergence for some flows.

inviscidFlux: FOU
momentumInterpolationOptions: <form=old,conservativePressure>
gravity: <g=[0.0,-9.81,0.0],rhoref=0.0>
buoyancyOptions: <conservative,density=predictor>

Predictor density requires gravity, form=old, conservative buoyancy, and FOU or SOU flow fluxes.

Hydrostatic Reference

A hydrostatic reference preserves a prescribed background pressure balance while allowing heating, transport, and perturbations. Activate it with cmimHydrostaticReference: on (default off).

Load initial_conditions and supply a hydrostatic initialConditionProgram with explicit reference=plane(...). The gravity-aligned line through its point defines the background temperature and material distribution. Pprescribe zero velocity there. Retain this program and material models on restart.

Hydrostatic reference settings

Flux

Required settings

FOU or SOU with form=Denner

pressureReconstruction=CD and buoyancyOptions: <conservative>.

FOU or SOU with form=old

conservativePressure, pressureReconstruction=CD, and conservative buoyancy. density=predictor selects density after material prediction.

SLAU, SLAU2, or AUSMUP

Standard or conservative buoyancy; omit form=Denner.

The pressure-based combinations support axisymmetry with centroid: wireframe when gravity is parallel to the x axis.

Output and Restart

CMIM outputs describe the distribution and composition of each material, their integrated masses, and equation convergence. Use the shared output controls for field selection and frequency. Additional fields and counters are listed under Detailed Diagnostics.

Material and Species Output

Default plots include vof_<material> (volume fraction) and Y_<species> (mixture mass fraction), selected by vof and mixture. Identical species names across materials contribute to the same mixture field. Select additional families with plot_output:

Material output families

Selector

Output names

Meaning

materialMassFraction

materialMassFraction_<material>

Material mass divided by mixture mass.

materialPartialDensity

materialPartialDensity_<material>

Material mass per mixture volume, in kg/m³.

materialDensity

materialDensity_<material>

Intrinsic material density, in kg/m³; zero where absent.

materialComposition

materialComposition_<material>::<species>

Species mass fraction within the material; zero where absent.

materialSpeciesRhoD

materialSpeciesRhoD_<material>::<species>

Material density times species diffusivity, in kg/(m s).

At print events, output/materialVolume.dat records each material’s volume in m³; output/cmimMaterialMass.dat records material and species masses in kg.

Convergence Status

CMIM reports species residuals at each nonlinear iteration and convergence status at the end of each timestep. cmimResidualOutput: species (default) prints every species residual on RV_<n>: lines, one per material. The columns contain the timestep number, iteration, and species residuals in kg/s. Each residual is the sum of absolute cell residuals. A print statement at startup shows the column order:

# RV_1: material="Gas" index=0 species=["H2"] units=kg/s norm=global_L1
RV_1:  1363 62 1.200000e-08

Use cmimResidualOutput: summary for one RV: line containing the cycle, iteration, and maximum species residual in each material.

The final nonlinear iteration prints CMIM_STOP: cycle iteration cmim_ok=... all_ok=... at_limit=.... The cmim_ok reports CMIM convergence, all_ok includes all active equations. at_limit is one when maxIterationsPerTimeStep has been reached.

If CMIM checks fail at the iteration cap, CMIM reports the worst failing species equation and each failing closure or state check. Add cmimConvergence to diagnostics for per-iteration RCMIM: status and all failing species at the cap.

Plot nonlinearConverged to distinguish convergence (1) from failure (0), and nonlinearIterationLimitReached to detect the iteration cap (1). Convergence can occur at the cap. These spatially uniform fields report the final iteration, or each written iteration with plot_output_iteration: on.

Restart

Use the standard restart procedure. The material-density cutoff also applies when reading a restart.

Turbulence and Diffusion

This module uses Menter SST 2003 (menterSST2003) to model turbulent momentum transport. Molecular and turbulent diffusion control species mixing within each material. When molecular or turbulent species diffusion is active, use:

gradStencil: standard
gradType: standard

Material Diffusion

Molecular and turbulent diffusion are independent. In turbulent flow, multispecies materials use turbulent mixing by default, even when their molecular diffusion_model is none.

Options inside materialModel(...)

Option

Default

Values and meaning

diffusion_model

none

none disables molecular diffusion; constant uses diffusivity.

diffusivity

Unset

Molecular diffusivity in m²/s for diffusion_model=constant.

turbulent_diffusion_model

schmidt

schmidt or none. Selects turbulent mixing for a multispecies material.

turbulentSchmidtNumber sets \(Sc_t\) for all materials (default 0.95). Diffusivity is \(D_t=\mu_t/(\rho Sc_t)\), using mixture density and eddy viscosity. interfaceTurbDamping affects only momentum viscosity.

Species diffuse between neighboring cells containing the same material. Physical boundaries have zero species diffusion flux, and open boundaries carry species by convection.

Surface Tension

The cmim_avof module computes surface-tension forces from interface curvature and a coefficient for each material pair. For two materials, specify the coefficient in sigma_ij using names from materialModels:

momentumEquationOptions: <pressureReconstruction=CD>
  momentumInterpolationOptions: <form=new, conservativePressure>
sigma_ij: <Liquid__Gas=0.072 N/m>

The default cmimCapillaryModel: singlePair models a two-material interface. The first named material defines color one and the contact-angle side. Use new or Denner momentum interpolation with momentumEquationOptions: <pressureReconstruction=CD>. Include conservativePressure with new. These settings keep pressure and capillary forces balanced.

Curvature Selection

The curvature method estimates interface curvature from the material volume fractions for the surface-tension force. Select it with vof_curvature_type.

Curvature methods

vof_curvature_type

Method

direct (default)

Gradient interpolation and face-normal divergence.

faceDivergence

Optional face-based color smoothing, then face-normal divergence.

nodalDivergence

Optional nodal color smoothing, then curvature from nodal normals.

celeste

Smoothed color and least-squares curvature. Requires gradStencil: full, or standard with use_cellStencil: 1.

paraboloid2019

Geometric reconstruction and integrated paraboloid fit. Requires gradStencil: full, or standard with use_cellStencil: 1.

analytical

Prescribed constant kappaAnalytical (default zero), in inverse metres.

rlsg

Curvature from an auxiliary level-set grid; requires loadModule: rlsg.

The faceDivergence and nodalDivergence methods accept vof_curvature_smoothing_passes (default 2). Zero disables smoothing. Smoothing changes only the curvature calculation.

The celeste method is another method that CMIM supports for computing curvature. Use gradStencil: standard with use_cellStencil: 1 for periodic flow with momentumInterpolationOptions: <form=new,conservativePressure>. CELESTE uses one smoothing pass for curvature estimation. Smoothing leaves the transported material fractions unchanged. See Wall Contact Angle for wall angles. As a a rule of thumb, place outlets away from regions where accurate capillary forces are needed.

The paraboloid2019 method fits the reconstructed interface and averages neighboring curvatures without changing transported fractions. Each local fit represents one smooth interface. Use this method for single-pair surface tension. Wall contact uses static angles on planar walls in 2-D.

direct, faceDivergence, and nodalDivergence accept normalFloor in curvatureOptions:

vof_curvature_type: nodalDivergence
curvatureOptions: <normalFloor=1e-3>

normalFloor is a dimensionless color change over the local cell spacing. Its default is 1e-5 for direct and 1e-8 for faceDivergence and nodalDivergence. Larger values suppress weak normals and reduce the local capillary force, including at contact boundaries.

Wall Contact Angle

Contact angles set the orientation of an interface where it meets a wall. They can be prescribed globally or for individual walls. vof_contact_angle_model selects none (default), static or dynamic. Each wall can override it with contactAngleModel. none imposes no contact angle.

For a single pair, vof_contact_angle_deg defaults to 90 degrees (range 0-180). To prescribe a fixed angle on a noslip or slip wall, set contactAngleModel=static and specify the angle:

boundary_conditions: <
  wall=noslip(adiabatic, contactAngleModel=static, contactAngles=[Liquid__Gas=30 deg])
>
momentumEquationOptions: <pressureReconstruction=CD>
  momentumInterpolationOptions: <form=new, conservativePressure>
sigma_ij: <Liquid__Gas=0.072 N/m>

Material names come from materialModels. The angle is measured through the first named material, so this example specifies 30 degrees through Liquid. Reversing the pair gives the equivalent condition Gas__Liquid=150 deg.

For a single material pair, contactAngle=30 deg provides a shorter form. Its angle is measured through the first material named in sigma_ij. The global vof_contact_angle_deg uses the same convention.

The wall treatment controls how the prescribed angle enters the curvature calculation. For a single pair with faceDivergence or nodalDivergence, select it with vof_curvature_wall_treatment:

Curvature wall treatments

Value

Treatment

boundary (default)

Adjusts the interface normal at the wall.

cellGradient

Also adjusts the gradients used to calculate curvature in adjacent cells.

For example:

vof_curvature_wall_treatment: cellGradient

The dynamic model adjusts the contact angle with estimated contact-line speed, using the prescribed angle as its equilibrium value. Set vof_contact_angle_model: dynamic to use dynamic contact angles by default on all walls. Individual walls can override this setting with contactAngleModel.

vof_dynamic_contact_angle_coeff controls the adjustment strength (default 9). vof_dynamic_contact_angle_min_deg and vof_dynamic_contact_angle_max_deg bound the resulting angle (defaults 5 and 175 degrees).

RLSG Curvature

RLSG (refined level-set grid) computes interface curvature on a separate, uniform Cartesian grid. It reconstructs the interface from CMIM’s material volume fractions, calculates curvature on this auxiliary grid, and transfers the result back to the flow cells for the surface-tension force. The auxiliary grid spacing controls the resolution of this calculation.

Load rlsg and select it as the curvature method. This example uses automatic grid spacing:

loadModule: rlsg
{
gradStencil: standard
use_cellStencil: 1

vof_curvature_type: rlsg
rlsg_grid_mode: automatic
}

gradStencil: full may replace standard with use_cellStencil: 1.

With rlsg_grid_mode: automatic, spacing is based on the smallest face-normal cell width near the initial interface. Each increase in rlsg_grid_splits halves the auxiliary spacing; the default value of 1 gives half the selected flow-cell width. In a pure-material initial state, the width is taken over the whole mesh. rlsg_grid_max_splits sets the largest permitted value of rlsg_grid_splits (default 3; range 0-20).

To prescribe spacing directly, use rlsg_grid_mode: manual (the default) and set rlsg_grid_spacing in metres. Spacing stays fixed during a run. Automatic mode recalculates it from the restarted state; manual mode retains the supplied spacing.

The interface reconstruction supplies the starting geometry for the auxiliary distance field. Select it with rlsg_seed_type:

RLSG interface reconstruction

Value

Starting geometry

plic (default)

Planar interface segments or polygons in 2-D or 3-D.

volumeFit

Curved interface fits in 2-D.

RLSG iterates to construct the distance field used for curvature. These controls set the reconstruction step size, convergence tolerance, and iteration limit:

RLSG reconstruction controls

Input

Default

Meaning

rlsg_reconstruction_cfl

0.45

Pseudo-time CFL for distance reconstruction, in (0,0.9]

rlsg_reconstruction_tolerance

1e-9

Tolerance for the maximum dimensionless distance-equation residual

rlsg_reconstruction_max_iterations

4000

Maximum reconstruction iterations

Wall contact uses static angles on planar walls. For 3-D wall contact, select rlsg_seed_type: plic. Keep contact lines away from wall corners and prescribe an angle strictly between 0 and 180 degrees at each wall the interface meets.

For periodic or outlet crossings, select rlsg_seed_type: plic. Use one translational pair per periodic direction. Outlet crossings use one planar fixedPressureOutlet or two parallel outlets with opposite outward normals. Place outlets beyond the region where accurate capillary forces are needed, and keep the interface away from prescribed inlets and backflow reservoirs.

Three-Material Surface Tension

Three-material surface tension models the interfaces between three immiscible materials, such as two liquids and a gas. Specify a coefficient for each pair: liquid-liquid and each liquid-gas interface. Select cmimCapillaryModel: threePhaseCSF and use names from materialModels:

cmimCapillaryModel: threePhaseCSF
sigma_ij: <LiquidA__LiquidB=0.100 N/m, LiquidA__Gas=0.072 N/m, LiquidB__Gas=0.072 N/m>
vof_curvature_type: nodalDivergence

Reversing the material names in a sigma_ij pair leaves its coefficient unchanged. For equilibrium where three interfaces meet, each coefficient must be smaller than the sum of the other two.

Use the default cmimSurfaceTensionTreatment: standard and fixed 2-D or 3-D meshes in Cartesian coordinates. Place outlets beyond the region where accurate capillary forces are needed. To add Volumetric Cavitation, define volumetricTransfer channels.

At a wall, the three contact angles are linked by the surface tensions and wall energies. Supply two pair angles in contactAngles; CMIM calculates the third. For static wetting on a locally planar noslip or slip wall:

boundary_conditions: <
  wall=noslip(adiabatic, contactAngleModel=static, contactAngles=[LiquidA__Gas=90 deg, LiquidB__Gas=90 deg])
>

Angles are measured through the first named material. Use the default vof_curvature_wall_treatment: boundary. Selecting static wetting without contactAngles gives 90 degrees for all pairs.

When one material’s color gradient becomes small relative to the others, the wall treatment blends toward the remaining pair’s contact-angle condition. vof_wetting_trace_tolerance sets the smallest-to-largest gradient magnitude ratio below which blending occurs (default 1e-6). Zero disables blending.

Startup output CMIM_WETTING_ANGLES lists all three wall angles. Add cmimCapillary to diagnostics for CMIM_WETTING counts of active wall faces, trace blends and unresolved interface directions.

Phase Change

Phase-change models describe evaporation and condensation between liquid and vapor species. Surface models calculate transfer from the heat balance at a resolved interface. Volumetric models calculate pressure-driven transfer within cells. Each named entry in phaseChangeModels defines a liquid/vapor pair and its transfer model, using surfaceTransfer or volumetricTransfer.

Use material and species names from materialModels and map each liquid species to its vapor species. The liquid and vapor EOS enthalpies supply the energy change. Set their enthalpy references so vapor enthalpy minus liquid enthalpy gives the latent heat of vaporization. See Phase-Change Output for transfer rates and heat balances.

Thermal Surface Phase Change

Thermal surface models use heat supplied from the liquid and gas to calculate transfer across their interface. Both models use a pure liquid material:

Surface-transfer models

Model

Interface treatment

kunkelmann

Sets the interface temperature to the saturation temperature at local pressure. Heat supplied to the interface determines transfer between pure liquid and pure vapor.

schrage

Combines kinetic transfer with the heat balance to solve for interface temperature. The gas may be pure vapor or a mixture.

For liquid hydrogen and its vapor, a Kunkelmann channel is:

phaseChangeModels: <
  hydrogen=surfaceTransfer(
    liquidMaterial=Liquid, vaporMaterial=Gas,
    constituents=[map(liquidSpecies=_LH2, vaporSpecies=H2)],
    model=kunkelmann(
      saturation=antoine(A=3.54314, B=99.395, C=7.726,
        pressureUnit=bar, temperatureUnit=K, Tmin=20.01 K, Tmax=32.27 K),
      redistribution=hardtWondra(interfaceValue=0.5, pureMaterialCutoff=1e-3, smoothingLength=0.05 m)
    )
  )
>

The saturation entry supplies the equilibrium pressure-temperature relation. redistribution spreads transfer into nearby liquid and gas cells. Both entries are required for either surface model.

A meridional mesh with gridCoordinates: axisymmetric (x axial, y radial) can be used. Keep liquid/gas interfaces spatially separated.

Schrage Model

The Schrage model uses an accommodation coefficient to set the kinetic transfer rate. Replace model=kunkelmann(...) in the channel above with:

model=schrage(
  accommodationCoefficient=0.001,
  saturation=antoine(A=3.54314, B=99.395, C=7.726,
    pressureUnit=bar, temperatureUnit=K, Tmin=20.01 K, Tmax=32.27 K),
  redistribution=hardtWondra(interfaceValue=0.5, pureMaterialCutoff=1e-3, smoothingLength=0.05 m)
)

Supply accommodationCoefficient in (0,1]. vaporTemperature=sampled (default) uses the sampled gas temperature in the incident-vapor term while vaporTemperature=interface uses the solved interface temperature. For a gas mixture, Schrage uses the sampled vapor mole fraction multiplied by total pressure to estimate vapor partial pressure.

For several liquids exchanging mass with one gas mixture, give each liquid a named surfaceTransfer channel using schrage and the same vaporMaterial. Give each channel its own liquid/vapor species pair, saturation law, and controls.

Thermal Sampling

Both surface models sample temperatures from cells containing nearly pure liquid or gas material on each side of the interface. For Schrage, the gas material may contain several species. Set thermalBandLayers inside the model to control the search depth (default 8; range 1-64 cell layers). Choose a band that reaches pure-material cells on both sides.

Source Redistribution

Redistribution spreads the interface transfer source into nearby pure-material cells while preserving its total rate. Each channel is smoothed independently. Set the source distribution in redistribution=hardtWondra(...):

Required redistribution settings

Option

Meaning

interfaceValue

Liquid fraction within the selected liquid/gas pair at the interface; set 0.5.

pureMaterialCutoff

Tolerance for residual volume fractions of other materials when identifying pure-material cells, in (0,0.5).

smoothingLength

Length over which the source is spread; supply length units.

Solver Controls

Schrage solves for interface temperature. These optional settings go inside schrage(...):

Schrage interface-solve controls

Option

Default

Meaning

temperatureTolerance

1e-9 K

Absolute temperature-bracket tolerance

heatBalanceRelativeTolerance

1e-10

Heat-balance tolerance relative to the sum of absolute liquid, gas, and latent heat fluxes

heatBalanceAbsoluteTolerance

1e-8 W/m/m

Absolute heat-flux residual tolerance, W/m²

maxIterations

128

Maximum interface-temperature iterations

The solve meets both the temperature tolerance and the heat-balance limit: absolute tolerance plus relative tolerance times the heat-flux scale.

For either surface model, source spreading uses a separate linear solve. Set these options inside redistribution=hardtWondra(...):

Redistribution solver controls

Option

Default

Meaning

linearSolverTolerance

1e-12

Relative residual tolerance

maxIterations

500

Maximum linear iterations for each evaporation or condensation solve

All controls apply independently to each channel.

Volumetric Cavitation

Volumetric cavitation models compute evaporation and condensation from the difference between cell pressure and saturation pressure. They use total mechanical pressure, including when the vapor is part of a gas mixture. Select zwart, merkle, or schnerrSauer inside volumetricTransfer. For example:

phaseChangeModels: <
  hydrogen=volumetricTransfer(
    liquidMaterial=Liquid, vaporMaterial=Gas,
    constituents=[map(liquidSpecies=_LH2, vaporSpecies=H2)],
    model=zwart(
      saturation=antoine(A=3.54314, B=99.395, C=7.726,
        pressureUnit=bar, temperatureUnit=K, Tmin=20.01 K, Tmax=32.27 K),
      bubbleRadius=1e-6 m, nucleationVolumeFraction=5e-4,
      vaporizationCoefficient=50, condensationCoefficient=0.01
    )
  )
>

Each model takes saturation=antoine(...) and the dimensionless vaporizationCoefficient and condensationCoefficient to scale its two transfer rates. Supply the additional parameters for the selected model:

Cavitation models

Model

Description

Required parameters

zwart

Uses a prescribed bubble radius and nuclei fraction.

bubbleRadius (m), nucleationVolumeFraction (dimensionless)

merkle

Scales pressure-driven rates by reference flow quantities.

referenceLength (m), referenceVelocity (m/s), referenceDensity (kg/m/m/m)

schnerrSauer

Uses a bubble population whose bubble radius varies with vapor fraction.

bubbleNumberDensity (bubbles per m³ of liquid, 1/m/m/m), nucleationRadius (m)

Zwart and Merkle can start evaporation from pure liquid and condensation from pure vapor. Schnerr–Sauer nucleates vapor in pure liquid and has zero rate in pure vapor. A channel is active where either mapped species is present at the start of the timestep.

Additional channels may share materials and use different models or coefficients. Give each channel a distinct liquid/vapor species pair. For conversion within one material, use the same name for liquidMaterial and vaporMaterial. Set that material’s diffusion_model=none and, in turbulent flow, turbulent_diffusion_model=none.

Saturation Laws

The saturation law relates temperature to equilibrium vapor pressure. Specify it inside each phase-change model using saturation.

Antoine Law

Both surface and volumetric models accept saturation=antoine(...). The coefficients use log10(p_sat / pressureUnit) = A - B / (T + C), with T in kelvin. Supply A, B, C, pressureUnit, temperatureUnit=K, Tmin, and Tmax, as in the examples above. Pressure units are Pa, kPa, MPa, or bar. Tmin and Tmax define the fit’s temperature range.

Temperature-Range Handling

For volumetric cavitation, outOfRange inside antoine(...) selects how saturation pressure is evaluated outside [Tmin,Tmax]:

Antoine range handling for cavitation

Mode

Behavior

error (default)

Stop when an active channel leaves the fit range.

clamp

Hold saturation pressure at the nearest temperature bound.

clausiusClapeyron

Continue from the nearest bound with a Clausius-Clapeyron curve matching the Antoine pressure and slope.

To select the continuation, add outOfRange=clausiusClapeyron inside antoine(...). All modes retain the Antoine fit within its range. Clamping can sustain evaporation as temperature falls below Tmin. Check extrapolated saturation pressures against fluid data.

These settings control the saturation correlation. TclipMin, TclipMax, and material EOS bounds still set the temperatures available to the solver. See Phase-Change Output for fields marking clamped or extrapolated saturation pressure.

Clausius-Clapeyron Law

For surface transfer, saturation=clausiusClapeyron(...) defines a saturation curve from a reference pressure, temperature, and latent heat:

saturation=clausiusClapeyron(
  referencePressure=103632 Pa, referenceTemperature=20.35 K,
  referenceLatentHeat=445800 J/kg, Tmin=20.01 K, Tmax=32.27 K)

referenceLatentHeat sets the curve’s slope. Material EOS enthalpies supply the latent heat used in the interface heat balance.

Chemistry

Each material uses the reaction mechanism in its .mdl file. These reactions consume and produce species within that material and are active automatically. Species enthalpies account for reaction heat. Use consistent enthalpy references across materials.

Thermodynamic reverse rates use ideal-gas equilibrium, including with a real-fluid EOS.

Integration Controls

Reactions can be advanced within the flow iterations or integrated separately in each cell. Select the treatment with speciesProduction:

  • instantaneousImplicit (default) evaluates reaction sources during the flow iterations and treats them implicitly.

  • CVODE integrates chemistry within each cell using adaptive internal timesteps. Its coupling to transport is first order.

Use timeIntegrator: BDF with the default operatorSplitting: source. To select CVODE:

speciesProduction: CVODE

The CVODE tolerances control chemistry integration accuracy. Tf sets the reaction cutoff temperature for either method.

Chemistry controls

Input

Default

Meaning

cvodeRelativeTolerance

1e-3

Relative integration tolerance

cvodeAbsoluteTolerance

1e-20

Absolute species-density tolerance, kg/m³ of cell volume

Tf

0

Temperature below which reaction rates are zero, K

See Chemistry Diagnostics for species rates and integration diagnostics.

Reactions Between Materials

materialReactions defines irreversible, first-order reactions that convert a species into products in other materials. Select speciesProduction: CVODE to integrate these reactions.

Consider synthetic species _A and _B with equal molecular masses. This example converts Liquid::_A into Gas::_B with a constant rate coefficient of 10 s⁻¹:

speciesProduction: CVODE
materialReactions: <
  conversion=irreversible(
    reactants=[species(material=Liquid, name=_A, coefficient=1)],
    products=[species(material=Gas, name=_B, coefficient=1)],
    rate=Arrhenius(C=10, eta=0, theta=0))
>

Specify one reactant with coefficient=1 and molar product coefficients. Products enter at least one other material and may also remain in the reactant’s material.

The rate coefficient is k=C*T^eta*exp(-theta/T). Supply all three coefficients as numeric SI values: C in s⁻¹ K⁻ᵉᵗᵃ, dimensionless eta, and theta in K.

Use Phase Change for evaporation and condensation.

VOF-to-Particle Transfer

VOF-to-particle transfer removes selected detached liquid regions from the VOF field and represents them as Lagrangian parcels. The particle model then advances their motion and exchange with the surrounding fluid. Each entry in vofToLagrangian defines a transfer using these roles:

Transfer roles

Setting

Purpose

donorMaterial

VOF material converted into particles

particleBin

Bin in the particle model used for the converted material

carrierMaterial

Fluid sampled for particle forces and heat transfer

receiverMaterial, receiverSpecies

Material and species receiving mass from particle evaporation

Use a single-species donor, a separate particle bin for each donor, and a common carrier for all transfers. For conversion, use a fixed, nonperiodic 3-D mesh with gravity off and timeIntegrator: BDF.

In this example, detached LH2 regions become parcels in lh2Drop. The parcels sample GH2, and evaporated hydrogen returns to GH2::H2. Define these materials in materialModels, with species H2 in GH2. Provide hydrogenDrops.pmdl with bin lh2Drop and density and caloric properties matching LH2.

loadModule: lagrangianParticle
loadModule: cmim_avof
loadModule: cmim_avof_lagrangianParticle
{
particle_model: hydrogenDrops
vofToLagrangianConversion: on
vofToLagrangian: <
  lh2Drop=transfer(
    donorMaterial=LH2, particleBin=lh2Drop,
    carrierMaterial=GH2, receiverMaterial=GH2, receiverSpecies=H2,
    coreVof=0.5, supportVof=1.0e-3,
    maxEquivalentDiameter=6.0e-5, maxAspectRatio=1.5,
    minRetainedInterfaceDistance=1.0e-5, persistenceSteps=2)
>
}

Use vofToLagrangianConversion: off (default) to inspect candidates while keeping the material in the VOF field. Set it to on to convert eligible regions into parcels. Identification without particle coupling is available in 2-D or 3-D.

Region Selection

Connected regions are selected by their size, shape, separation, and persistence. Set these controls inside transfer(...). Enter lengths as numbers in metres.

Region-selection controls

Option

Default

Meaning

supportVof

Required

Donor volume-fraction threshold defining face-connected regions

coreVof

Required

Donor volume-fraction threshold that at least one cell in each region must reach

maxEquivalentDiameter

No limit

Maximum equivalent diameter, m

maxAspectRatio

No limit

Maximum region aspect ratio

minRetainedInterfaceDistance

0 (disabled)

Minimum conservative clearance from retained regions of the same donor material, m

persistenceSteps

1

Consecutive accepted timesteps for which a region must remain eligible

boundaryContact

reject

reject keeps boundary-touching regions in VOF; allow includes them as candidates

For clearance, retained regions are those kept by size, shape, boundary-contact, composition, or state criteria. Use this criterion on nonperiodic meshes in Cartesian coordinates. Its conservative estimate can defer conversion even when regions do not touch.

Carrier Replacement

Converted regions can be filled with carrier material for particle sampling. Use vofToLagrangianBackground: none (default) when carrier material is present in the cells sampled by particles. Select carrier to fill the converted volume at the cell pressure, temperature, and velocity. This adds carrier mass, momentum, and energy to the domain. Use a single-species carrier with constant transport coefficients when converting pure-liquid cells.

Timing and Output

A selected region becomes one parcel at the end of the next converged fluid step. The parcel starts moving on the following step. Particle feedback is applied one fluid step after the particle advances. Include pending feedback and carrier replacement in inventory balances. Retain the MPI rank count when restarting.

See VOF-to-Particle Output for cell fields showing eligibility and completed conversions.

Adaptive Mesh Refinement

CMIM measures changes in material volume fractions to locate interfaces for mesh refinement. Its CMIMVOFerror sensor uses the AMR module’s statistical refinement and coarsening controls.

Load amr and configure timing as described in Basic Setup. Add these settings to that configuration to select interfaces involving Liquid:

timeIntegrator: BDF
adaptInterpolationOrder: 1
adaptRequestSources: scaledError
adaptSensor: CMIMVOFerror
cmimAdaptMaterialName: Liquid

CMIM runtime AMR uses first-order solution transfer. Choose one selector using names from materialModels:

CMIM interface selectors

Input example

Selects

cmimAdaptMaterialName: Liquid

One material’s interfaces, using its volume-fraction jump

cmimAdaptMaterialNames: LiquidA, LiquidB

Interfaces involving either material, using the larger jump

cmimAdaptInterfacePair: <first=Liquid, second=Gas>

Faces where both fractions change, using the smaller jump

These optional filters control which jumps contribute to CMIMVOFerror:

CMIM sensor filters

Input

Default

Effect

cmimAdaptVOFJumpFloor

0

Ignores volume-fraction jumps at or below this dimensionless threshold

cmimAdaptInterfaceEdgeLength

0 (disabled)

Suppresses this sensor at or below the specified cell size; enter a number in metres

The size filter uses adaptCellSizeMetric from the AMR mesh controls. Other sensors, refinement regions, and mesh balancing can still refine these cells.

Add cmimInterfaceJump to plot_output to inspect the selected volume-fraction jumps before these filters.

Detailed Diagnostics

CMIM diagnostics report convergence, conservation balances, and the effects of optional physics. Use diagnostics to select console reports and text histories, and plot_output to select spatial fields.

Text histories are written under output/. Restarts retain earlier rows and replace rows from the resumed state onward.

Convergence and Conservation

Add cmimConvergence to diagnostics for normalized convergence checks at each nonlinear iteration. This example also selects transport histories:

diagnostics: <cmimConvergence, cmimTransport>

In the console’s RCMIM: lines, ratios at or below one pass their checks. The two flags use the values given below.

RCMIM fields

Field

Meaning

zEq

Largest species equation residual relative to its convergence limit

volume, continuity

Volume-balance and continuity errors relative to their tolerances

zUpdate, alphaUpdate

Species and volume-fraction changes relative to their limits

appearance

Newly appearing material update relative to its limit

alphaBound, alphaSum

Volume-fraction bound and sum-to-one errors relative to their limits

alphaInvalid

Zero when volume fractions are valid

cmim_ok

One when all CMIM convergence checks pass

Select conservation histories through diagnostics. Species diffusion also writes its own summary:

Conservation histories

Selection

File

Contents

Written at

cmimInvariants

cmimInvariants.dat

Material presence, volume-fraction bounds, and composition changes

Each nonlinear iteration

cmimPressure

cmimPressure.dat

Pressure-equation residuals, volume balance, and continuity errors

Each nonlinear iteration

cmimTransport

cmimTransportResidual.dat

Material and species transport residuals

Each nonlinear iteration

cmimTransport

cmimBoundaryFlux.dat

Boundary species mass, convected enthalpy, and wall heat rates

End of each timestep

Automatic with species diffusion

cmimDiffusion.dat

Maximum density-weighted diffusivity, conductance, flux, and flux-sum error

print_freq

In cmimBoundaryFlux.dat, species mass rates are in kg/s and energy rates are in W. Positive mass flux is outward. The recorded time marks the start of the timestep whose rates are reported. In cmimDiffusion.dat, density-weighted diffusivity is in kg/(m s); conductance and fluxes are in kg/s.

diagnostics: <cmimAVOF> selects cmimConvergence, cmimInvariants, cmimPressure, cmimTransport, and cmimCapillary.

Surface-Tension Output

Surface-tension output shows the interface curvature and force on the flow mesh. Add these fields to plot_output:

Surface-tension plot fields

Selector

Quantity

Units

kappa

Curvature for single-pair surface tension

1/m

capillaryKappa0, capillaryKappa1, capillaryKappa2

Three-material curvatures, in the material order printed at startup

1/m

capillaryForce

Total surface-tension force per unit volume

N/m³

Add cmimCapillary to diagnostics to write capillaryDiagnostics.dat at print_freq. It reports maximum absolute curvature and an estimated capillary timestep ratio based on local density and cell size. Use the ratio to compare timestep choices.

RLSG Output

RLSG curvature also provides fields on its auxiliary mesh. Select them through plot_output:

RLSG output selectors

Selector

Quantity

rlsgLevelSet

Signed distance, in metres; zero defines the interface

rlsgKappa

Auxiliary curvature, in inverse metres

rlsgSeed

Initial distance seed, in metres

rlsgGrid

Auxiliary mesh only

Each field includes its mesh and a validity field, such as rlsgLevelSetValid. Output follows the normal plot frequency. For a 2-D case named case, extract timestep 10 with:

extract -vtk -bc rlsg case 10 rlsgLevelSet rlsgLevelSetValid \
  rlsgKappa rlsgKappaValid

Open case_vtk.10/rlsg_Surf.vtu. The auxiliary mesh lies at z=0. For a 3-D case, extract the auxiliary volume mesh with:

extract -vtk case_rlsg 10 rlsgLevelSet rlsgLevelSetValid \
  rlsgKappa rlsgKappaValid

Open case_rlsg_vtk.10/Volume.vtu. Threshold the corresponding validity field to one with All Scalars enabled; invalid entries contain zero. Contour rlsgLevelSet at zero to view the interface. See RLSG Grid-Spacing Utility for spacing comparisons.

With rlsg_seed_type: plic, plicFallback marks flow-mesh cells whose normal fit used a fallback plane: one for fallback and zero otherwise. Nodal plots average these flags.

Phase-Change Output

Phase-change diagnostics report mass transfer and interface heat balances. Add cmimPhaseChange to diagnostics to write these histories:

Phase-change histories

File

Contents

cmimPhaseChange.dat

Transfer rates and material/species source budgets for all models

cmimPhaseChangeSurface.dat

Interface area, heat rates, and mass balances for a single surface channel

cmimPhaseChangeChannels.dat

Interface geometry, state, and balances for multiple surface channels

These files contain rows for each nonlinear iteration. Use the final converged row of each timestep for histories. The multiple-surface-channel file has one row per channel per iteration. Axisymmetric areas and rates refer to the full revolution.

Positive signed rates denote evaporation; negative rates denote condensation. Gross evaporation and condensation rates are nonnegative and include all channels, even when their signed rates cancel. With multiple channels, cmimPhaseChange.dat includes these columns for each configured name:

Per-channel transfer rates

Column

Meaning

Units

channelSignedRate[name]

Net transfer rate

kg/s

channelVaporizationRate[name]

Evaporation rate

kg/s

channelCondensationRate[name]

Condensation rate

kg/s

Transfer within one material changes its mapped species sources while its net material mass source remains zero.

For a single surface channel, cmimPhaseChangeSurface.dat contains:

Surface-transfer diagnostics

Columns

Meaning

Units

contourArea

Interface area

m²

donorHeatRate, receiverHeatRate, stefanHeatRate

Heat supplied to the interface by each side and their sum

W

sharpTransferRate, smoothedTransferRate, surfaceTransferRate

Net transfer before smoothing, after normalization, and in the source

kg/s

evaporationRate, condensationRate

Gross evaporation and condensation rates

kg/s

redistributedDonorRate, redistributedReceiverRate

Integrated material sources; their sum should be zero

kg/s

thermodynamicEnergyResidual

Interface heat/enthalpy balance error

W

For multiple surface channels, cmimPhaseChangeChannels.dat reports cut-cell count, area, area-averaged interface temperature and vapor mole fraction, heat rates, signed and absolute mass rates, and the interface energy-balance residual.

Add these single-channel surface fields to plot_output to inspect the interface and its sources:

Surface phase-change plot fields

Selector

Quantity

Units

phaseChangePairColor

Liquid volume fraction within the selected pair

Dimensionless

phaseChangeContourCells

One in cells cut by the interface, zero elsewhere

Dimensionless

phaseChangeInterfaceBand

One in the thermal interface band, zero elsewhere

Dimensionless

phaseChangeMassFlux

Signed interfacial mass flux

kg/(m² s)

phaseChangeSharpMassSource

Volumetric mass source before redistribution

kg/(m³ s)

For cavitation, cavitationClamped and cavitationExtrapolated mark cells where any active channel uses that saturation treatment: one for active, zero otherwise. Nodal plots use the maximum adjacent-cell flag.

Chemistry Diagnostics

Chemistry output shows where reactions produce or consume species and how much work their integration takes. Select species rates with quoted Material::Species names:

speciesProduction: CVODE
chemistryOutputSpecies: "Gas::H2", "Gas::OH"
plot_output: chemistryMeanProductionRate

chemistryProductionRate gives instantaneous rates with either chemistry method. chemistryMeanProductionRate gives the CVODE chemistry increment divided by the timestep, excluding transport. Both include local and cross-material reactions, in kg/(m³ s) of cell volume; positive means production. Field names include the species, such as chemistryMeanProductionRate_Gas::H2.

To inspect CVODE integration work, add cmimChemistry to diagnostics. It writes cmimChemistry.dat at print_freq, with cell counts, summed integration time, solver counters, and the coordinates of the most costly cells. Summed cell time measures aggregate work across cells. Add chemistryTime and chemistrySteps to plot_output to locate costly regions. More detailed counters are also available:

CVODE plot fields

Field

Quantity per completed chemistry interval

chemistryTime

Cell integration time, seconds

chemistrySteps

Internal CVODE steps

chemistryRhsEvaluations

Right-hand-side evaluations, excluding Jacobian calls

chemistryJacobianRhsEvaluations

Additional right-hand-side evaluations for the numerical Jacobian

chemistryJacobianEvaluations

Jacobian evaluations

chemistryNonlinearIterations

Internal nonlinear iterations

chemistryErrorTestFailures

Failed accuracy tests

chemistryConvergenceFailures

Internal nonlinear convergence failures

chemistryThermodynamicFailures

Rejected pressure/temperature reconstructions during rate evaluation

These fields use adjacent-cell maxima in nodal plots. Counters and mean rates retain the last completed interval and are zero until the first interval after startup or restart. Summary rows start after that interval.

VOF-to-Particle Output

Output from VOF-to-particle transfer identifies eligible material regions and records converted mass. Select these fields with:

plot_output: vof, vof2lptDecision, vof2lptComponentId, vof2lptTransferredMass

Open output/vof2lpt_<case>.pvd directly in ParaView. Fields are cell data, named by transfer, such as vof2lptDecision_lh2Drop. The companion JSON file gives decision labels, units, and thresholds.

VOF-to-particle plot selectors

Selector

Meaning

vof2lptDecision

0: eligible; positive: first blocking condition; -1: outside support

vof2lptComponentId

Current component label; -1 when unavailable. Labels can change as material moves, splits, or merges.

vof2lptTransferredMass

Cumulative donor mass converted to particles, in kg per cell

vof2lptDiameter

Equivalent diameter in metres: a sphere in 3-D, a circle in 2-D

vof2lptAspectRatio

Aspect ratio from mass-weighted cell centers, compared with maxAspectRatio

vof2lptClearance

Conservative lower bound on separation from retained components, in metres; see VOF-to-Particle Transfer

Decisions and component measurements repeat across each component’s support cells. Measurements are NaN when unavailable; clearance is also NaN when disabled or without retained components. Zero clearance can mean overlapping boxes even when the liquid regions do not touch.

vof2lptDecision reports eligibility; vof2lptTransferredMass records completed conversions. Sum the mass over cells for the total since the history began, excluding carrier replacement and particle feedback. Subtract successive saved fields to locate donor cells converted between frames. Match cells by cellId if their ordering differs, and use frames with matching epochCycle and epochTime metadata. Overlay particles to show subsequent motion.

With conversion enabled, requested mass history is saved with restarts. A restart without saved history begins a new history at the restart time.

Output represents accepted time levels, including with iteration output enabled. The standard plot controls govern writing; identification and mass accumulation continue between frames.