PRISMS-PF Manual v3.0-pre
Loading...
Searching...
No Matches
AdaptiveRefinement< dim, degree > Class Template Reference

#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 ()
 

Detailed Description

template<int dim, int degree>
class AdaptiveRefinement< dim, degree >

A class that handles the determination and application of AMR criterion.

Constructor & Destructor Documentation

◆ AdaptiveRefinement()

template<int dim, int degree>
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.

Member Function Documentation

◆ adaptive_refinement_criterion()

template<int dim, int degree>
void AdaptiveRefinement< dim, degree >::adaptive_refinement_criterion ( )
protected

Mark cells to be coarsened or refined based on the specified AMR criterion.

◆ do_adaptive_refinement()

template<int dim, int degree>
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.

◆ refine_grid()

template<int dim, int degree>
void AdaptiveRefinement< dim, degree >::refine_grid ( )

Refine the triangulation and transfer the solution.


The documentation for this class was generated from the following files: