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 template<>
15 void
17 {
18  GridIn<2> gridin;
19  gridin.attach_triangulation(triangulation);
20  std::ifstream ifs("../../gmsh/data/circle_r" + std::to_string(r) + ".msh");
21  gridin.read_msh(ifs);
22  mark_materials();
23 }
24 
25 template<>
26 void
28 {
29  GridIn<3> gridin;
30  gridin.attach_triangulation(triangulation);
31  std::ifstream ifs("../../gmsh/data/sphere_r" + std::to_string(r) + ".msh");
32  gridin.read_msh(ifs);
33  mark_materials();
34 }
Implements the Volume charge (rho/) numerical experiment.
Definition: solver.hpp:40