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 
20  gridin.attach_triangulation(triangulation);
21  std::ifstream ifs("../../gmsh/data/ring_r" + std::to_string(r) + ".msh");
22  gridin.read_msh(ifs);
23 
24  n_cells = triangulation.n_active_cells();
25 
26  attach_manifold_refine();
27 }
28 
29 template<>
30 void
32 {
33  GridIn<3> gridin;
34 
35  gridin.attach_triangulation(triangulation);
36  std::ifstream ifs("../../gmsh/data/shell_r" + std::to_string(r) + ".msh");
37  gridin.read_msh(ifs);
38 
39  n_cells = triangulation.n_active_cells();
40 
41  attach_manifold_refine();
42 }
Implements the solver of the Effect of curved boundaries (cbnd/) numerical experiment.
Definition: solver.hpp:40