Logbook  (07-04-2025)
Static problems
project_T_to_J.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 ProjectTtoJ_H__
13 #define ProjectTtoJ_H__
14 
15 #include "project_Hcurl_to_Hdiv.hpp"
16 
17 using namespace StaticVectorSolver;
18 
19 namespace StaticVectorSolver {
105 template<int stage = 1>
106 class ProjectTtoJ : public ProjectHcurlToHdiv<stage>
107 {
108 public:
109  ProjectTtoJ() = delete;
110 
152  ProjectTtoJ(unsigned int p,
153  unsigned int mapping_degree,
154  const Triangulation<3>& triangulation_T,
155  const DoFHandler<3>& dof_handler_T,
156  const Vector<double>& solution_T,
157  std::string fname = "J",
158  const Function<3>* exact_solution = nullptr,
159  bool print_time_tables = false,
160  bool project_exact_solution = false,
161  bool log_cg_convergence = false,
162  bool write_higher_order_cells = false)
163  : ProjectHcurlToHdiv<stage>(p,
164  mapping_degree,
165  triangulation_T,
166  dof_handler_T,
167  solution_T,
168  fname,
169  exact_solution,
170  print_time_tables,
171  project_exact_solution,
172  log_cg_convergence,
173  write_higher_order_cells)
174  {
175  }
176 };
177 
178 } // namespace StaticScalarSolver
179 
180 #endif
Computes the volume free-current density as a curl of the current vector potential,...
ProjectTtoJ(unsigned int p, unsigned int mapping_degree, const Triangulation< 3 > &triangulation_T, const DoFHandler< 3 > &dof_handler_T, const Vector< double > &solution_T, std::string fname="J", const Function< 3 > *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.