petsc4py.PETSc.DualSpace¶
- class petsc4py.PETSc.DualSpace¶
Bases:
ObjectDual space to a linear space.
Enumerations
Methods Summary
create([comm])Create an empty
DualSpaceobject.destroy()Destroy the
DualSpaceobject.Create a duplicate
DualSpaceobject that is not set up.getDM()Return the
DMrepresenting 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
DMrepresenting 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.viewFromOptions(name[, obj])View a
DualSpacebased on values in the options database.Methods Documentation
- create(comm=None)¶
Create an empty
DualSpaceobject.Collective.
The type can then be set with
setType.- Parameters:
comm (Comm | None) – MPI communicator, defaults to
Sys.getDefaultComm.- Return type:
See also
petsc.PetscDualSpaceCreate
- destroy()¶
Destroy the
DualSpaceobject.Collective.
See also
petsc.PetscDualSpaceDestroySource code at petsc4py/PETSc/Space.pyx:623
- Return type:
- duplicate()¶
Create a duplicate
DualSpaceobject that is not set up.Collective.
See also
petsc.PetscDualSpaceDuplicateSource code at petsc4py/PETSc/Space.pyx:636
- Return type:
- getDM()¶
Return the
DMrepresenting the reference cell of aDualSpace.Not collective.
See also
setDM,petsc.PetscDualSpaceGetDMSource code at petsc4py/PETSc/Space.pyx:649
- 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
petsc.PetscDualSpaceGetDimensionSource code at petsc4py/PETSc/Space.pyx:680
- Return type:
- getFunctional(i)¶
Return the i-th basis functional in the dual space.
Not collective.
See also
petsc.PetscDualSpaceGetFunctional
- 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
petsc.PetscDualSpaceGetInteriorDimensionSource code at petsc4py/PETSc/Space.pyx:826
- Return type:
- getLagrangeContinuity()¶
Return whether the element is continuous.
Not collective.
See also
setLagrangeContinuity,petsc.PetscDualSpaceLagrangeGetContinuitySource code at petsc4py/PETSc/Space.pyx:843
- Return type:
- getLagrangeTensor()¶
Return the tensor nature of the dual space.
Not collective.
See also
setLagrangeTensor,petsc.PetscDualSpaceLagrangeGetTensorSource code at petsc4py/PETSc/Space.pyx:875
- Return type:
- getLagrangeTrimmed()¶
Return the trimmed nature of the dual space.
Not collective.
See also
setLagrangeTrimmed,petsc.PetscDualSpaceLagrangeGetTrimmedSource code at petsc4py/PETSc/Space.pyx:907
- Return type:
- getNumComponents()¶
Return the number of components for this space.
See also
setNumComponents,petsc.PetscDualSpaceGetNumComponentsSource code at petsc4py/PETSc/Space.pyx:696
- Return type:
- getNumDof()¶
Return the number of degrees of freedom for each spatial dimension.
Not collective.
See also
petsc.PetscDualSpaceGetNumDofSource code at petsc4py/PETSc/Space.pyx:790
- Return type:
- getOrder()¶
Return the order of the dual space.
Not collective.
See also
setOrder,petsc.PetscDualSpaceGetOrderSource code at petsc4py/PETSc/Space.pyx:758
- Return type:
- getType()¶
Return the type of the dual space object.
Not collective.
See also
setType,petsc.PetscDualSpaceGetTypeSource code at petsc4py/PETSc/Space.pyx:724
- Return type:
- setDM(dm)¶
Set the
DMrepresenting the reference cell.Not collective.
See also
getDM,petsc.PetscDualSpaceSetDM
- setLagrangeContinuity(continuous)¶
Indicate whether the element is continuous.
Not collective.
See also
getLagrangeContinuity,petsc.PetscDualSpaceLagrangeSetContinuity
- 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:
See also
getLagrangeTensor,petsc.PetscDualSpaceLagrangeSetTensor
- 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:
See also
getLagrangeTrimmed,petsc.PetscDualSpaceLagrangeSetTrimmed
- setNumComponents(nc)¶
Set the number of components for this space.
See also
getNumComponents,petsc.PetscDualSpaceSetNumComponents
- setOrder(order)¶
Set the order of the dual space.
Not collective.
See also
getOrder,petsc.PetscDualSpaceSetOrder
- setSimpleDimension(dim)¶
Set the number of functionals in the dual space basis.
Logically collective.
See also
petsc.PetscDualSpaceSimpleSetDimension
- setSimpleFunctional(func, functional)¶
Set the given basis element for this dual space.
Not collective.
- Parameters:
- Return type:
See also
petsc.PetscDualSpaceSimpleSetFunctional
- setType(dualspace_type)¶
Build a particular type of dual space.
Collective.
See also
getType,petsc.PetscDualSpaceSetType
- setUp()¶
Construct a basis for a
DualSpace.Collective.
See also
petsc.PetscDualSpaceSetUpSource code at petsc4py/PETSc/Space.pyx:569
- Return type:
- viewFromOptions(name, obj=None)¶
View a
DualSpacebased on values in the options database.Collective.
- Parameters:
- Return type:
See also
Working with PETSc options (TODO),
petsc.PetscSpaceViewFromOptions