Logbook  (07-04-2025)
Static problems
project_PHI_to_E.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 ProjectPhiToE_H__
13 #define ProjectPhiToE_H__
14 
15 #include "project_Hgrad_to_Hcurl.hpp"
16 
17 namespace StaticScalarSolver {
99 template<int dim, int stage = 1>
100 class ProjectPHItoE : public ProjectHgradToHcurl<dim, stage>
101 {
102 public:
103  ProjectPHItoE() = delete;
148  ProjectPHItoE(unsigned int p,
149  unsigned int mapping_degree,
150  const Triangulation<dim>& triangulation_PHI,
151  const DoFHandler<dim>& dof_handler_PHI,
152  const Vector<double>& solution_PHI,
153  std::string fname = "E",
154  const Function<dim>* exact_solution = nullptr,
155  bool axisymmetric = false,
156  bool print_time_tables = false,
157  bool project_exact_solution = false,
158  bool log_cg_convergence = false,
159  bool write_higher_order_cells = false)
160  : ProjectHgradToHcurl<dim, stage>(p,
161  mapping_degree,
162  triangulation_PHI,
163  dof_handler_PHI,
164  solution_PHI,
165  fname,
166  exact_solution,
167  axisymmetric,
168  false,
169  print_time_tables,
170  project_exact_solution,
171  log_cg_convergence,
172  write_higher_order_cells)
173  {
174  }
175 };
176 
177 } // namespace StaticScalarSolver
178 
179 #endif
Computes the electric field as a negative gradient of the scalar electric potential,...
ProjectPHItoE(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="E", 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.