22 #ifndef _aspect_parameters_h 23 #define _aspect_parameters_h 25 #include <deal.II/base/parameter_handler.h> 35 struct CompositionalFieldDescription;
38 namespace GeometryModel
81 no_Advection_no_Stokes
89 return input == NonlinearSolver::iterated_Advection_and_Newton_Stokes ||
90 input == NonlinearSolver::single_Advection_iterated_Newton_Stokes ||
91 input == NonlinearSolver::no_Advection_iterated_defect_correction_Stokes ||
92 input == NonlinearSolver::single_Advection_iterated_defect_correction_Stokes ||
93 input == NonlinearSolver::iterated_Advection_and_defect_correction_Stokes
119 if (input ==
"continue with next timestep")
120 return continue_with_next_timestep;
121 else if (input ==
"cut timestep size")
122 return cut_timestep_size;
123 else if (input ==
"abort program")
124 return abort_program;
126 AssertThrow(
false, ExcNotImplemented());
140 net_translation_x = 0x1,
141 net_translation_y = 0x2,
142 net_translation_z = 0x4,
143 net_translation = 0x1+0x2+0x4,
144 linear_momentum_x = 0x8,
145 linear_momentum_y = 0x10,
146 linear_momentum_z = 0x20,
147 linear_momentum = linear_momentum_x+linear_momentum_y+linear_momentum_z,
149 angular_momentum = 0x80,
150 net_surface_rotation = 0x100,
151 any_translation = net_translation+linear_momentum,
152 any_rotation = net_rotation+angular_momentum+net_surface_rotation,
177 prescribed_field_with_diffusion
211 if (input ==
"isentropic compression")
212 return Formulation::isentropic_compression;
213 else if (input ==
"anelastic liquid approximation")
214 return Formulation::anelastic_liquid_approximation;
215 else if (input ==
"Boussinesq approximation")
216 return Formulation::boussinesq_approximation;
217 else if (input ==
"custom")
218 return Formulation::custom;
220 AssertThrow(
false, ExcNotImplemented());
255 if (input ==
"isentropic compression")
256 return Formulation::MassConservation::isentropic_compression;
257 else if (input ==
"hydrostatic compression")
258 return Formulation::MassConservation::hydrostatic_compression;
259 else if (input ==
"reference density profile")
260 return Formulation::MassConservation::reference_density_profile;
261 else if (input ==
"implicit reference density profile")
262 return Formulation::MassConservation::implicit_reference_density_profile;
263 else if (input ==
"incompressible")
264 return Formulation::MassConservation::incompressible;
265 else if (input ==
"projected density field")
266 return Formulation::MassConservation::projected_density_field;
267 else if (input ==
"ask material model")
268 return Formulation::MassConservation::ask_material_model;
270 AssertThrow(
false, ExcNotImplemented());
290 reference_density_profile
301 if (input ==
"real density")
302 return Formulation::TemperatureEquation::real_density;
303 else if (input ==
"reference density profile")
304 return Formulation::TemperatureEquation::reference_density_profile;
306 AssertThrow(
false, ExcNotImplemented());
332 if (input ==
"entropy viscosity")
333 return entropy_viscosity;
334 else if (input ==
"SUPG")
337 AssertThrow(
false, ExcNotImplemented());
344 return "entropy viscosity|SUPG";
364 return "default solver|block AMG|direct solver|block GMG";
370 if (input ==
"block AMG")
372 else if (input ==
"direct solver")
373 return direct_solver;
374 else if (input ==
"block GMG")
376 else if (input ==
"default solver")
377 return default_solver;
379 AssertThrow(
false, ExcNotImplemented());
399 return "GMRES|IDR(s)";
405 if (input ==
"GMRES")
407 else if (input ==
"IDR(s)")
410 AssertThrow(
false, ExcNotImplemented());
430 return "ARKode|fixed step";
436 if (input ==
"ARKode")
438 else if (input ==
"fixed step")
441 AssertThrow(
false, ExcNotImplemented());
464 const MPI_Comm mpi_communicator);
492 void parse_parameters (ParameterHandler &prm,
493 const MPI_Comm mpi_communicator);
511 void parse_geometry_dependent_parameters (ParameterHandler &prm,
The NullspaceRemoval struct.
bool use_full_A_block_preconditioner
unsigned int min_grid_level
unsigned int n_expensive_stokes_solver_steps
std::vector< double > global_composition_min_preset
static Kind parse(const std::string &input)
double linear_stokes_solver_tolerance
unsigned int n_cheap_stokes_solver_steps
static Kind parse(const std::string &input)
unsigned int initial_adaptive_refinement
double coarsening_fraction
std::vector< unsigned int > normalized_fields
double maximum_first_time_step
double global_temperature_max_preset
std::map< types::boundary_id, std::pair< std::string, std::string > > prescribed_traction_boundary_indicators
unsigned int initial_global_refinement
static const std::string pattern()
double AMG_aggregation_threshold
std::vector< bool > use_discontinuous_composition_discretization
unsigned int stabilization_alpha
double linear_solver_A_block_tolerance
std::vector< double > additional_refinement_times
std::map< unsigned int, std::pair< std::string, unsigned int > > mapped_particle_properties
bool use_limiter_for_discontinuous_temperature_solution
bool use_locally_conservative_discretization
double nonlinear_tolerance
unsigned int stokes_gmres_restart_length
static Kind parse(const std::string &input)
unsigned int temperature_degree
unsigned int idr_s_parameter
bool force_nonsymmetric_A_block_solver
bool mesh_deformation_enabled
Formulation::MassConservation::Kind formulation_mass_conservation
bool skip_solvers_on_initial_refinement
bool run_postprocessors_on_initial_refinement
bool adapt_by_fraction_of_cells
AdvectionFieldMethod::Kind temperature_method
bool have_discontinuous_composition_discretization
unsigned int AMG_smoother_sweeps
double temperature_solver_tolerance
NonlinearSolver::Kind nonlinear_solver
std::string world_builder_file
std::vector< bool > use_limiter_for_discontinuous_composition_solution
AdvectionStabilizationMethod::Kind advection_stabilization_method
unsigned int stokes_velocity_degree
void declare_parameters(ParameterHandler &prm)
bool enable_additional_stokes_rhs
NullspaceRemoval::Kind nullspace_removal
static const std::string pattern()
bool use_artificial_viscosity_smoothing
double discontinuous_penalty
bool volume_of_fluid_tracking_enabled
double reaction_time_step
double stabilization_gamma
double linear_solver_S_block_tolerance
bool use_direct_stokes_solver
bool use_operator_splitting
double refinement_fraction
unsigned int n_compositional_fields
unsigned int max_composition_degree
std::vector< unsigned int > composition_degrees
MaterialModel::MaterialAveraging::AveragingOperation material_averaging
unsigned int reaction_steps_per_advection_step
unsigned int n_particle_managers
bool use_conduction_timestep
double maximum_relative_increase_time_step
double composition_solver_tolerance
std::vector< std::string > names_of_compositional_fields
unsigned int max_nonlinear_iterations
NonlinearSolverFailureStrategy::Kind nonlinear_solver_failure_strategy
bool run_postprocessors_on_nonlinear_iterations
bool use_discontinuous_temperature_discretization
static Kind parse(const std::string &input)
static bool is_defect_correction(const typename NonlinearSolver::Kind &input)
static std::string get_options_string()
std::set< types::boundary_id > fixed_heat_flux_boundary_indicators
std::string output_directory
std::vector< double > stabilization_beta
std::vector< aspect::CompositionalFieldDescription > composition_descriptions
std::vector< double > stabilization_c_R
std::vector< std::string > compositional_fields_with_disabled_boundary_entropy_viscosity
std::string pressure_normalization
bool use_equal_order_interpolation_for_stokes
double ARKode_relative_tolerance
StokesSolverType::Kind stokes_solver_type
unsigned int advection_gmres_restart_length
bool enable_prescribed_dilation
static const std::string pattern()
std::string AMG_smoother_type
StokesKrylovType::Kind stokes_krylov_type
double global_temperature_min_preset
Formulation::TemperatureEquation::Kind formulation_temperature_equation
static Kind parse(const std::string &input)
bool include_melt_transport
double adiabatic_surface_temperature
std::vector< unsigned int > chemical_composition_indices
unsigned int max_nonlinear_iterations_in_prerefinement
std::vector< double > global_composition_max_preset
unsigned int timing_output_frequency
std::vector< typename AdvectionFieldMethod::Kind > compositional_field_methods
Formulation::Kind formulation
unsigned int n_chemical_compositions
bool skip_setup_initial_conditions_on_initial_refinement
unsigned int adaptive_refinement_interval
ReactionSolverType::Kind reaction_solver_type
double diffusion_length_scale