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 SettingsSLDII_H__
13 #define SettingsSLDII_H__
14 
15 #include "constants.hpp"
16 #include <deal.II/base/types.h>
17 
18 using namespace dealii;
19 
20 enum BoundaryConditionType
21 {
22  Dirichlet,
23  Exact
24 };
25 
32 {
33 public:
35  : j_hat({ 1.0, 0.0 })
36  , k_hat({ 0.0, 0.0, 1.0 }){};
37 
42  const unsigned int nr_threads_max = 0;
43 
47  const double mu_0 = permeability_fs;
48 
53  const double d1 = (DIMENSION__ == 2) ? 0.07 : 0.05;
54 
59  const double rd1 = sqrt(DIMENSION__) * d1;
60 
64  const double a = 0.2;
65 
69  const double b = 0.4;
70 
75  const double d_2 = 0.8;
76 
81  const double d_3 = 2.0;
82 
87  const Tensor<1, 2> j_hat;
88 
93  const Tensor<1, 3> k_hat;
94 
98  const types::boundary_id bid = 1;
99 
103  const BoundaryConditionType type_of_bc = Exact;
104 
108  const types::material_id mid_1 = 1;
109 
113  const types::material_id mid_2 = 2;
114 
118  const types::material_id mid_3 = 3;
119 
123  const double mur_1 = 1.0;
124 
128  const double mur_2 = 4.0;
129 
133  const double mur_3 = 1.0;
134 
139  const double mu_1 = mur_1 * mu_0;
140 
144  const double mu_2 = mur_2 * mu_0;
145 
149  const double mu_3 = mur_3 * mu_0;
150 
155  const double H_0 = 1.0;
156 
161  const double eps = 1e-12;
162 
167  const bool print_time_tables = false;
168 
177  const bool project_exact_solution = false;
178 
186  const bool log_cg_convergence = false;
187 };
188 
189 using Settings = SettingsSLDII;
190 
191 #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 - 2 (sld-ii/) numerical experiment.
Definition: settings.hpp:32
const Tensor< 1, 2 > j_hat
A basis vector of the tho-dimensional Cartesian coordinate system, .
Definition: settings.hpp:87
const Tensor< 1, 3 > k_hat
A basis vector of the thee-dimensional Cartesian coordinate system, .
Definition: settings.hpp:93