pymor.bindings.fenicsx¶
Module Contents¶
- class pymor.bindings.fenicsx.ComplexifiedFenicsxVector(real_part, imag_part)[source]¶
Bases:
pymor.vectorarrays.list.ComplexifiedVectorInterface for vectors used in conjunction with
ListVectorArray.This interface must be satisfied by the individual entries of the vector
listmanaged byListVectorArray. All interface methods have a direct counterpart in theVectorArrayinterface.Methods
- class pymor.bindings.fenicsx.FenicsxMatrixOperator(matrix, source_space, range_space, solver_options=None, name=None)[source]¶
Bases:
pymor.operators.list.LinearComplexifiedListVectorArrayOperatorBaseWraps a FEniCSx matrix as an
Operator.
- class pymor.bindings.fenicsx.FenicsxVector(impl)[source]¶
Bases:
pymor.vectorarrays.list.CopyOnWriteVectorWraps a FEniCSx vector to make it usable with ListVectorArray.
- class pymor.bindings.fenicsx.FenicsxVectorSpace(V)[source]¶
Bases:
pymor.vectorarrays.list.ComplexifiedListVectorSpaceVectorSpaceofListVectorArrays.Methods
- class pymor.bindings.fenicsx.FenicsxVisualizer(space)[source]¶
Bases:
pymor.core.base.ImmutableObjectVisualize a FEniCSx grid function.
Parameters
- space
The
FenicsVectorSpacefor which we want to visualize DOF vectors.
Methods
Visualize the provided data.
- visualize(U, title='', legend=None, filename=None, block=True, separate_colorbars=True)[source]¶
Visualize the provided data.
Parameters
- U
VectorArrayof the data to visualize (length must be 1). Alternatively, a tuple ofVectorArrayswhich will be visualized in separate windows. Iffilenameis specified, only oneVectorArraymay be provided which, however, is allowed to contain multiple vectors that will be interpreted as a time series.- title
Title of the plot.
- legend
Description of the data that is plotted. If
Uis a tuple ofVectorArrays,legendhas to be a tuple of the same length.- filename
If specified, write the data to that file.
filenameneeds to have an extension supported by FEniCS (e.g..pvd).- separate_colorbars
If
True, use separate colorbars for each subplot.- block
If
True, block execution until the plot window is closed.