petsc4py.PETSc.DMPlexTransform#

class petsc4py.PETSc.DMPlexTransform#

Bases: Object

Mesh transformations.

Methods Summary

apply(dm)

Apply a mesh transformation.

create([comm])

Create a mesh transformation.

destroy()

Destroy a mesh transformation.

getType()

Return the transformation type name.

setDM(dm)

Set the DM for the transformation.

setFromOptions()

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.

Source code at petsc4py/PETSc/DMPlex.pyx:3467

Parameters:

dm (DM)

Return type:

DM

create(comm=None)#

Create a mesh transformation.

Collective.

Source code at petsc4py/PETSc/DMPlex.pyx:3478

Parameters:

comm (Comm | None)

Return type:

Self

destroy()#

Destroy a mesh transformation.

Collective.

Source code at petsc4py/PETSc/DMPlex.pyx:3495

Return type:

Self

getType()#

Return the transformation type name.

Not collective.

Source code at petsc4py/PETSc/DMPlex.pyx:3508

Return type:

str

setDM(dm)#

Set the DM for the transformation.

Logically collective.

Source code at petsc4py/PETSc/DMPlex.pyx:3546

Parameters:

dm (DM)

Return type:

None

setFromOptions()#

Configure the transformation from the options database.

Collective.

Source code at petsc4py/PETSc/DMPlex.pyx:3555

Return type:

None

setType(tr_type)#

Set the transformation type.

Collective.

Source code at petsc4py/PETSc/DMPlex.pyx:3532

Parameters:

tr_type (DMPlexTransformType | str)

Return type:

None

setUp()#

Setup a mesh transformation.

Collective.

Source code at petsc4py/PETSc/DMPlex.pyx:3522

Return type:

Self

view(viewer=None)#

View the mesh transformation.

Collective.

Parameters:

viewer (Viewer | None) – A Viewer instance or None for the default viewer.

Return type:

None

Source code at petsc4py/PETSc/DMPlex.pyx:3567