Logbook  (07-04-2025)
Static problems
project_PHI_to_D.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 ProjectPhiToD_H__
13 #define ProjectPhiToD_H__
14 
15 #include "project_Hgrad_to_Hdiv.hpp"
16 
17 namespace StaticScalarSolver {
105 template<int dim, int stage = 1>
106 class ProjectPHItoD : public ProjectHgradToHdiv<dim, stage>
107 {
108 public:
109  ProjectPHItoD() = delete;
155  ProjectPHItoD(unsigned int p,
156  unsigned int mapping_degree,
157  const Triangulation<dim>& triangulation_PHI,
158  const DoFHandler<dim>& dof_handler_PHI,
159  const Vector<double>& solution_PHI,
160  std::string fname = "D",
161  const Function<dim>* exact_solution = nullptr,
162  bool axisymmetric = false,
163  bool print_time_tables = false,
164  bool project_exact_solution = false,
165  bool log_cg_convergence = false,
166  bool write_higher_order_cells = false)
167  : ProjectHgradToHdiv<dim, stage>(p,
168  mapping_degree,
169  triangulation_PHI,
170  dof_handler_PHI,
171  solution_PHI,
172  fname,
173  exact_solution,
174  axisymmetric,
175  false,
176  print_time_tables,
177  project_exact_solution,
178  log_cg_convergence,
179  write_higher_order_cells)
180  {
181  }
182 };
183 
184 } // namespace StaticScalarSolver
185 
186 #endif
Computes the displacement field, , as a negative gradient of the electric potential,...
ProjectPHItoD(unsigned int p, unsigned int mapping_degree, const Triangulation< dim > &triangulation_PHI, const DoFHandler< dim > &dof_handler_PHI, const Vector< double > &solution_PHI, std::string fname="D", 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.