GenericAdaptiveVariationalSolver¶
-
class
dolfin.cpp.fem.GenericAdaptiveVariationalSolver(*args, **kwargs)¶ Bases:
dolfin.cpp.common.VariableAn 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 meshParameters: const Mesh > mesh (std::shared_ptr<) – Return type: void
-
adaptive_data()¶ Return stored adaptive data Returns std::vector<
Parameters> The data stored in the adaptive loopReturn 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 uParameters: - & M (Form) –
- const Function > u (std::shared_ptr<) –
Return type: double
-
extract_bcs()¶ Extract the boundary conditions for the primal problem. Must be overloaded in subclass. Returns std::vector<
DirichletBC> The primal boundary conditionsReturn 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) – Return type: 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
-