petsc4py.PETSc.DMPlexTransform#
- class petsc4py.PETSc.DMPlexTransform#
Bases:
ObjectMesh transformations.
Methods Summary
apply(dm)Apply a mesh transformation.
create([comm])Create a mesh transformation.
Return a label for cells whose source cell was split.
destroy()Destroy a mesh transformation.
Return the label marking the points to transform.
getSourcePoint(pNew)Return the source point of a point of the transformed mesh.
getType()Return the transformation type name.
setActive(label)Set the label marking the points to transform.
setDM(dm)Set the
DMfor the transformation.Configure the transformation from the options database.
setType(tr_type)Set the transformation type.
setUp()Setup a mesh transformation.
view([viewer])View the mesh transformation.
Methods Documentation
- apply(dm)#
Apply a mesh transformation.
Collective.
- create(comm=None)#
Create a mesh transformation.
Collective.
See also
- createSplitCellLabel(dm)#
Return a label for cells whose source cell was split.
Not collective.
Notes
This can include cells not flagged for refinement because the transform can split cells to restore conformity.
- destroy()#
Destroy a mesh transformation.
Collective.
See also
Source code at petsc4py/PETSc/DMPlex.pyx:3959
- Return type:
- getActive()#
Return the label marking the points to transform.
Not collective.
See also
Source code at petsc4py/PETSc/DMPlex.pyx:3932
- Return type:
- getSourcePoint(pNew)#
Return the source point of a point of the transformed mesh.
Not collective.
- Parameters:
pNew (int) – The point in the transformed mesh.
- Returns:
- Return type:
- getType()#
Return the transformation type name.
Not collective.
See also
Source code at petsc4py/PETSc/DMPlex.pyx:3972
- Return type:
- setActive(label)#
Set the label marking the points to transform.
Logically collective.
See also
- setFromOptions()#
Configure the transformation from the options database.
Collective.
Source code at petsc4py/PETSc/DMPlex.pyx:4019
- Return type:
- setType(tr_type)#
Set the transformation type.
Collective.
See also
Source code at petsc4py/PETSc/DMPlex.pyx:3996
- Parameters:
tr_type (DMPlexTransformType | str)
- Return type:
- setUp()#
Setup a mesh transformation.
Collective.
Source code at petsc4py/PETSc/DMPlex.pyx:3986
- Return type: