Skip to content

Parameters

Lucas Barbier-Goy edited this page Jul 30, 2025 · 1 revision

FV2D Parameters Documentation

This document describes the configurable parameters for physical simulations using fv2d. These parameters have to be set in a .ini file to pass to fv2d at running time.

Warning

This page is experimental and might not reflect the current available settings on all branches.

Mesh Parameters

Section name: [mesh]

Parameter Description Default Value
Nx Number of domain cells in x 32
Ny Number of domain cells in y 32
Nghosts Number of ghost cells 2
xmin Lower boundary of the domain in x 0.0
xmax Upper boundary of the domain in x 1.0
ymin Lower boundary of the domain in y 0.0
ymax Upper boundary of the domain in y 1.0

Numerical Parameters

Section name : [solvers]

Parameter Description Default Value
reconstruction Type of reconstruction PCM
riemann_solver Riemann solver HLLC
CFL CFL number 0.8

Physical Parameters

Warning

Cette section n'est pas à jour et est à refaire

Parameter Description Default Value
gamma0 Adiabatic coefficient 5/3
gravity_mode Gravity mode none
gx Gravity component in x 0.0
gy Gravity component in y 0.0
m1 Polytropic parameter 1 1.0
m2 Polytropic parameter 2 1.0
theta1 Polytropic parameter theta 1 10.0
theta2 Polytropic parameter theta 2 10.0
well_balanced_flux_at_y_bc Well-balanced flux at y boundaries false

Divergence Cleaning

Section name : [solvers]

Parameter Description Default Value
div_cleaning Divergence cleaning method dedner
cr GLMMHD parameter 0.18
GLM_scale IdealGLM scale factor for cleaning speed 1.0

Thermal Conductivity

Parameter Description Default Value
thermal_conductivity_active Enable thermal conductivity false
thermal_conductivity_mode Thermal conductivity mode constant
kappa Thermal conductivity coefficient 0.0
bctc_ymin Lower boundary condition in y none
bctc_ymax Upper boundary condition in y none
bctc_ymin_value Value of the lower boundary condition in y 1.0
bctc_ymax_value Value of the upper boundary condition in y 1.0

Viscosity

Parameter Description Default Value
viscosity_active Enable viscosity false
viscosity_mode Viscosity mode constant
mu Viscosity coefficient 0.0

Heating

Parameter Description Default Value
heating_active Enable heating false
heating_mode Heating mode tri_layer
log_total_heating Log total heating false

Boundary Conditions

Parameter Description Default Value
boundary_x Boundary condition type in x reflecting
boundary_y Boundary condition type in y reflecting

Miscellaneous Parameters

Parameter Description Default Value
seed Seed for random number generation 12345
log_frequency Logging frequency 10
log_energy_contributions Log energy contributions false
log_energy_frequency Energy logging frequency 10

Simulation Parameters

Parameter Description Default Value
tend End time of the simulation 1.0
save_freq Save frequency 0.1
filename_out Output filename run
restart_file Restart file ""
multiple_outputs Enable multiple outputs false
time_stepping Time integration scheme euler
problem Physical problem to solve blast

Tri-Layer Parameters

Parameter Description Default Value
tri_y1 Tri-layer parameter y1 1.0
tri_y2 Tri-layer parameter y2 2.0
tri_pert Tri-layer perturbation 1.0e-3
tri_k1 Tri-layer kappa1 0.07
tri_k2 Tri-layer kappa2 1.5
T0 Tri-layer T0 1.0
rho0 Tri-layer rho0 1.0

Isothermal Triple Layer Parameters

Parameter Description Default Value
iso3_dy0 Isothermal triple layer dy0 1.0
iso3_dy1 Isothermal triple layer dy1 2.0
iso3_dy2 Isothermal triple layer dy2 2.0
iso3_theta1 Isothermal triple layer theta1 2.0
iso3_theta2 Isothermal triple layer theta2 2.0
iso3_pert Isothermal triple layer perturbation 1.0e-3
iso3_k1 Isothermal triple layer k1 0.07
iso3_k2 Isothermal triple layer k2 1.5
iso3_m1 Isothermal triple layer m1 1.0
iso3_m2 Isothermal triple layer m2 1.0
iso3_T0 Isothermal triple layer T0 1.0
iso3_rho0 Isothermal triple layer rho0 1.0
iso3_bx Isothermal triple layer bx 0.0
iso3_by Isothermal triple layer by 0.0