Logbook  (07-04-2025)
Static problems
project_Az_to_Hxy.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 ProjectAzToHxy_H__
13 #define ProjectAzToHxy_H__
14 
15 #include "project_Hgrad_to_Hcurl.hpp"
16 
17 namespace StaticScalarSolver {
95 template<int stage = 1>
96 class ProjectAzToHxy : public ProjectHgradToHcurl<2, stage>
97 {
98 public:
99  ProjectAzToHxy() = delete;
143  ProjectAzToHxy(unsigned int p,
144  unsigned int mapping_degree,
145  const Triangulation<2>& triangulation_A,
146  const DoFHandler<2>& dof_handler_A,
147  const Vector<double>& solution_A,
148  std::string fname = "Hxy",
149  const Function<2>* exact_solution = nullptr,
150  bool print_time_tables = false,
151  bool project_exact_solution = false,
152  bool log_cg_convergence = false,
153  bool write_higher_order_cells = false)
154  : ProjectHgradToHcurl<2, stage>(p,
155  mapping_degree,
156  triangulation_A,
157  dof_handler_A,
158  solution_A,
159  fname,
160  exact_solution,
161  false, // axisymmetric
162  true, // vector potential
163  print_time_tables,
164  project_exact_solution,
165  log_cg_convergence,
166  write_higher_order_cells)
167  {
168  }
169 };
170 
171 } // namespace StaticScalarSolver
172 
173 #endif
Computes the two-dimensional auxiliary field from magnetic vector potential, , i....
ProjectAzToHxy(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="Hxy", 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.