DiFfRG
|
Implement a simple interface to do all adaptivity tasks, i.e. solution transfer, reinit of dofHandlers, etc. More...
#include <h_adaptivity.hh>
Public Member Functions | |
HAdaptivity (Assembler &assembler, const JSONValue &json) | |
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. | |
![]() | |
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 |
Implement a simple interface to do all adaptivity tasks, i.e. solution transfer, reinit of dofHandlers, etc.
Assembler | The used assembler should implement the methods refinement_indicator and reinit |
|
private |
|
private |
|
inline |
|
inlineoverridevirtual |
Force an adaptation and transfer the solution sol to the new mes.
solution | to be transferred |
|
inlineoverridevirtual |
Check if an adaptation step should be done and tranfer the given solution to the new mesh.
t | Current time; at adapt_dt time distances we perform an adaptation |
sol | Current solution |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticconstexprprivate |
|
protected |
|
protected |
|
protected |