HAdaptivity< Assembler > Class Template Reference#
|
DiFfRG
|
Public Member Functions |
Protected Attributes |
Private Types |
Static Private Attributes |
List of all members
DiFfRG::HAdaptivity< Assembler > Class Template Reference
Implement a simple interface to do all adaptivity tasks, i.e. solution transfer, reinit of dofHandlers, etc. More...
#include <h_adaptivity.hh>
Inheritance diagram for DiFfRG::HAdaptivity< Assembler >:
Public Member Functions | |
| HAdaptivity (Assembler &assembler, const JSONValue &json) | |
| virtual | ~HAdaptivity ()=default |
| virtual bool | operator() (const double t, VectorType &sol) override |
| Check if an adaptation step should be done and tranfer the given solution to the new mesh. | |
| virtual bool | adapt (VectorType &solution) override |
| Force an adaptation and transfer the solution sol to the new mes. | |
Public Member Functions inherited from DiFfRG::AbstractAdaptor< Assembler::Discretization::VectorType > | |
| virtual bool | operator() (const double t, VectorType &sol)=0 |
| Check if an adaptation step should be done and tranfer the given solution to the new mesh. | |
| virtual bool | adapt (VectorType &solution)=0 |
| Force an adaptation and transfer the solution sol to the new mes. | |
Protected Attributes | |
| Assembler & | assembler |
| Discretization & | discretization |
| VectorType | indicator |
| double | last_adapt |
| double | adapt_t |
| double | adapt_dt |
| double | adapt_upper |
| double | adapt_lower |
| uint | adapt_level |
Private Types | |
| using | Discretization = typename Assembler::Discretization |
| using | VectorType = typename Discretization::VectorType |
Static Private Attributes | |
| static constexpr uint | dim = Discretization::dim |
Detailed Description
template<typename Assembler>
class DiFfRG::HAdaptivity< Assembler >
class DiFfRG::HAdaptivity< Assembler >
Implement a simple interface to do all adaptivity tasks, i.e. solution transfer, reinit of dofHandlers, etc.
- Template Parameters
-
Assembler The used assembler should implement the methods refinement_indicator and reinit
Member Typedef Documentation
◆ Discretization
template<typename Assembler >
|
private |
◆ VectorType
template<typename Assembler >
|
private |
Constructor & Destructor Documentation
◆ HAdaptivity()
template<typename Assembler >
|
inline |
◆ ~HAdaptivity()
template<typename Assembler >
|
virtualdefault |
Member Function Documentation
◆ adapt()
template<typename Assembler >
|
inlineoverridevirtual |
Force an adaptation and transfer the solution sol to the new mes.
- Parameters
-
solution to be transferred
◆ operator()()
template<typename Assembler >
|
inlineoverridevirtual |
Check if an adaptation step should be done and tranfer the given solution to the new mesh.
- Parameters
-
t Current time; at adapt_dt time distances we perform an adaptation sol Current solution
- Returns
- true if adapation has happened, false otherwise
Member Data Documentation
◆ adapt_dt
template<typename Assembler >
|
protected |
◆ adapt_level
template<typename Assembler >
|
protected |
◆ adapt_lower
template<typename Assembler >
|
protected |
◆ adapt_t
template<typename Assembler >
|
protected |
◆ adapt_upper
template<typename Assembler >
|
protected |
◆ assembler
template<typename Assembler >
|
protected |
◆ dim
template<typename Assembler >
|
staticconstexprprivate |
◆ discretization
template<typename Assembler >
|
protected |
◆ indicator
template<typename Assembler >
|
protected |
◆ last_adapt
template<typename Assembler >
|
protected |
The documentation for this class was generated from the following file:
- /home/runner/work/DiFfRG_current/DiFfRG_current/DiFfRG/include/DiFfRG/discretization/mesh/h_adaptivity.hh
Generated by
Public Member Functions inherited from