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:3462

Parameters:

dm (DM)

Return type:

DM

create(comm=None)#

Create a mesh transformation.

Collective.

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

Parameters:

comm (Comm | None)

Return type:

Self

destroy()#

Destroy a mesh transformation.

Collective.

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

Return type:

Self

getType()#

Return the transformation type name.

Not collective.

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

Return type:

str

setDM(dm)#

Set the DM for the transformation.

Logically collective.

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

Parameters:

dm (DM)

Return type:

None

setFromOptions()#

Configure the transformation from the options database.

Collective.

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

Return type:

None

setType(tr_type)#

Set the transformation type.

Collective.

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

Parameters:

tr_type (DMPlexTransformType | str)

Return type:

None

setUp()#

Setup a mesh transformation.

Collective.

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

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:3562