Logbook  (07-04-2025)
Static problems
project_Axy_to_Bz.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 ProjectAxyToBz_H__
13 #define ProjectAxyToBz_H__
14 
15 #include "project_Hcurl_to_L2.hpp"
16 
17 namespace StaticVectorSolver {
109 template<int stage = 1>
110 class ProjectAxyToBz : public ProjectHcurlToL2<stage>
111 {
112 public:
113  ProjectAxyToBz() = delete;
114 
157  ProjectAxyToBz(unsigned int p,
158  unsigned int mapping_degree,
159  const Triangulation<2>& triangulation_A,
160  const DoFHandler<2>& dof_handler_A,
161  const Vector<double>& solution_A,
162  std::string fname = "Bz",
163  const Function<2>* exact_solution = nullptr,
164  bool print_time_tables = false,
165  bool project_exact_solution = false,
166  bool log_cg_convergence = false,
167  bool write_higher_order_cells = false)
168  : ProjectHcurlToL2<stage>(p,
169  mapping_degree,
170  triangulation_A,
171  dof_handler_A,
172  solution_A,
173  fname,
174  exact_solution,
175  print_time_tables,
176  project_exact_solution,
177  log_cg_convergence,
178  write_higher_order_cells)
179  {
180  }
181 };
182 
183 } // namespace StaticScalarSolver
184 
185 #endif
Computes an out-of-plane magnetic field, , as a scalar curl of an in-plane magnetic vector potential,...
ProjectAxyToBz(unsigned int p, unsigned int mapping_degree, const Triangulation< 2 > &triangulation_A, const DoFHandler< 2 > &dof_handler_A, const Vector< double > &solution_A, std::string fname="Bz", const Function< 2 > *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.