pymor.discretizers.skfem.cg¶
Module Contents¶
- class pymor.discretizers.skfem.cg.AdvectionOperator(basis, advection_function, dirichlet_dofs=None, dirichlet_clear_diag=False, solver=None, name=None)[source]¶
Bases:
SKFemBilinearFormOperatorBase class for operators which assemble into a
NumpyMatrixOperator.- sparse[source]¶
Trueif the operator assembles into a sparse matrix,Falseif the operator assembles into a dense matrix,Noneif unknown.
Methods
- class pymor.discretizers.skfem.cg.BoundaryDirichletFunctional(basis, dirichlet_data, dirichlet_dofs=None, name=None)[source]¶
Bases:
pymor.operators.numpy.NumpyMatrixBasedOperatorBase class for operators which assemble into a
NumpyMatrixOperator.
- class pymor.discretizers.skfem.cg.DiffusionOperator(basis, diffusion_function, dirichlet_dofs=None, dirichlet_clear_diag=False, solver=None, name=None)[source]¶
Bases:
SKFemBilinearFormOperatorBase class for operators which assemble into a
NumpyMatrixOperator.- sparse[source]¶
Trueif the operator assembles into a sparse matrix,Falseif the operator assembles into a dense matrix,Noneif unknown.
Methods
- class pymor.discretizers.skfem.cg.L2Functional(basis, function, dirichlet_dofs=None, dirichlet_data=None, name=None)[source]¶
Bases:
SKFemLinearFormOperatorBase class for operators which assemble into a
NumpyMatrixOperator.- sparse[source]¶
Trueif the operator assembles into a sparse matrix,Falseif the operator assembles into a dense matrix,Noneif unknown.
Methods
- class pymor.discretizers.skfem.cg.L2ProductOperator(basis, dirichlet_dofs=None, dirichlet_clear_diag=False, coefficient_function=None, solver=None, name=None)[source]¶
Bases:
SKFemBilinearFormOperatorBase class for operators which assemble into a
NumpyMatrixOperator.- sparse[source]¶
Trueif the operator assembles into a sparse matrix,Falseif the operator assembles into a dense matrix,Noneif unknown.
Methods
- class pymor.discretizers.skfem.cg.SKFemBilinearFormOperator(basis, dirichlet_dofs=None, dirichlet_clear_diag=False, solver=None, name=None)[source]¶
Bases:
pymor.operators.numpy.NumpyMatrixBasedOperatorBase class for operators which assemble into a
NumpyMatrixOperator.- sparse[source]¶
Trueif the operator assembles into a sparse matrix,Falseif the operator assembles into a dense matrix,Noneif unknown.
Methods
- class pymor.discretizers.skfem.cg.SKFemLinearFormOperator(basis, dirichlet_dofs=None, name=None)[source]¶
Bases:
pymor.operators.numpy.NumpyMatrixBasedOperatorBase class for operators which assemble into a
NumpyMatrixOperator.
- class pymor.discretizers.skfem.cg.SKFemVisualizer(space, basis)[source]¶
Bases:
pymor.core.base.ImmutableObjectBase class for immutable objects in pyMOR.
Instances of
ImmutableObjectare immutable in the sense that after execution of__init__, any modification of a non-private attribute will raise an exception.Warning
For instances of
ImmutableObject, the result of member function calls should be completely determined by the function’s arguments together with the object’s__init__arguments and the current state of pyMOR’s globaldefaults.While, in principle, you are allowed to modify private members after instance initialization, this should never affect the outcome of future method calls. In particular, if you update any internal state after initialization, you have to ensure that this state is not affected by possible changes of the global
defaults.Methods
- pymor.discretizers.skfem.cg.discretize_stationary_cg(analytical_problem, diameter=None, mesh_type=None, element=None, preassemble=True, solver=None)[source]¶
Discretizes a
StationaryProblemwith finite elements using scikit-fem.- Parameters:
analytical_problem – The
StationaryProblemto discretize.diameter – If not
None,diameteris passed as an argument to thedomain_discretizer.mesh_type – If not
None, askfem.Meshto be used for discretizing the domain ofanalytical_problem.element – If not
None, theskfem.Elementto be used for building the finite element space. IfNone,mesh.elem()is used.preassemble – If
True, preassemble all operators in the resultingModel.solver – The
Solverto be used.
- Returns:
m – The
Modelthat has been generated.data – Dictionary with the following entries:
- mesh:
The generated
skfem.Mesh.- basis:
The generated
skfem.Basis.- boundary_facets:
Dict of
boundary_facetsofmeshper boundary type.- dirichlet_dofs:
DOFs of the
skfem.Basisassociated with the Dirichlet boundary.- unassembled_m:
In case
preassembleisTrue, the generatedModelbefore preassembling operators.