9#ifndef lethe_parameters_multiphysics_h
10#define lethe_parameters_multiphysics_h
14#include <deal.II/base/parameter_handler.h>
15#include <deal.II/base/parsed_function.h>
16#include <deal.II/base/utilities.h>
738 std::shared_ptr<Functions::ParsedFunction<dim>>
scalars;
908 std::vector<std::array<Tensor<1, dim>, Utilities::fixed_power<2>(dim - 1)>>
Class used to rescale physical properties for cases where the main dimensions of the problems (Length...
T clip(const T &n, const T &lower, const T &upper)
Clip a property between a lower and a higher value.
SharpeningType
Different projection-based interface sharpening types:
EpsilonVerbosity
Verbosity options for the epsilon parameter.
@ quiet
Epsilon related information will not be displayed on terminal.
RedistanciationTransformationType
Different transformation function types for the signed distance:
WaveguideMode
Types of waveguide port modes:
@ TE
Transverse Electric mode.
@ TM
Transverse Magnetic mode.
unsigned int get_number_of_distribution_parameters(const QMOMDistributionType distribution_type)
Number of parameters of a particle size distribution family, not counting the number density.
TimeHarmonicMaxwellCouplingStrategy
Parameters for the time coupling strategy of the time-harmonic Maxwell solver with the other physics ...
QMOMProcess
Process simulated with the QMOM physics. A process other than generic imposes the scalars and the num...
@ lipid_nanoparticle_production
ReinitializationMethodType
Different interface reinitialization method types:
@ projection_based_sharpening
QMOMDistributionType
Family of the particle size distribution from which the moments of the QMOM physics are computed....
ElectromagneticScalingType
Type of electromagnetic scaling to apply to the solution of the time-harmonic Maxwell solver after so...
QMOMSplittingScheme
Operator splitting scheme between the physical-space transport (T) and the phase-space evolution (P) ...
FluidIndicator
Class to account for different fluid indicators. This is used for multiphase simulations in PostProce...
FilterType
Different phase indicator filtering types:
Parameters for geometric reinitialization of the interface used with the CLS solver.
RedistanciationTransformationType transformation_type
double max_reinitialization_distance
Maximum reinitialization distance value.
void parse_parameters(ParameterHandler &prm)
Parse the parameters.
bool enable
Enables/Disables the geometric interface reinitialization.
static void declare_parameters(ParameterHandler &prm)
Declare the parameters.
double tanh_thickness
Interface thickness for the tanh transformation.
bool output_signed_distance
Enables/Disables the output of the signed distance field.
CLS_InterfaceSharpening - Defines the parameters for interface sharpening in the CLS solver.
double threshold_max_deviation
void parse_parameters(ParameterHandler &prm)
Parsesthe CLS interface-sharpening parameters.
Parameters::SharpeningType type
Parameters::FluidIndicator monitored_fluid
double interface_sharpness
static void declare_parameters(ParameterHandler &prm)
Declare the CLS interface-sharpening parameters.
Parameters for PDE-based reinitialization of the interface used with the CLS solver.
static void declare_parameters(ParameterHandler &prm)
Declare the parameters.
void parse_parameters(ParameterHandler &prm)
Parse the parameters.
bool enable
Enables/Disables the PDE-based interface reinitialization.
double diffusivity_multiplier
double steady_state_criterion
Steady-state criterion used for the artificial time-stepping scheme.
bool output_reinitialization_steps
double max_steps_number
Maximum number of reinitialization steps.
Parameters for the phase filtration.
Parameters::Verbosity verbosity
void parse_parameters(ParameterHandler &prm)
Parse the CLS phase-filter parameters.
Parameters::FilterType type
static void declare_parameters(ParameterHandler &prm)
Declare the CLS phase-filter parameters.
Parameters for interface reinitialization methods used within the CLS solver. It stores the parameter...
Parameters::CLS_InterfaceSharpening sharpening
Interface sharpening parameters.
Parameters::CLS_PDEBasedInterfaceReinitialization pde_based_interface_reinitialization
PDE-based interface reinitialization parameters.
Parameters::Verbosity verbosity
Type of verbosity of the PDE-based interface reinitialization solver.
void declare_parameters(ParameterHandler &prm) const
Declare the parameters.
Parameters::ReinitializationMethodType reinitialization_method_type
Reinitialization method type.
void parse_parameters(ParameterHandler &prm)
Parse the parameters.
Parameters::CLS_GeometricInterfaceReinitialization geometric_interface_reinitialization
Geometric interface reinitialization parameters.
Parameters for the calculation of surface tension force in the CLS solver.
bool output_cls_auxiliary_fields
Parameters::Verbosity verbosity
static void declare_parameters(ParameterHandler &prm)
Declare the CLS surface-tension force parameters.
double curvature_diffusion_factor
double phase_indicator_gradient_diffusion_factor
bool enable_marangoni_effect
void parse_parameters(ParameterHandler &prm)
Parse the CLS surface-tension force parameters.
CLS - Defines the parameters for free surface simulations using the CLS method. Has to be declared be...
Parameters::FluidIndicator viscous_dissipative_fluid
Parameters::CLS_SurfaceTensionForce surface_tension_force
void declare_parameters(ParameterHandler &prm) const
Declare the CLS parameters.
void parse_parameters(ParameterHandler &prm)
Parse the CLS parameters.
Parameters::CLS_PhaseFilter phase_filter
Parameters::CLS_ReinitializationMethod reinitialization_method
CahnHilliard_PhaseFilter - Defines the parameters for the phase filtration of CahnHilliard physics.
static void declare_parameters(ParameterHandler &prm)
Declare the Cahn-Hilliard phase-filter parameters.
void parse_parameters(ParameterHandler &prm)
Parse the Cahn-Hilliard phase-filter parameters.
Parameters::FilterType type
Parameters::Verbosity verbosity
void parse_parameters(ParameterHandler &prm, const Dimensionality &dimensions)
Parse the Cahn-Hilliard parameters.
void declare_parameters(ParameterHandler &prm) const
Declare the Cahn-Hilliard parameters.
Parameters::EpsilonVerbosity epsilon_verbosity
Parameters::EpsilonSetMethod epsilon_set_method
double potential_smoothing_coefficient
Parameters::CahnHilliard_PhaseFilter cahn_hilliard_phase_filter
Multiphysics - the parameters for multiphysics simulations and handles sub-physics parameters.
bool continuum_solid_dynamics
Parameters::CahnHilliard cahn_hilliard_parameters
bool thermal_buoyancy_force
void declare_parameters(ParameterHandler &prm) const
Declare the multiphysics parameters.
Parameters::CLS cls_parameters
void parse_parameters(ParameterHandler &prm, const Dimensionality &dimensions)
Parse the multiphysics parameters.
Parameters::QMOM qmom_parameters
Parameters::TimeHarmonicMaxwell< dim > time_harmonic_maxwell_parameters
Functions of space and time prescribing the fields of the QMOM physics. They are used for the initial...
void parse_parameters(ParameterHandler &prm)
Parse the "scalars" and "distribution" subsections of the current subsection. The number of component...
std::shared_ptr< Functions::ParsedFunction< dim > > scalars
Scalars, one component per scalar.
void set_time(const double time)
Set the time of all the functions.
std::shared_ptr< Functions::ParsedFunction< dim > > distribution
QMOMDistributionType distribution_type
Family of the particle size distribution.
static void declare_parameters(ParameterHandler &prm)
Declare the "scalars" and "distribution" subsections in the current subsection. All the functions are...
Process parameters of the lipid nanoparticle (LNP) production simulated with the QMOM physics: operat...
double molar_mass_aqueous
Molar mass of the aqueous phase [kg/mol].
double density_organic
Density of the organic phase [kg/m^3].
double mole_fraction_solubility_aqueous
Mole fraction solubility of the lipid in the pure aqueous phase [-].
double initial_concentration_organic
Initial lipid concentration in the organic phase [mol/m^3].
double permittivity_aqueous
Relative permittivity of the aqueous phase [-].
double mole_fraction_solubility_organic
Mole fraction solubility of the lipid in the pure organic phase [-].
double total_flow_rate
Total flow rate of the aqueous and organic phases [m^3/s].
double ion_concentration_mixture
Ion concentration in the mixture [mol/m^3].
void parse_parameters(ParameterHandler &prm)
Parse the "lipid nanoparticle production" subsection.
double molar_mass_organic
Molar mass of the organic phase [kg/mol].
double density_aqueous
Density of the aqueous phase [kg/m^3].
double operating_temperature
Operating temperature [K].
double viscosity_mixture
Dynamic viscosity of the aqueous and organic mixture [Pa s].
double shape_factor
Volume shape factor of the particles, pi/6 for spheres [-].
void declare_parameters(ParameterHandler &prm) const
Declare the "lipid nanoparticle production" subsection.
double flow_rate_ratio
Ratio of the aqueous phase flow rate to the organic phase flow rate [-].
double mixing_time_scale
Mixing time scale of the aqueous and organic phases [s].
double permittivity_organic
Relative permittivity of the organic phase [-].
Parameters of the phase-space evolution of the QMOM moments, which is delegated to QMOMKit.
void parse_parameters(ParameterHandler &prm)
Parse the "phase evolution" subsection.
void declare_parameters(ParameterHandler &prm) const
Declare the "phase evolution" subsection.
bool enable_adaptive_node_count
Enable the adaptive number of quadrature nodes.
Physical constants used by the QMOM physics, in SI units. Their default values are the exact values o...
double elementary_charge
Elementary charge [C].
double boltzmann_constant
Boltzmann constant [J/K].
double avogadro_number
Avogadro number [1/mol].
void parse_parameters(ParameterHandler &prm)
Parse the "physical constants" subsection.
double permittivity_vacuum
Vacuum permittivity [F/m].
void declare_parameters(ParameterHandler &prm) const
Declare the "physical constants" subsection.
Parameters of the quadrature method of moments (QMOM) physics, declared in the "QMOM" subsection.
std::vector< std::string > scalar_names
bool enable_growth
Include the growth source.
unsigned int number_of_scalars
Number of scalars transported together with the moments.
QMOMLipidNanoparticleProduction lipid_nanoparticle_production
void declare_parameters(ParameterHandler &prm) const
Declare the "QMOM" subsection.
QMOMPhysicalConstants physical_constants
Physical constants ("physical constants" subsection).
bool enable_nucleation
Include the nucleation source.
QMOMSplittingScheme splitting_scheme
bool enable_coalescence
Include the coalescence source.
unsigned int number_of_moments
Number of transported raw moments M_0 to M_{number_of_moments - 1}.
unsigned int number_of_nodes
void parse_parameters(ParameterHandler &prm)
Parse the "QMOM" subsection.
QMOMPhaseEvolution phase_evolution
Phase-space evolution ("phase evolution" subsection).
TimeHarmonicMaxwell - Defines the parameters for time-harmonic Maxwell simulations.
std::vector< unsigned int > mode_order_n
unsigned int number_of_waveguide_inlets
double electric_field_amplitude
double electromagnetic_frequency
unsigned int coupling_iteration
std::vector< std::array< Tensor< 1, dim >, Utilities::fixed_power< 2 >(dim - 1)> > waveguide_corners
std::vector< int > waveguide_boundary_ids
std::vector< Parameters::WaveguideMode > waveguide_mode
Parameters::TimeHarmonicMaxwellCouplingStrategy time_coupling_strategy
double coupling_threshold
double magnetic_field_amplitude
std::vector< unsigned int > mode_order_m
void declare_parameters(ParameterHandler &prm) const
Declare the time-harmonic Maxwell parameters.
void parse_parameters(ParameterHandler &prm, const Dimensionality &dimensions)
Parse the time-harmonic Maxwell parameters.
std::vector< double > waveguide_power
Parameters::ElectromagneticScalingType electromagnetic_scaling_type