Logbook  (07-04-2025)
Static problems
project_Tz_to_Jxy.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 ProjectTzToJxy_H__
13 #define ProjectTzToJxy_H__
14 
15 #include "project_Hgrad_to_Hdiv.hpp"
16 
17 namespace StaticScalarSolver {
98 template<int stage = 1>
99 class ProjectTzToJxy : public ProjectHgradToHdiv<2, stage>
100 {
101 public:
102  ProjectTzToJxy() = delete;
144  ProjectTzToJxy(unsigned int p,
145  unsigned int mapping_degree,
146  const Triangulation<2>& triangulation_T,
147  const DoFHandler<2>& dof_handler_T,
148  const Vector<double>& solution_T,
149  std::string fname = "Jxy",
150  const Function<2>* exact_solution = nullptr,
151  bool print_time_tables = false,
152  bool project_exact_solution = false,
153  bool log_cg_convergence = false,
154  bool write_higher_order_cells = false)
155  : ProjectHgradToHdiv<2, stage>(p,
156  mapping_degree,
157  triangulation_T,
158  dof_handler_T,
159  solution_T,
160  fname,
161  exact_solution,
162  false, // axisymmetric
163  true, // vector potential
164  print_time_tables,
165  project_exact_solution,
166  log_cg_convergence,
167  write_higher_order_cells)
168  {
169  }
170 };
171 
172 } // namespace StaticScalarSolver
173 
174 #endif
Computes the two-dimensional free-current density as a vector curl of the current vector potential,...
ProjectTzToJxy(unsigned int p, unsigned int mapping_degree, const Triangulation< 2 > &triangulation_T, const DoFHandler< 2 > &dof_handler_T, const Vector< double > &solution_T, std::string fname="Jxy", 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.