PRISMS-PF Manual v3.0-pre
Loading...
Searching...
No Matches
AdaptiveRefinement.h
1#ifndef INCLUDE_ADAPTIVEREFINEMENT_H_
2#define INCLUDE_ADAPTIVEREFINEMENT_H_
3
4#include <deal.II/base/quadrature_lib.h>
5#include <deal.II/distributed/grid_refinement.h>
6#include <deal.II/distributed/solution_transfer.h>
7#include <deal.II/distributed/tria.h>
8#include <deal.II/dofs/dof_handler.h>
9#include <deal.II/fe/fe_system.h>
10#include <deal.II/fe/fe_values.h>
11#include <deal.II/lac/la_parallel_vector.h>
12
13#include <core/fields.h>
14#include <core/userInputParameters.h>
15
16using namespace dealii;
17
21template <int dim, int degree>
23{
24public:
29 const userInputParameters<dim> &_userInputs,
30 parallel::distributed::Triangulation<dim> &_triangulation,
31 std::vector<Field<dim>> &_fields,
32 std::vector<dealii::LinearAlgebra::distributed::Vector<double> *> &_solutionSet,
33 std::vector<parallel::distributed::SolutionTransfer<
34 dim,
35 dealii::LinearAlgebra::distributed::Vector<double>> *> &_soltransSet,
36 std::vector<FESystem<dim> *> &_FESet,
37 std::vector<DoFHandler<dim> *> &_dofHandlersSet_nonconst,
38 std::vector<const AffineConstraints<double> *> &_constraintsDirichletSet,
39 std::vector<const AffineConstraints<double> *> &_constraintsOtherSet);
40
45 void
46 do_adaptive_refinement(unsigned int _currentIncrement);
47
51 void
53
54protected:
58 void
60
61private:
62 userInputParameters<dim> userInputs;
63
64 parallel::distributed::Triangulation<dim> &triangulation;
65
66 std::vector<Field<dim>> &fields;
67
68 std::vector<dealii::LinearAlgebra::distributed::Vector<double> *> &solutionSet;
69
70 std::vector<parallel::distributed::SolutionTransfer<
71 dim,
72 dealii::LinearAlgebra::distributed::Vector<double>> *> &soltransSet;
73
74 std::vector<FESystem<dim> *> &FESet;
75
76 std::vector<DoFHandler<dim> *> &dofHandlersSet_nonconst;
77
78 std::vector<const AffineConstraints<double> *> &constraintsDirichletSet;
79
80 std::vector<const AffineConstraints<double> *> &constraintsOtherSet;
81};
82
83#endif
Definition AdaptiveRefinement.h:23
void do_adaptive_refinement(unsigned int _currentIncrement)
Definition AdaptiveRefinement.cc:31
void adaptive_refinement_criterion()
Definition AdaptiveRefinement.cc:50
void refine_grid()
Definition AdaptiveRefinement.cc:155
Field class that handles the attributes of each field.
Definition fields.h:16
Definition userInputParameters.h:47