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