PRISMS-PF Manual v3.0-pre
|
#include <AdaptiveRefinement.h>
Public Member Functions | |
AdaptiveRefinement (const userInputParameters< dim > &_userInputs, parallel::distributed::Triangulation< dim > &_triangulation, std::vector< Field< dim > > &_fields, std::vector< dealii::LinearAlgebra::distributed::Vector< double > * > &_solutionSet, std::vector< parallel::distributed::SolutionTransfer< dim, dealii::LinearAlgebra::distributed::Vector< double > > * > &_soltransSet, std::vector< FESystem< dim > * > &_FESet, std::vector< DoFHandler< dim > * > &_dofHandlersSet_nonconst, std::vector< const AffineConstraints< double > * > &_constraintsDirichletSet, std::vector< const AffineConstraints< double > * > &_constraintsOtherSet) | |
void | do_adaptive_refinement (unsigned int _currentIncrement) |
void | refine_grid () |
Protected Member Functions | |
void | adaptive_refinement_criterion () |
A class that handles the determination and application of AMR criterion.
AdaptiveRefinement< dim, degree >::AdaptiveRefinement | ( | const userInputParameters< dim > & | _userInputs, |
parallel::distributed::Triangulation< dim > & | _triangulation, | ||
std::vector< Field< dim > > & | _fields, | ||
std::vector< dealii::LinearAlgebra::distributed::Vector< double > * > & | _solutionSet, | ||
std::vector< parallel::distributed::SolutionTransfer< dim, dealii::LinearAlgebra::distributed::Vector< double > > * > & | _soltransSet, | ||
std::vector< FESystem< dim > * > & | _FESet, | ||
std::vector< DoFHandler< dim > * > & | _dofHandlersSet_nonconst, | ||
std::vector< const AffineConstraints< double > * > & | _constraintsDirichletSet, | ||
std::vector< const AffineConstraints< double > * > & | _constraintsOtherSet | ||
) |
Default constructor.
|
protected |
Mark cells to be coarsened or refined based on the specified AMR criterion.
void AdaptiveRefinement< dim, degree >::do_adaptive_refinement | ( | unsigned int | _currentIncrement | ) |
Perform the adaptive refinement based on the specified AMR criterion. Also apply constraints when in the 0th timestep.
void AdaptiveRefinement< dim, degree >::refine_grid | ( | ) |
Refine the triangulation and transfer the solution.