ffc.errorcontrol package¶
Submodules¶
ffc.errorcontrol.errorcontrol module¶
This module provides compilation of forms required for goal-oriented error control
-
ffc.errorcontrol.errorcontrol.
compile_with_error_control
(forms, object_names, reserved_objects, prefix, parameters)[source]¶ Compile forms and additionally generate and compile forms required for performing goal-oriented error control
For linear problems, the input forms should be a bilinear form (a) and a linear form (L) specifying the variational problem and additionally a linear form (M) specifying the goal functional.
For nonlinear problems, the input should be linear form (F) and a functional (M) specifying the goal functional.
Arguments
- forms (tuple)
- Three (linear case) or two (nonlinear case) forms specifying the primal problem and the goal
- object_names (dict)
- Map from object ids to object names
- reserved_names (dict)
- Map from reserved object names to object ids
- prefix (string)
- Basename of header file
- parameters (dict)
- Parameters for form compilation
ffc.errorcontrol.errorcontrolgenerators module¶
This module provides an abstract ErrorControlGenerator class for generating forms required for goal-oriented error control and a realization of this: UFLErrorControlGenerator for handling pure UFL forms.
-
class
ffc.errorcontrol.errorcontrolgenerators.
ErrorControlGenerator
(module, F, M, u)[source]¶ -
cell_residual
()[source]¶ Generate and return (bilinear, linear) forms defining linear variational problem for the strong cell residual
-
dual_forms
()[source]¶ Generate and return (bilinear, linear) forms defining linear dual variational problem
-
facet_residual
()[source]¶ Generate and return (bilinear, linear) forms defining linear variational problem for the strong facet residual(s)
-
-
class
ffc.errorcontrol.errorcontrolgenerators.
UFLErrorControlGenerator
(F, M, u)[source]¶ Bases:
ffc.errorcontrol.errorcontrolgenerators.ErrorControlGenerator
This class provides a realization of ErrorControlGenerator for use with pure UFL forms
Module contents¶
This module contains functionality for working with automated goal-oriented error control. In particular it offers the following function:
compile_with_error_control - Compile forms and generate error control forms