Logbook  (07-04-2025)
Static problems
solver.cpp
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 #include "solver.hpp"
13 
14 #pragma GCC diagnostic push
15 #pragma GCC diagnostic ignored "-Wunused-parameter"
16 
17 template<>
18 double
19 DirichletSLDI<2>::value(const Point<2>& r, unsigned int component) const
20 {
21  return -H_0 * r[0];
22 }
23 
24 template<>
25 double
26 DirichletSLDI<3>::value(const Point<3>& r, unsigned int component) const
27 {
28  return -H_0 * r[2];
29 }
30 
31 #pragma GCC diagnostic pop
The Dirichlet boundary condition of the Magnetostatic shield - 1 (sld-i/) numerical experiment....
Definition: solver.hpp:45