class dolfin.cpp.fem.GenericAdaptiveVariationalSolver(*args, **kwargs)

An abstract class for goal-oriented adaptive solution of variational problems.

adapt_problem()

Adapt the problem to other mesh. Must be overloaded in subclass. Arguments mesh (Mesh ) The other mesh

Parameters: const Mesh > mesh (std::shared_ptr<) – void
adaptive_data()

Return stored adaptive data Returns std::vector<Parameters > The data stored in the adaptive loop

Return type: std::vector< std::shared_ptr< Parameters > >
static default_parameters()
evaluate_goal()

Evaluate the goal functional. Must be overloaded in subclass. Arguments M (Form ) The functional to be evaluated u (Function ) The function of which to evaluate the functional Returns double The value of M evaluated at u

Parameters: & M (Form) – const Function > u (std::shared_ptr<) – double
extract_bcs()

Extract the boundary conditions for the primal problem. Must be overloaded in subclass. Returns std::vector<DirichletBC > The primal boundary conditions

Return type: std::vector< std::shared_ptr< const DirichletBC > >
solve()

Solve such that the functional error is less than the given tolerance. Note that each call to solve is based on the leaf-node of the variational problem Arguments tol (double) The error tolerance

Parameters: double tol (const) – void
solve_primal()

Solve the primal problem. Must be overloaded in subclass. Returns:cpp:any:Function The solution to the primal problem

Return type: std::shared_ptr< const Function >
summary()

Present summary of all adaptive data and parameters.

Return type: void
thisown

The membership flag