petsc4py.PETSc.DualSpace#
- class petsc4py.PETSc.DualSpace#
Bases:
Object
Dual space to a linear space.
Enumerations
The dual space types.
Methods Summary
create
([comm])Create an empty
DualSpace
object.destroy
()Destroy the
DualSpace
object.Create a duplicate
DualSpace
object that is not set up.getDM
()Return the
DM
representing the reference cell of aDualSpace
.Return the dimension of the dual space.
Return the i-th basis functional in the dual space.
Return the interior dimension of the dual space.
Return whether the element is continuous.
Return the tensor nature of the dual space.
Return the trimmed nature of the dual space.
Return the number of components for this space.
Return the number of degrees of freedom for each spatial dimension.
getOrder
()Return the order of the dual space.
getType
()Return the type of the dual space object.
setDM
(dm)Set the
DM
representing the reference cell.setLagrangeContinuity
(continuous)Indicate whether the element is continuous.
setLagrangeTensor
(tensor)Set the tensor nature of the dual space.
setLagrangeTrimmed
(trimmed)Set the trimmed nature of the dual space.
setNumComponents
(nc)Set the number of components for this space.
setOrder
(order)Set the order of the dual space.
setSimpleDimension
(dim)Set the number of functionals in the dual space basis.
setSimpleFunctional
(func, functional)Set the given basis element for this dual space.
setType
(dualspace_type)Build a particular type of dual space.
setUp
()Construct a basis for a
DualSpace
.view
([viewer])View a
DualSpace
.Methods Documentation
- create(comm=None)#
Create an empty
DualSpace
object.Collective.
The type can then be set with
setType
.- Parameters:
comm (Comm | None) – MPI communicator, defaults to
Sys.getDefaultComm
.- Return type:
See also
- destroy()#
Destroy the
DualSpace
object.Collective.
See also
Source code at petsc4py/PETSc/Space.pyx:635
- Return type:
- duplicate()#
Create a duplicate
DualSpace
object that is not set up.Collective.
See also
Source code at petsc4py/PETSc/Space.pyx:648
- Return type:
- getDM()#
Return the
DM
representing the reference cell of aDualSpace
.Not collective.
See also
Source code at petsc4py/PETSc/Space.pyx:661
- Return type:
- getDimension()#
Return the dimension of the dual space.
Not collective.
The dimension of the dual space, i.e. the number of basis functionals.
See also
Source code at petsc4py/PETSc/Space.pyx:692
- Return type:
- getFunctional(i)#
Return the i-th basis functional in the dual space.
Not collective.
See also
- getInteriorDimension()#
Return the interior dimension of the dual space.
Not collective.
The interior dimension of the dual space, i.e. the number of basis functionals assigned to the interior of the reference domain.
See also
Source code at petsc4py/PETSc/Space.pyx:842
- Return type:
- getLagrangeContinuity()#
Return whether the element is continuous.
Not collective.
Source code at petsc4py/PETSc/Space.pyx:859
- Return type:
- getLagrangeTensor()#
Return the tensor nature of the dual space.
Not collective.
Source code at petsc4py/PETSc/Space.pyx:891
- Return type:
- getLagrangeTrimmed()#
Return the trimmed nature of the dual space.
Not collective.
Source code at petsc4py/PETSc/Space.pyx:923
- Return type:
- getNumComponents()#
Return the number of components for this space.
Not collective.
Source code at petsc4py/PETSc/Space.pyx:708
- Return type:
- getNumDof()#
Return the number of degrees of freedom for each spatial dimension.
Not collective.
See also
Source code at petsc4py/PETSc/Space.pyx:806
- Return type:
- getOrder()#
Return the order of the dual space.
Not collective.
See also
Source code at petsc4py/PETSc/Space.pyx:774
- Return type:
- getType()#
Return the type of the dual space object.
Not collective.
See also
Source code at petsc4py/PETSc/Space.pyx:740
- Return type:
- setLagrangeContinuity(continuous)#
Indicate whether the element is continuous.
Not collective.
- setLagrangeTensor(tensor)#
Set the tensor nature of the dual space.
Not collective.
- Parameters:
tensor (bool) – Whether the dual space has tensor layout (vs. simplicial).
- Return type:
- setLagrangeTrimmed(trimmed)#
Set the trimmed nature of the dual space.
Not collective.
- Parameters:
trimmed (bool) – Whether the dual space represents to dual basis of a trimmed polynomial space (e.g. Raviart-Thomas and higher order / other form degree variants).
- Return type:
- setNumComponents(nc)#
Set the number of components for this space.
Logically collective.
- setOrder(order)#
Set the order of the dual space.
Not collective.
See also
- setSimpleDimension(dim)#
Set the number of functionals in the dual space basis.
Logically collective.
See also
- setSimpleFunctional(func, functional)#
Set the given basis element for this dual space.
Not collective.
- Parameters:
- Return type:
See also
- setType(dualspace_type)#
Build a particular type of dual space.
Collective.
See also
- setUp()#
Construct a basis for a
DualSpace
.Collective.
See also
Source code at petsc4py/PETSc/Space.pyx:581
- Return type: