Logbook  (07-04-2025)
Static problems
settings.hpp
1 /*****************************************************************************
2  * Copyright (C) Siarhei Uzunbajakau, 2023.
3  *
4  * This program is free software. You can use, modify, and redistribute it under
5  * the terms of the GNU Lesser General Public License as published by the Free
6  * Software Foundation, either version 3 or (at your option) any later version.
7  * This program is distributed without any warranty.
8  *
9  * Refer to COPYING.LESSER for more details.
10  ******************************************************************************/
11 
12 #ifndef SettingsSLDI_H__
13 #define SettingsSLDI_H__
14 
15 #include "constants.hpp"
16 #include <deal.II/base/types.h>
17 
18 using namespace dealii;
19 
20 enum BoundaryConditionType
21 {
22  DirichletOnly,
23  DirichletNeumann,
24  Exact
25 };
26 
33 {
34 public:
35  SettingsSLDI(){};
36 
41  const unsigned int nr_threads_max = 0;
42 
46  const double mu_0 = permeability_fs;
47 
52  const double d1 = (DIMENSION__ == 2) ? 0.07 : 0.05;
53 
58  const double rd1 = sqrt(DIMENSION__) * d1;
59 
63  const double a = 0.2;
64 
68  const double b = 0.4;
69 
74  const double d_2 = 0.8;
75 
80  const double d_3 = 2.0;
81 
85  const types::boundary_id bid = 1;
86 
90  const BoundaryConditionType type_of_bc = Exact;
91 
95  const types::material_id mid_1 = 1;
96 
100  const types::material_id mid_2 = 2;
101 
105  const types::material_id mid_3 = 3;
106 
110  const double mur_1 = 1.0;
111 
115  const double mur_2 = 4.0;
116 
120  const double mur_3 = 1.0;
121 
126  const double mu_1 = mur_1 * mu_0;
127 
131  const double mu_2 = mur_2 * mu_0;
132 
136  const double mu_3 = mur_3 * mu_0;
137 
142  const double H_0 = 1.0;
143 
148  const double eps = 1e-12;
149 
154  const bool print_time_tables = false;
155 
164  const bool project_exact_solution = false;
165 
173  const bool log_cg_convergence = false;
174 };
175 
176 using Settings = SettingsSLDI;
177 
178 #endif
Lists physical constants.
Definition: constants.hpp:28
Global settings for the Method of manufactured solutions (mms/) numerical experiment.
Definition: settings.hpp:25
Global settings for the Magnetostatic shield - 1 (sld-i/) numerical experiment.
Definition: settings.hpp:33