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 SettingsABC_H__
13 #define SettingsABC_H__
14 
15 #include "constants.hpp"
16 #include <deal.II/base/types.h>
17 
18 using namespace dealii;
19 
26 {
27 public:
28  SettingsABC(){};
29 
34  const unsigned int nr_threads_max = 0;
35 
39  const double ep_0 = permittivity_fs;
40 
45  const double a = 0.1;
46 
51  const double x0 = 0.1;
52 
57  const double R = 0.05;
58 
63  const double R_mid = 1.5 * (R + x0);
64 
69  const types::boundary_id bid_left = 3;
70 
75  const types::boundary_id bid_right = 1;
76 
81  const types::boundary_id bid_in = 1;
82 
87  const types::manifold_id mfid_left = 3;
88 
93  const types::manifold_id mfid_right = 1;
94 
99  const types::manifold_id mfid_infty = 2;
100 
106 #if BC_TYPE__ == 0
107  const types::boundary_id bid_infty = 0; // Neumann boundary condition on the
108  // outer boundary.
109 #endif
110 
111 #if BC_TYPE__ == 1
112  const types::boundary_id bid_infty = 5; // Dirichlet boundary condition on the
113  // outer boundary.
114 #endif
115 
116 #if BC_TYPE__ == 2
117  const types::boundary_id bid_infty = 2; // ABC on the outer boundary.
118 #endif
119 
124  const double eps = 1e-12;
125 
130  const bool print_time_tables = false;
131 
140  const bool project_exact_solution = false;
141 
149  const bool log_cg_convergence = false;
150 };
151 
152 using Settings = SettingsABC;
153 
154 #endif
Lists physical constants.
Definition: constants.hpp:28
Global settings for the Asymptotic boundary conditions (abc/) numerical experiment.
Definition: settings.hpp:26
Global settings for the Method of manufactured solutions (mms/) numerical experiment.
Definition: settings.hpp:25