Logbook  (07-04-2025)
Static problems
project_PSI_to_H.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 ProjectPsiToH_H__
13 #define ProjectPsiToH_H__
14 
15 #include "project_Hgrad_to_Hcurl.hpp"
16 
17 namespace StaticScalarSolver {
96 template<int dim, int stage = 1>
97 class ProjectPSItoH : public ProjectHgradToHcurl<dim, stage>
98 {
99 public:
100  ProjectPSItoH() = delete;
145  ProjectPSItoH(unsigned int p,
146  unsigned int mapping_degree,
147  const Triangulation<dim>& triangulation_PSI,
148  const DoFHandler<dim>& dof_handler_PSI,
149  const Vector<double>& solution_PSI,
150  std::string fname = "H",
151  const Function<dim>* exact_solution = nullptr,
152  bool axisymmetric = false,
153  bool print_time_tables = false,
154  bool project_exact_solution = false,
155  bool log_cg_convergence = false,
156  bool write_higher_order_cells = false)
157  : ProjectHgradToHcurl<dim, stage>(p,
158  mapping_degree,
159  triangulation_PSI,
160  dof_handler_PSI,
161  solution_PSI,
162  fname,
163  exact_solution,
164  axisymmetric,
165  false,
166  print_time_tables,
167  project_exact_solution,
168  log_cg_convergence,
169  write_higher_order_cells)
170  {
171  }
172 };
173 
174 } // namespace StaticScalarSolver
175 
176 #endif
Computes the auxiliary vector field as a negative gradient of the total scalar magnetic potential,...
ProjectPSItoH(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="H", 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.