Logbook  (07-04-2025)
Static problems
project_A_to_B.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 ProjectAtoB_H__
13 #define ProjectAtoB_H__
14 
15 #include "project_Hcurl_to_Hdiv.hpp"
16 
17 namespace StaticVectorSolver {
105 template<int stage = 1>
106 class ProjectAtoB : public ProjectHcurlToHdiv<stage>
107 {
108 public:
109  ProjectAtoB() = delete;
110 
153  ProjectAtoB(unsigned int p,
154  unsigned int mapping_degree,
155  const Triangulation<3>& triangulation_A,
156  const DoFHandler<3>& dof_handler_A,
157  const Vector<double>& solution_A,
158  std::string fname = "B",
159  const Function<3>* exact_solution = nullptr,
160  bool print_time_tables = false,
161  bool project_exact_solution = false,
162  bool log_cg_convergence = false,
163  bool write_higher_order_cells = false)
164  : ProjectHcurlToHdiv<stage>(p,
165  mapping_degree,
166  triangulation_A,
167  dof_handler_A,
168  solution_A,
169  fname,
170  exact_solution,
171  print_time_tables,
172  project_exact_solution,
173  log_cg_convergence,
174  write_higher_order_cells)
175  {
176  }
177 };
178 
179 } // namespace StaticScalarSolver
180 
181 #endif
Computes the magnetic field as a curl of the magnetic vector potential, , i.e., .
ProjectAtoB(unsigned int p, unsigned int mapping_degree, const Triangulation< 3 > &triangulation_A, const DoFHandler< 3 > &dof_handler_A, const Vector< double > &solution_A, std::string fname="B", const Function< 3 > *exact_solution=nullptr, bool print_time_tables=false, bool project_exact_solution=false, bool log_cg_convergence=false, bool write_higher_order_cells=false)
The only constructor.