Overview
canoP is a computational fluid dynamic (CFD) code leveraging the p4est library for adaptive mesh refinement (AMR) to simulate multiphase flows. It currently implements:
a monofluid model: for a single phase,
a bifluid5eq model: for two phases with the so-called 5 equations homogeneous equilibrium model (see Padioleau 2021),
a bifluid7eq model: for two phases with the so-called 7 equations Baer-Nunziato model (see Chen 2019).
Generic model
canoP is designed to numerically integrate a set of extensive variables \(\boldsymbol{U}\) (referred as “conservative” from now on) with the following generic model:
with \(\vec{\boldsymbol{F}}(\boldsymbol{U})\) a hyperbolic flux function, \(-\boldsymbol{D}(\boldsymbol{U})\vec{\nabla}\boldsymbol{U}\) a diffusion flux function, and \(\boldsymbol{S}(\boldsymbol{U})\) a source term.
Note
Part of the source term \(\boldsymbol{S}(\boldsymbol{U})\) can be written as a non-conservative hyperbolic flux by using e.g. in 1D: \(\boldsymbol{F}^-(\boldsymbol{U}) = \int_{x_i}^{x} \boldsymbol{S}(\boldsymbol{U})dx\) and \(\boldsymbol{F}^+(\boldsymbol{U}) = \int_{x}^{x_{i+1}} \boldsymbol{S}(\boldsymbol{U})dx\) on each side of an interface between two volumes centered at \(x_i\) and \(x_{i+1}\).
All the numerical schemes are using a finite volume discretization by approximating the volume averaged of the conservative variables inside controle volumes. The schemes are also second order in space and time and use spatial reconstruction (the so-called MUSCL reconstruction) on a set of primitive variables \(\boldsymbol{P}(\boldsymbol{U})\) and a half time step estimator (the so-called Hancock predictor).
Monofluid model
The conservative variables contain a density, a 2D or 3D momentum, and a total energy, with (we use Einstein convention):
with
and an equation of state (EOS) giving the pressure/temperature \((P,T)=f(m,e)\), the thermal conductivity \(\kappa\), and the shear and bulk viscosity \(\mu\) and \(\zeta\).
The EOS for the pressure/temperature is a Noble-Abel Stiffened-Gas EOS parametrized with \((\gamma,P_\infty, b, C_v, q, q^\prime)\) following the convention of Le Métayer & Saurel (2016):
Bifluid5eq model
The conservative variables contain a density, a 2D or 3D momentum, a total energy, a mass fraction, and a volume fraction with
with
and an equation of state for the mixture giving the pressure/temperature \((P,T)=f(m,e)\), the thermal conductivity \(\kappa\), and the shear and bulk viscosity \(\mu\) and \(\zeta\).
The density and internal specific energy of each phase can be computed using the mass and volume fractions:
The EOS for the pressure/temperature of the mixture assumes an isobaric closure \(P_g=P_l\) and the EOS of each phase \((P_i,T_i)=f(m_i,e_i)\) is given by a Noble-Abel Stiffened-Gas EOS (see the monofluid model). The thermal conductivity, shear and bulk viscosity of the mixture are assumed to be an average of each phase weighted by the volume fraction.
Bifluid7eq model
The conservative variables contain two mass fractions, two 2D or 3D momenta, two total energies, and a volume fraction with
with
The density of each phase can be computed using the mass and volume fractions:
and an equation of state for each phase giving the pressure/temperature \((P_i,T_i)=f(\rho_i,e_i)\), (given by a Noble-Abel Stiffened-Gas EOS, see the monofluid model), the thermal conductivity \(\kappa_i\), and the shear and bulk viscosity \(\mu_i\) and \(\zeta_i\). The available closure relations for the interface velocity and pressure are (options 1 to 5):
Instantaneous relaxation source terms towards \(P_g=P_l\) and \(V_g=V_l\) are available (see Chen 2019).