include/meltpooldg/linear_algebra/predictor_data.hpp Source File

Developer Documentation: include/meltpooldg/linear_algebra/predictor_data.hpp Source File
Developer Documentation
predictor_data.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <deal.II/base/parameter_handler.h>
4
6
7namespace MeltPoolDG
8{
9 // choose the particular predictor type for the nonlinear/linear solver
10 BETTER_ENUM(PredictorType,
11 char,
12 // use old value as initial guess
13 none,
14 // use zeros as initial guess
15 zero,
16 // calculate the predictor by a linear combination from the two old solution vectors
17 linear_extrapolation,
18 // least squares projection (WIP)
19 least_squares_projection)
20
21
22 struct PredictorData
23 {
24 PredictorType type = PredictorType::none;
25
26 unsigned int n_old_solution_vectors =
27 2; // only relevant for least_squares_projection, otherwise set appropriately
28
29 void
30 add_parameters(dealii::ParameterHandler &prm);
31
32 void
33 post();
34
35 void
36 check_input_parameters() const;
37 };
38} // namespace MeltPoolDG
Interface for a general preconditioner.
Definition boundary_condition_functions.hpp:17
BETTER_ENUM(MaterialTemplate, char, none, stainless_steel, Ti64, Ti64Benchmark) BETTER_ENUM(SolidLiquidPropertiesTransitionType