petsc4py.PETSc.DS#
- class petsc4py.PETSc.DS#
Bases:
Object
Discrete System object.
Enumerations
The Discrete System types.
Methods Summary
create
([comm])Create an empty DS.
destroy
()Destroy the discrete system.
Return the number of components for each field on an evaluation point.
Return the coordinate dimension of the DS.
Return the size of the space for each field on an evaluation point.
getFieldIndex
(disc)Return the index of the given field.
Return the number of fields in the DS.
Return the spatial dimension of the DS.
Return the total number of components in this system.
Return the total size of the approximation space for this system.
getType
()Return the type of the discrete system.
setDiscretisation
(f, disc)Set the discretization object for the given field.
Set parameters in a
DS
from the options database.setType
(ds_type)Build a particular type of a discrete system.
setUp
()Construct data structures for the discrete system.
view
([viewer])View a discrete system.
Methods Documentation
- create(comm=None)#
Create an empty DS.
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 discrete system.
Collective.
See also
Source code at petsc4py/PETSc/DS.pyx:40
- Return type:
- getComponents()#
Return the number of components for each field on an evaluation point.
Not collective.
See also
Source code at petsc4py/PETSc/DS.pyx:246
- Return type:
- getCoordinateDimension()#
Return the coordinate dimension of the DS.
Not collective.
The coordinate dimension of the
DS
is the dimension of the space into which the discretiaztions are embedded.See also
Source code at petsc4py/PETSc/DS.pyx:153
- Return type:
- getDimensions()#
Return the size of the space for each field on an evaluation point.
Not collective.
See also
Source code at petsc4py/PETSc/DS.pyx:231
- Return type:
- getFieldIndex(disc)#
Return the index of the given field.
Not collective.
See also
- getNumFields()#
Return the number of fields in the DS.
Not collective.
See also
Source code at petsc4py/PETSc/DS.pyx:170
- Return type:
- getSpatialDimension()#
Return the spatial dimension of the DS.
Not collective.
The spatial dimension of the
DS
is the topological dimension of the discretizations.See also
Source code at petsc4py/PETSc/DS.pyx:136
- Return type:
- getTotalComponents()#
Return the total number of components in this system.
Not collective.
See also
Source code at petsc4py/PETSc/DS.pyx:217
- Return type:
- getTotalDimensions()#
Return the total size of the approximation space for this system.
Not collective.
See also
Source code at petsc4py/PETSc/DS.pyx:203
- Return type:
- getType()#
Return the type of the discrete system.
Not collective.
See also
Source code at petsc4py/PETSc/DS.pyx:95
- Return type:
- setDiscretisation(f, disc)#
Set the discretization object for the given field.
Not collective.
- Parameters:
- Return type:
See also
- setFromOptions()#
Set parameters in a
DS
from the options database.Collective.
Source code at petsc4py/PETSc/DS.pyx:109
- Return type:
- setType(ds_type)#
Build a particular type of a discrete system.
Collective.
See also
- setUp()#
Construct data structures for the discrete system.
Collective.
See also
Source code at petsc4py/PETSc/DS.pyx:121
- Return type:
- view(viewer=None)#
View a discrete system.
Collective.
See also