13#ifndef lethe_parameters_h
14#define lethe_parameters_h
21#include <deal.II/base/parameter_handler.h>
22#include <deal.II/base/parsed_function.h>
24#include <deal.II/multigrid/mg_transfer_global_coarsening.h>
59 const bool require_subsection_size =
true);
219 std::numeric_limits<double>::max()};
607 const std::string &material_prefix,
608 unsigned int id)
const;
621 const std::string &material_prefix,
622 const unsigned int id,
801 std::pair<std::pair<unsigned int, unsigned int>,
unsigned int>
803 std::pair<std::pair<unsigned int, unsigned int>,
unsigned int>
805 std::pair<std::pair<unsigned int, unsigned int>,
unsigned int>
827 const unsigned int id,
864 std::map<std::pair<unsigned int, unsigned int>,
unsigned int>
866 std::map<std::pair<unsigned int, unsigned int>,
unsigned int>
868 std::map<std::pair<unsigned int, unsigned int>,
unsigned int>
952 const unsigned int max_number_of_constraints);
981 const unsigned int constraint_id);
1232 Tensor<1, dim> axis;
1233 axis[dim - 1] = -1.;
1245 Tensor<1, dim> axis;
1328 std::multimap<Variable, std::pair<unsigned int, Isocontour>>
1372 std::vector<unsigned int>
ids;
1422 const unsigned int &
id,
1423 const Point<dim> &point)
1430 auto &ids = probes_of_variable.
ids;
1432 AssertThrow(std::find(ids.begin(), ids.end(),
id) == ids.end(),
1434 "For the probing point " + Utilities::int_to_string(
id) +
1435 ", you are specifying multiple times the variable '" +
1437 "'. Please only specify it once."));
1440 ids.emplace_back(
id);
1441 probes_of_variable.
points.emplace_back(point);
1900 MGTransferGlobalCoarseningTools::PolynomialCoarseningSequenceType
1902 PolynomialCoarseningSequenceType::decrease_by_one;
2000 template <
int dim,
int spacedim = dim>
2057 Tensor<1, spacedim> axis;
2174 template <
int dim,
int spacedim = dim>
2193 std::make_shared<std::vector<Mesh<dim, spacedim>>>(
2442 std::make_shared<Functions::ParsedFunction<dim>>(dim);
2657 const std::vector<Verbosity> &
2675 const std::vector<FluidIndicator> &
Class used to rescale physical properties for cases where the main dimensions of the problems (Length...
void declare_parameters(ParameterHandler &prm)
Declare the parameters.
unsigned int nb_particles
bool enable_extra_sharp_interface_vtu_output_field
int contact_search_frequency
void parse_parameters(ParameterHandler &prm)
Parse the parameters.
double wall_poisson_ratio
bool time_extrapolation_of_refinement_zone
void declare_default_entry(ParameterHandler &prm, unsigned int index)
Declare the default parameters.
unsigned int coupling_frequency
std::string ib_force_output_file
std::vector< IBParticle< dim > > particles
bool enable_lubrication_force
double lubrication_range_min
bool explicit_contact_impulsion_calculation
double refinement_inside_distance_factor
std::shared_ptr< Functions::ParsedFunction< dim > > f_gravity
unsigned int initial_refinement
bool load_particles_from_file
unsigned int stencil_degree
bool explicit_position_integration_calculation
bool assemble_navier_stokes_inside
std::string ib_particles_pvd_file
double coarsening_distance_factor
double wall_restitution_coefficient
std::string particles_file
bool approximate_radius_for_contact
double refinement_outside_distance_factor
bool enable_extrapolation
double wall_youngs_modulus
double contact_search_radius_factor
double wall_rolling_friction_coefficient
double wall_friction_coefficient
double lubrication_range_max
double particle_nonlinear_tolerance
Laser parameters - Defines the parameters for the laser heat source.
bool enable_angle_of_incidence_dependence
unsigned int perpendicular_plane_coordinate_one
@ gaussian_heat_flux_cls_interface
@ uniform_heat_flux_cls_interface
enum Parameters::Laser::LaserType laser_type
unsigned int beam_orientation_coordinate
void parse_parameters(ParameterHandler &prm)
Parse the parameters.
std::shared_ptr< Functions::ParsedFunction< dim > > laser_scan_path
Tensor< 1, dim > rotation_axis
Tensor< 2, dim > rotation_matrix
unsigned int perpendicular_plane_coordinate_two
double concentration_factor
Tensor< 1, dim > beam_axis
Laser_FreeSurfaceRadiation radiation
void declare_parameters(ParameterHandler &prm)
Declare the parameters.
double laser_absorptivity
MaterialInteractions()=default
enum Parameters::MaterialInteractions::MaterialInteractionsType material_interaction_type
@ bruggeman
Bruggeman effective medium model.
std::pair< std::pair< unsigned int, unsigned int >, unsigned int > fluid_fluid_interaction_with_material_interaction_id
MobilityCahnHilliardModel
EffectiveMediumModelType magnetic_permeability_effective_medium_model
void parse_parameters(ParameterHandler &prm, const unsigned int id, const Parameters::Dimensionality &dimensions)
Parse the parameters.
MobilityCahnHilliardParameters mobility_cahn_hilliard_parameters
enum Parameters::MaterialInteractions::MobilityCahnHilliardModel mobility_cahn_hilliard_model
void declare_parameters(ParameterHandler &prm, unsigned int id) const
Declare the parameters.
SurfaceTensionParameters surface_tension_parameters
std::pair< std::pair< unsigned int, unsigned int >, unsigned int > fluid_solid_interaction_with_material_interaction_id
EffectiveMediumModelType electric_permittivity_effective_medium_model
std::pair< std::pair< unsigned int, unsigned int >, unsigned int > fluid_dispersed_phase_interaction_with_material_interaction_id
enum Parameters::MaterialInteractions::SurfaceTensionModel surface_tension_model
double tracer_reaction_constant
enum Parameters::Material::MagneticPermeabilityModel magnetic_permeability_model
double tracer_diffusivity
enum Parameters::Material::DensityModel density_model
double magnetic_permeability_real
Magnetic_permeability.
double tracer_reaction_threshold
IsothermalIdealGasDensityParameters isothermal_ideal_gas_density_parameters
enum Parameters::Material::RheologicalModel rheological_model
ImmersedSolidGaussianParameters immersed_solid_gaussian_parameters
enum Parameters::Material::ThermalExpansionModel thermal_expansion_model
void parse_parameters(ParameterHandler &prm, const std::string &material_prefix, const unsigned int id, const Dimensionality &dimensions)
Parse the parameters for a material.
void declare_parameters(ParameterHandler &prm, const std::string &material_prefix, unsigned int id) const
Declare the parameters for a material.
ElectricPermittivityModel
@ immersed_boundary_gaussian
double electric_permittivity_real
Electric_permittivity.
enum Parameters::Material::TracerDiffusivityModel tracer_diffusivity_model
ImmersedSolidTanhParameters immersed_solid_tanh_parameters
enum Parameters::Material::ElectricConductivityModel electric_conductivity_model
std::vector< double > electric_permittivity_imag_polynomial_coefficients
double electric_conductivity
Electric_conductivity.
ElectricConductivityModel
enum Parameters::Material::ThermalConductivityModel thermal_conductivity_model
double thermal_conductivity
enum Parameters::Material::SpecificHeatModel specific_heat_model
std::vector< double > magnetic_permeability_real_polynomial_coefficients
PhaseChange phase_change_parameters
std::vector< double > electric_conductivity_polynomial_coefficients
MagneticPermeabilityModel
double kinematic_viscosity
double electric_permittivity_imag
double magnetic_permeability_imag
NonNewtonian non_newtonian_parameters
enum Parameters::Material::ElectricPermittivityModel electric_permittivity_model
std::vector< double > magnetic_permeability_imag_polynomial_coefficients
std::vector< double > electric_permittivity_real_polynomial_coefficients
double tracer_reaction_order
enum Parameters::Material::TracerReactionPrefactorModel tracer_reaction_prefactor_model
TracerReactionPrefactorModel
Mesh - Parameters that control mesh reading and mesh generation.
void parse_parameters(ParameterHandler &prm)
Parse the parameters.
static void declare_parameters(ParameterHandler &prm)
Declare the parameters.
unsigned int initial_refinement_at_boundaries
bool simplex
Allow the use of a simplex mesh.
std::string file_name
File name of the mesh.
Tensor< 1, spacedim > translation
double target_size
Target size when automatically refining initial mesh.
Tensor< 1, spacedim > rotation_axis
bool refine_until_target_size
Enable fixing initial refinement from a target size.
std::vector< int > boundaries_to_refine
List of boundary ids to refine.
bool check_for_diamond_cells
Enable checking the input grid for diamond-shaped cells.
unsigned int initial_refinement
Initial refinement level of primitive mesh.
std::string grid_arguments
Arguments of the GridTools.
bool expand_particle_wall_contact_search
std::string grid_type
Name of the grid in GridTools.
double scale
Rescale the grid by the scale factor.
std::map< std::pair< unsigned int, unsigned int >, unsigned int > fluid_dispersed_phase_interactions_with_material_interaction_ids
void parse_parameters(ParameterHandler &prm, const Dimensionality &dimensions=Dimensionality())
Parse the parameters.
double reference_temperature
static constexpr unsigned int max_material_interactions
static constexpr unsigned int max_solids
void declare_parameters(ParameterHandler &prm)
Declare the parameters.
std::vector< Material > unresolved_dispersed_phases
PhysicalProperties()=default
std::map< std::pair< unsigned int, unsigned int >, unsigned int > fluid_solid_interactions_with_material_interaction_ids
static constexpr unsigned int max_unresolved_dispersed_phases
unsigned int number_of_unresolved_dispersed_phases
unsigned int number_of_solids
unsigned int number_of_fluids
std::vector< Material > fluids
std::vector< Material > solids
unsigned int number_of_material_interactions
std::map< std::pair< unsigned int, unsigned int >, unsigned int > fluid_fluid_interactions_with_material_interaction_ids
std::vector< MaterialInteractions > material_interactions
static constexpr unsigned int max_fluids
Postprocessing - Defines the parameters for the post-processing. In Lethe, post-processing implies th...
unsigned int inlet_boundary_id
The inlet boundary ID for pressure drop calculation.
bool calculate_pressure_drop
Enable pressure drop post-processing.
bool calculate_geometric_melt_volume
Enable calculation of geometric melt volume in phase change problems.
unsigned int outlet_boundary_id
The outlet boundary ID for pressure drop calculation.
double initial_time_for_average_temp_and_hf
std::string barycenter_output_name
Prefix for the CLS and Cahn-Hilliard barycenter output.
std::string phase_energy_output_name
Prefix for the energy output in Cahn-Hilliard simulations.
bool output_q_criterion
Enable output of Q-criterion field.
std::string phase_output_name
Prefix for the phase output.
std::string kinetic_energy_output_name
Prefix for kinetic energy output.
std::string mass_conservation_output_name
Prefix for the CLS mass conservation output.
bool output_velocity_gradient
Enable output of velocity gradient field.
bool calculate_phase_volumes
Verbosity verbosity
Verbosity level of the post-processed quantities.
bool calculate_pressure_power
Enable pressure power post-processing.
bool calculate_mass_conservation
Enable mass conservation calculation for both fluids in CLS simulations.
std::string algebraic_melt_volume_output_name
Prefix for the algebraic melt volume output.
std::string pressure_power_output_name
Prefix for the pressure power output.
bool calculate_phase_statistics
Enable phase statistics.
bool calculate_kinetic_energy
Enable total kinetic energy post-processing.
unsigned int calculation_frequency
Frequency of the calculation of post-processed quantities.
bool calculate_flow_rate
Enable flow rate post-processing.
bool calculate_tracer_statistics
Enable tracer statistics.
Parameters::FluidIndicator postprocessed_fluid
Fluid domain, used when post-processing a multiphase simulation.
bool calculate_enstrophy
Enable total enstrophy post-processing.
std::string apparent_viscosity_output_name
Prefix for the apparent viscosity output.
void declare_parameters(ParameterHandler &prm)
Declare the parameters.
void parse_parameters(ParameterHandler &prm)
Parse the parameters.
std::string geometric_melt_volume_output_name
Prefix for the geometric melt volume output.
Parameters::FluidIndicator monitored_fluid_with_phase_change
FluidIndicator corresponding to the fluid which has phase change.
bool calculate_tracer_flow_rate
Enable tracer flow rate post-processing.
bool calculate_temperature_statistics
Enable temperature statistics.
bool calculate_viscous_dissipation
Enable viscous dissipation post-processing.
unsigned int output_frequency
Frequency of the output.
bool calculate_barycenter
IsocontourBoundingBoxes isocontour_bounding_boxes
Contains all isocontour bounding boxes.
bool calculate_phase_energy
Enable energies calculation on the domain in Cahn-Hilliard simulations.
std::string tracer_flow_rate_output_name
Prefix for tracer flow rate output.
ProbingPoints probing_points
Contains all probing points.
std::string enstrophy_output_name
Prefix for the enstrophy output.
std::string viscous_dissipation_output_name
Prefix for the viscous dissipation output.
std::string temperature_output_name
Prefix for the temperature output.
double initial_time_for_average_velocities
Set initial time to start calculations for velocities.
std::string pressure_drop_output_name
Prefix for pressure drop output.
bool calculate_algebraic_melt_volume
Enable calculation of algebraic melt volume in phase change problems.
bool calculate_apparent_viscosity
Enable calculating apparent viscosity.
double melting_temperature
Melting temperature iso-value.
bool calculate_average_velocities
Enable velocity post-processing.
std::string flow_rate_output_name
Prefix for flow rate output.
bool calculate_heat_flux
Enable heat flux calculation.
std::string heat_flux_output_name
Prefix for the total heat flux output.
bool calculate_average_temp_and_hf
Enable average temperature and average heat flux post-processing.
std::string tracer_output_name
Prefix for the tracer output.
bool output_vorticity
Enable output of vorticity field.
std::string phase_volumes_output_name
prefix for the total volume output in cfd-dem simulation
std::vector< std::pair< std::string, EnumType > > DeprecatedEnumNames
Deprecated strings of an enum parameter, each paired with the enumerator it stands for....
Identifiers for multiphysics modules and their solution fields.
Variable
Solution fields of the different physics that are used as an indicator for multiple purposes (e....
std::string get_variable_string(Variable variable)
Gets for every available Variable the string corresponding to the variable.
const std::vector< Verbosity > & quiet_or_verbose()
Return the verbosity levels accepted by the parameters which do not support Verbosity::extra_verbose.
const DeprecatedEnumNames< FluidIndicator > & deprecated_fluid_indicator_names()
Return the deprecated strings of the parameters parsed into a FluidIndicator, which remain accepted i...
SizeOfSubsections get_size_of_subsections(const std::string &file_name, const bool require_subsection_size=true)
Extract the maximum number of all variable size sections within the parameter file.
const std::vector< FluidIndicator > & single_fluid_indicators()
Return the fluid indicators accepted by the parameters which designate a single fluid.
const DeprecatedEnumNames< Verbosity > & deprecated_verbosity_names()
Return the deprecated strings of the parameters parsed into a Verbosity, which remain accepted in par...
FluidIndicator
Class to account for different fluid indicators. This is used for multiphase simulations in PostProce...
Carreau model to solve for non-Newtonian flows.
double kinematic_viscosity_inf
void parse_parameters(ParameterHandler &prm, const Dimensionality &dimensions)
Parse the Carreau rheology parameters.
static void declare_parameters(ParameterHandler &prm)
Declare the Carreau rheology parameters.
double kinematic_viscosity_0
Set of parameters constraining a certain portion of a fluid domain to null velocity and pressure fiel...
std::vector< unsigned int > fluid_ids
Identifiers of fluids that are constrained.
std::vector< double > filtered_phase_indicator_tolerance
std::vector< double > temperature_max_values
Upper threshold values of the constraining field (temperature).
bool enable_domain_restriction_with_plane
static void declare_default_entries(ParameterHandler &prm)
Declare the default parameters for each constraint.
std::vector< double > temperature_min_values
Lower threshold values of the constraining field (temperature).
void parse_parameters(ParameterHandler &prm)
Parse the parameters.
Tensor< 1, dim > restriction_plane_normal_vector
void parse_constraint_parameters(const ParameterHandler &prm, const unsigned int constraint_id)
Parse parameters for each constraint.
unsigned int number_of_constraints
Total number of constraints (maximum of 1 per fluid).
bool enable
Enable/disable (true/false) the solid domain constraining feature.
Point< dim > restriction_plane_point
void declare_parameters(ParameterHandler &prm, const unsigned int max_number_of_constraints)
Declare the parameters.
FlowControl - Set average velocity on a boundary (CFD) or the domain (CFD-DEM).
double average_velocity_0
bool enable_beta_particle
unsigned int flow_direction
void parse_parameters(ParameterHandler &prm)
Parse the parameters.
static void declare_parameters(ParameterHandler &prm)
Declare the default parameters.
unsigned int boundary_flow_id
Evaporation - Defines the subparameters for the evaporation cooling and recoil pressure at the free s...
void parse_parameters(ParameterHandler &prm)
Parse the parameters.
double universal_gas_constant
double recoil_pressure_coefficient
double latent_heat_evaporation
EvaporativeMassFluxModelType
bool enable_evaporation_cooling
double evaporation_mass_flux
double ambient_gas_density
double evaporation_coefficient
static void declare_parameters(ParameterHandler &prm)
Declare the default parameters.
bool enable_recoil_pressure
enum Parameters::Evaporation::EvaporativeMassFluxModelType evaporative_mass_flux_model_type
double boiling_temperature
FEM - The finite element section controls the properties of the finite element method....
unsigned int electromagnetics_test_degree
unsigned int void_fraction_degree
unsigned int solid_volume_fraction_degree
static void declare_parameters(ParameterHandler &prm)
Declare the parameters.
unsigned int velocity_degree
unsigned int solid_velocity_degree
Polynomial degree of the solid velocity of the Euler-Euler model.
unsigned int tracer_degree
bool enable_bubble_function_velocity
unsigned int temperature_degree
unsigned int electromagnetics_trial_degree
void parse_parameters(ParameterHandler &prm)
Parse the parameters.
unsigned int phase_cahn_hilliard_degree
unsigned int potential_cahn_hilliard_degree
unsigned int pressure_degree
bool enable_bubble_function_pressure
Forces - Defines the parameters for the force calculation on boundaries of the domain.
unsigned int calculation_frequency
std::string torque_output_name
unsigned int output_frequency
void parse_parameters(ParameterHandler &prm)
Parse the parameters.
unsigned int output_precision
std::string force_output_name
static void declare_parameters(ParameterHandler &prm)
Declare the parameters.
Gaussian-based physical properties model to handle properties at the interface of immersed solids and...
double tracer_reaction_constant_bulk
double tracer_diffusivity_bulk
double tracer_reaction_constant_interface
double tracer_diffusivity_interface
static void declare_parameters(ParameterHandler &prm)
Declare the immersed-solid Gaussian model parameters.
void parse_parameters(ParameterHandler &prm, const Dimensionality &dimensions)
Parse the immersed-solid Gaussian model parameters.
Tanh-based physical properties model to handle properties in/out of immersed solids.
double tracer_reaction_constant_inside
double tracer_reaction_constant_outside
double tracer_diffusivity_inside
void parse_parameters(ParameterHandler &prm, const Dimensionality &dimensions)
Parse the immersed-solid tanh model parameters.
static void declare_parameters(ParameterHandler &prm)
Declare the immersed-solid tanh model parameters.
double tracer_diffusivity_outside
Isothermal ideal gas model to solve for isothermal weakly compressible fluid flows.
void parse_parameters(ParameterHandler &prm, const Dimensionality &dimensions)
Parse the isothermal ideal-gas density parameters.
double density_ref
Reference state density of the gas in kg/m^3.
static void declare_parameters(ParameterHandler &prm)
Declare the isothermal ideal-gas density parameters.
double R
Specific gas constant in J/kg/K.
double T
Absolute temperature of the ideal gas in K.
Laser_FreeSurfaceRadiation - Defines the subparameters for the radiation sink at the free surface (ai...
static void declare_parameters(ParameterHandler &prm)
Declare the parameters.
void parse_parameters(ParameterHandler &prm)
Parse the parameters.
double Stefan_Boltzmann_constant
LinearSolver - Parameters that control the solution of the linear system of equations that arise from...
MultigridCoarseningSequenceType mg_coarsening_type
double amg_precond_ilu_rtol
ILU relative tolerance for smoother.
bool amg_w_cycles
AMG W_cycle.
double amg_aggregation_threshold
AMG aggregation threshold.
double mg_gmres_tolerance
MG coarse-grid solver tolerance.
unsigned int amg_precond_ilu_fill
ILU fill for smoother.
bool enable_hessians_jacobian
Enable hessians in jacobian.
bool rescale_residual_by_volume
unsigned int mg_p_min_coarsening_degree
Minimum polynomial degree for p coarsening sequence.
CoarseGridSolverType mg_coarse_grid_solver
bool mg_enable_hessians_jacobian
MG enable hessians in jacobian.
MGTransferGlobalCoarseningTools::PolynomialCoarseningSequenceType mg_p_coarsening_type
Type of p coarsening sequence.
unsigned int ilu_precond_fill
ILU fill.
int mg_gmres_max_iterations
MG coarse-grid solver maximum number of iterations.
double ilu_precond_rtol
ILU relative tolerance.
PreconditionerType preconditioner
double mg_smoother_relaxation
MG smoother relaxation parameter.
double relative_residual
Relative residuals of the iterative solver.
int max_iterations
Maximum number of iterations.
int max_krylov_vectors
Maximum number of krylov vectors.
int eig_estimation_cg_n_iterations
MG number of cg iterations to find eigenvalue.
bool mg_amg_use_default_parameters
MG use default parameters for AMG.
int mg_gmres_max_krylov_vectors
MG coarse-grid solver maximum number of krylov vectors.
bool mg_smoother_eig_estimation
MG eigenvalue estimation for smoother relaxation parameter.
unsigned int mg_smoother_chebyshev_degree
Chebyshev smoother polynomial degree.
unsigned int amg_smoother_overlap
AMG Smoother overlap.
double minimum_residual
Minimum residual of the iterative solver.
MultigridCoarseningSequenceType
Type of multigrid.
MultigridSmootherPreconditionerType mg_smoother_preconditioner_type
unsigned int amg_n_cycles
AMG number of cycles.
double mg_gmres_reduce
MG coarse-grid solver reduce.
MultigridSmootherPreconditionerType
Type of preconditioner for the MG smoother.
@ additive_schwarz_method
int mg_min_level
MG min level.
Verbosity mg_verbosity
MG information about levels.
int mg_int_level
MG intermediate level.
unsigned int mg_smoother_chebyshev_eig_cg_n_iterations
Chebyshev smoother eigenvalue-estimation CG/Lanczos iterations.
PreconditionerType mg_gmres_preconditioner
MG coarse-grid solver preconditioner.
double eig_estimation_smoothing_range
MG smoothing range to set range between eigenvalues.
CoarseGridSolverType
Type of coarse grid solver.
unsigned int amg_smoother_sweeps
AMG Smoother sweeps.
Verbosity verbosity
Verbosity of linear solver.
static void declare_parameters(ParameterHandler &prm, const std::string &physics_name)
Declare the parameters.
PreconditionerType
Type of preconditioner.
@ amg
Algebraic Multigrid.
@ lsmg
Local-Smoothing Geometric Multigrid.
@ ilu
Incomplete LU Factorization.
@ gcmg
Global-Coarsening Multigrid.
double ilu_precond_atol
ILU absolute tolerance.
int mg_level_min_cells
MG minimum number of cells per level.
double mg_smoother_chebyshev_smoothing_range
Chebyshev smoother smoothing range (lambda_max / lambda_min).
bool mg_use_fe_q_iso_q1
MG use FE_Q_iso_Q1 elements for coarse grid.
bool enable_hessians_residual
Enable hessians in residual.
double amg_precond_ilu_atol
ILU absolute tolerance for smoother.
void parse_parameters(ParameterHandler &prm, const std::string &physics_name)
Parse the parameters.
bool force_linear_solver_continuation
Block linear solver to throw error.
int mg_smoother_iterations
MG smoother number of iterations.
Verbosity eig_estimation_verbose
MG print max, min, eigenvalues.
MeshAdaption - Parameters that control dynamic mesh adaptation. Dynamic mesh adaptation in Lethe is v...
bool is_boundary_refinement_fixed
FractionType
Decision factor for adaptive refinement (number or fraction).
enum Parameters::MeshAdaptation::Type type
std::map< Variable, MultipleAdaptationParameters > variables
bool mesh_controller_is_enabled
static void declare_parameters(ParameterHandler &prm)
Declare the parameters.
bool refinement_at_frequency
enum Parameters::MeshAdaptation::FractionType fractionType
unsigned int initial_refinement
unsigned int maximum_number_elements
unsigned int maximum_refinement_level
std::vector< int > boundaries_to_fix
unsigned int minimum_refinement_level
void parse_parameters(ParameterHandler &prm)
Parse the parameters.
std::shared_ptr< std::vector< Mesh< dim, spacedim > > > refinement_boxes_meshes
void parse_parameters(ParameterHandler &prm)
Parse the parameters.
unsigned int number_of_refinement_boxes
Number of boxes delimiting refinement regions.
void declare_parameters(ParameterHandler &prm)
Declare the parameters.
std::vector< unsigned int > box_additional_refinements
Vector of additional refinement values of the different boxes.
const unsigned int max_number_of_refinement_boxes
MobilityCahnHilliardParameters - Defines parameters for the mobility models used in the Cahn-Hilliard...
static void declare_parameters(ParameterHandler &prm)
Declare the parameters.
void parse_parameters(const ParameterHandler &prm, const Parameters::Dimensionality &dimensions)
Parse the parameters.
double mobility_cahn_hilliard_constant
Mortar - Defines parameters used to construct mortar elements.
Point< dim > center_of_rotation
Center of rotation of the rotor domain.
bool enable
Indicates whether mortar elements are enabled.
std::shared_ptr< Functions::ParsedFunction< dim > > rotor_angular_velocity
Angular velocity of the rotor domain.
void declare_parameters(ParameterHandler &prm)
Declare the default parameters.
unsigned int stator_boundary_id
Boundary ID # of the stator at the rotor-stator interface.
double sip_factor
Penalty factor for mortar elements.
unsigned int rotor_boundary_id
Boundary ID # of the rotor at the rotor-stator interface.
unsigned int cell_weight
Cell weight for load balancing of cells with mortar interfaces.
Verbosity verbosity
Type of verbosity for mortar.
unsigned int rotation_axis_direction
Rotation axis direction.
std::shared_ptr< Functions::ParsedFunction< dim > > rotor_rotation_angle
Rotation angle of the rotor domain in radians.
unsigned int oversampling_factor
Oversampling factor for quadrature points.
double radius_tolerance
Tolerance used for rotor-stator interface radius computation.
std::shared_ptr< Mesh< dim > > rotor_mesh
Mesh parameters for the rotor part.
enum Parameters::Mortar::InterfaceType interface_type
InterfaceType
Type of mortar interface.
void parse_parameters(ParameterHandler &prm)
Parse the parameters.
Mesh Adaptation Parameters that can differ for each refinement variable.
ErrorEstimator
Error estimator for the variable.
double refinement_fraction
enum Parameters::MultipleAdaptationParameters::ErrorEstimator error_estimator
double coarsening_fraction
NonLinearSolver - Parameter that controls the solution of the non-linear problems.
unsigned int max_iterations
bool force_rhs_calculation
bool abort_at_convergence_failure
KinsolStrategy kinsol_strategy
bool reuse_preconditioner
static void declare_parameters(ParameterHandler &prm, const std::string &physics_name)
Declare the parameters.
void parse_parameters(ParameterHandler &prm, const std::string &physics_name)
Parse the parameters.
non-Newtonian - Defines the parameters for non-Newtonian flows according to the chosen rheological mo...
void declare_parameters(ParameterHandler &prm) const
Declare the parameters for the selected non-Newtonian model.
PowerLawParameters powerlaw_parameters
CarreauParameters carreau_parameters
void parse_parameters(ParameterHandler &prm, const Dimensionality &dimensions)
Parse the parameters for the selected non-Newtonian model.
Phase change model for melting/freezing liquids The model assumes that the phase change occurs betwee...
double thermal_conductivity_l
Thermal conductivity of liquid - Units in W/(m*K).
double cp_l
Specific heat of liquid - Units in J/(kg*K).
double T_liquidus
Liquidus temperature - Units in K.
double penalty_l
Darcy penalty of liquid - Units in 1/(s).
double thermal_conductivity_s
Thermal conductivity of solid - Units in W/(m*K).
double kinematic_viscosity_l
kinematic viscosity of liquid - Units in m^2/(s)
void parse_parameters(ParameterHandler &prm, const Dimensionality &dimensions)
Parse the phase change parameters.
double cp_s
Specific heat of solid - Units in J/(kg*K).
static void declare_parameters(ParameterHandler &prm)
Declare the phase change parameters.
double thermal_expansion_l
Thermal expansion coefficient of liquid - Units in 1/K.
double penalty_s
Darcy penalty of solid - Units in 1/(s).
double T_solidus
Solidus temperature - Units in K.
double kinematic_viscosity_s
kinematic viscosity of solid - Units in m^2/(s)
double thermal_expansion_s
Thermal expansion coefficient of solid - Units in 1/K.
double latent_enthalpy
Latent enthalpy for the phase change - Units in J/kg.
std::string output_name
Isocontour output filename.
double isovalue
Isocontour value.
Isocontour bounding box parameters. This is used to get the evolution of the bounding values (In 2D: ...
void declare_parameters(ParameterHandler &prm)
Declare the parameters in the parameter handler.
unsigned int number_of_isocontour_bounding_boxes
Number of monitored isocontours.
std::multimap< Variable, std::pair< unsigned int, Isocontour > > ids_and_isocontours_per_variable
void parse_parameters(ParameterHandler &prm)
Parse the parameters from the parameter handler.
IDs and locations associated with probe points of a given variable.
std::vector< unsigned int > ids
std::vector< Point< dim > > points
Point locations where we want to evaluate values.
Probing points parameters. This is used to monitor the evolution of variables (e.g....
void declare_parameters(ParameterHandler &prm)
Declare the parameters in the parameter handler.
unsigned int max_number_of_probing_points
Maximum number of probing points.
void parse_parameters(ParameterHandler &prm)
Parse the parameters from the parameter handler.
void add_probing_point(const Variable &variable, const unsigned int &id, const Point< dim > &point)
Adds an entry to probing_points_per_variable.
std::vector< std::string > probing_points_output_names
Probing point output names ordered by ID.
unsigned int number_of_probing_points
Number of probing points.
std::map< Variable, ProbingPointsPerVariable > probing_points_per_variable
Power-law rheological model to solve for non-Newtonian flows.
static void declare_parameters(ParameterHandler &prm)
Declare the power-law rheology parameters.
void parse_parameters(ParameterHandler &prm, const Dimensionality &dimensions)
Parse the power-law rheology parameters.
Restart - Controls writing and reading simulation checkpoints.
void parse_parameters(ParameterHandler &prm)
Parse the parameters.
static void declare_parameters(ParameterHandler &prm)
Declare the parameters.
SimulationControl - Defines the parameter that control the flow of the simulation as well as the freq...
unsigned int subdivision
Subdivisions of the results in the output.
unsigned int iteration_end
unsigned int log_frequency
Frequency of the log output to the terminal.
enum Parameters::SimulationControl::OutputControl output_control
double adaptative_time_step_scaling
bool time_step_adaptation_required
double output_time_frequency
Time frequency of the output (for time output control).
bool override_time_step_on_restart
static void declare_parameters(ParameterHandler &prm)
Declare the simulation control parameters.
bool time_step_independent_of_end_time
unsigned int group_files
Number of vtu files written at an output step.
unsigned int number_mesh_adaptation
enum Parameters::SimulationControl::EndControl end_control
unsigned int output_iteration_frequency
Frequency of the output (for iteration output control).
enum Parameters::SimulationControl::BDFStartupMethods bdf_startup_method
void parse_parameters(ParameterHandler &prm)
Parse the simulation control parameters.
std::string output_folder
double startup_timestep_scaling
std::vector< double > output_times_vector
Output at specific times (for time output control).
unsigned int log_precision
Display precision of the log output to the terminal.
double max_capillary_time_step_ratio
std::vector< double > output_time_interval
Time window for file output (for both iteration and time output control).
bool output_boundaries
Enable output of the boundaries in a separate VTU file.
bool adapt_with_capillary_time_step_ratio
enum Parameters::SimulationControl::TimeSteppingMethod method
Stabilization - Defines parameters for an advanced control over the stabilization strategy used by th...
static void declare_parameters(ParameterHandler &prm)
Declare the parameters.
bool heat_transfer_dcdd_stabilization
NavierStokesStabilization
void parse_parameters(ParameterHandler &prm)
Parse the parameters.
enum Parameters::Stabilization::ScalarLimiters scalar_limiter
double pressure_scaling_factor
double dcdd_diffusion_coeff
bool cls_dcdd_stabilization
enum Parameters::Stabilization::NavierStokesStabilization stabilization
bool use_default_stabilization
Defines if default stabilization parameters should be used.
SurfaceTensionParameters - Defines parameters for surface tension models.
void parse_parameters(const ParameterHandler &prm, const Parameters::Dimensionality &dimensions)
Parse the parameters.
double surface_tension_gradient
static void declare_parameters(ParameterHandler &prm)
Declare the parameters.
double surface_tension_coefficient
Testing - Some solvers have a specific testing mode that can be enabled to output more variables to t...
enum Parameters::Testing::TestType test_type
static void declare_parameters(ParameterHandler &prm)
Declare the parameters.
void parse_parameters(ParameterHandler &prm)
Parse the parameters.
Timer - Defines the parameters that control the timing of the simulation. Lethe supports advanced tim...
static void declare_parameters(ParameterHandler &prm)
Declare the parameters.
void parse_parameters(ParameterHandler &prm)
Parse the parameters.
bool write_time_in_error_table
VelocitySource - Adds velocity-dependent source term to the Navier-Stokes equations with the appropri...
std::vector< double > carman_kozeny_permeability_area
Permeability area of the pseudo-porous bed (solid phase).
PermeabilityModel permeability_model
Type of permeability model applied to the Navier-Stokes equations.
std::vector< double > carman_kozeny_tolerance
Tolerance in the Carman-Kozeny source term that avoids division by zero.
void parse_parameters(ParameterHandler &prm)
Parse the parameters.
@ none
No Darcy source term.
@ carman_kozeny_phase_change
static void declare_parameters(ParameterHandler &prm)
Declare the parameters.
bool enable_darcy_multiply_by_density
FluidIndicator fluid_with_phase_change
Indicates which fluids are with liquid-solid phase change.
RotatingFrameType rotating_frame_type