DUNE-ACFEM (unstable)

Dune::ACFem::BasicFemScheme Class Referenceabstract

Abstract non-adaptive basic FEM scheme. More...

#include <dune/acfem/algorithms/femschemeinterface.hh>

Public Member Functions

virtual void initialize ()=0
 initialize the solution
 
virtual std::string name () const =0
 name of the Fem Scheme
 
virtual void solve (bool forceMatrixAssembling=true)=0
 Solve the system. More...
 
virtual int output ()=0
 data I/O, return -1 if no data has been written otherwise the sequence number of the file
 
virtual bool converged () const =0
 check whether solver has converged
 
virtual double residual () const =0
 calculate residual (in small l^2)
 
virtual double error () const =0
 calculate L2/H1 error
 
virtual size_t size () const =0
 return some measure about the number of DOFs in use
 

Detailed Description

Abstract non-adaptive basic FEM scheme.

Used as solver black-box, so to say.

Member Function Documentation

◆ solve()

virtual void Dune::ACFem::BasicFemScheme::solve ( bool  forceMatrixAssembling = true)
pure virtual

Solve the system.

Parameters
[in]forceMatrixAssemblingIf the solve step requires assembling of matrices, then by default the application may give a hint to the FemScheme that this might not be necessary. The actual implementation can then decide if it caches the assembled matrix from the last solve() invocation and reuses it. If forceAssemble is true then the implementation has to discard and cached assembled matrices and recompute them.

Implemented in Dune::ACFem::ParabolicFemScheme< DiscreteFunction, TimeProvider, ImplicitModel, ExplicitModel, InitialValue, RHSFunctional, QuadratureTraits >, and Dune::ACFem::EllipticFemScheme< DiscreteFunction, Model, InitialGuess, RHSFunctional >.


The documentation for this class was generated from the following file:
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.80.0 (Apr 21, 22:30, 2024)