Logbook  (07-04-2025)
Static problems
project_PSI_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 ProjectPsiToB_H__
13 #define ProjectPsiToB_H__
14 
15 #include "project_Hgrad_to_Hdiv.hpp"
16 
17 namespace StaticScalarSolver {
103 template<int dim, int stage = 1>
104 class ProjectPSItoB : public ProjectHgradToHdiv<dim, stage>
105 {
106 public:
107  ProjectPSItoB() = delete;
153  ProjectPSItoB(unsigned int p,
154  unsigned int mapping_degree,
155  const Triangulation<dim>& triangulation_PSI,
156  const DoFHandler<dim>& dof_handler_PSI,
157  const Vector<double>& solution_PSI,
158  std::string fname = "B",
159  const Function<dim>* exact_solution = nullptr,
160  bool axisymmetric = false,
161  bool print_time_tables = false,
162  bool project_exact_solution = false,
163  bool log_cg_convergence = false,
164  bool write_higher_order_cells = false)
165  : ProjectHgradToHdiv<dim, stage>(p,
166  mapping_degree,
167  triangulation_PSI,
168  dof_handler_PSI,
169  solution_PSI,
170  fname,
171  exact_solution,
172  axisymmetric,
173  false,
174  print_time_tables,
175  project_exact_solution,
176  log_cg_convergence,
177  write_higher_order_cells)
178  {
179  }
180 };
181 
182 } // namespace StaticScalarSolver
183 
184 #endif
Computes the magnetic field as a negative gradient of the total scalar magnetic potential,...
ProjectPSItoB(unsigned int p, unsigned int mapping_degree, const Triangulation< dim > &triangulation_PSI, const DoFHandler< dim > &dof_handler_PSI, const Vector< double > &solution_PSI, std::string fname="B", const Function< dim > *exact_solution=nullptr, bool axisymmetric=false, bool print_time_tables=false, bool project_exact_solution=false, bool log_cg_convergence=false, bool write_higher_order_cells=false)
The only constructor.