PETSc version 3.16.1

DMPLEX Examples

The DMPLEX class encapsulates an unstructured mesh, with interfaces for both topology and geometry. It is capable of parallel refinement and coarsening (using Pragmatic) and parallel redistribution for load balancing. It is designed to interface with the PetscFE and PetscFV trial discretization objects.

Beginner - Basic usage
DMPlexAddConeSize DMPlexCreateGmshFromFile DMPlexInsertSupport
DMPlexComputeGeometryFEM DMPlexCreateHexCylinderMesh DMPlexRestoreTransitiveClosure
DMPlexCreate DMPlexCreateMedFromFile DMPlexSetChart
DMPlexCreateBallMesh DMPlexCreatePLYFromFile DMPlexSetCone
DMPlexCreateBoxMesh DMPlexCreateSphereMesh DMPlexSetConeOrientation
DMPlexCreateBoxSurfaceMesh DMPlexCreateWedgeBoxMesh DMPlexSetConeSize
DMPlexCreateCGNS DMPlexCreateWedgeCylinderMesh DMPlexSetSupport
DMPlexCreateCellVertexFromFile DMPlexGetChart DMPlexSetSupportSize
DMPlexCreateDoublet DMPlexGetCone DMPlexStratify
DMPlexCreateEGADSFromFile DMPlexGetConeOrientation DMPlexSymmetrize
DMPlexCreateEGADSLiteFromFile DMPlexGetConeSize DMPlexTransformCreate
DMPlexCreateExodus DMPlexGetMaxSizes DMPlexTransformDestroy
DMPlexCreateExodusFromFile DMPlexGetSupport DMPlexTransformView
DMPlexCreateFluent DMPlexGetSupportSize PETSCVIEWEREXODUSII
DMPlexCreateFluentFromFile DMPlexGetTransitiveClosure PetscViewerExodusIIGetOrder
DMPlexCreateFromFile DMPlexInsertCone PetscViewerExodusIIOpen
DMPlexCreateGmsh DMPlexInsertConeOrientation PetscViewerExodusIISetOrder
Intermediate - Setting options for algorithms and data structures
DMGetEnclosurePoint DMPlexGetOverlap DMPlexPointGlobalRef
DMGetEnclosureRelation DMPlexGetPartitionBalance DMPlexPointLocalFieldRead
DMPLEX DMPlexGetPointDepth DMPlexPointLocalFieldRef
DMPlexComputeOrthogonalQuality DMPlexGetPointGlobal DMPlexPointLocalRead
DMPlexCoordinatesToReference DMPlexGetPointGlobalField DMPlexPointLocalRef
DMPlexCopyCoordinates DMPlexGetPointHeight DMPlexRebalanceSharedPoints
DMPlexCreateClosureIndex DMPlexGetPointLocal DMPlexReferenceToCoordinates
DMPlexCreateDefaultReferenceTree DMPlexGetPointLocalField DMPlexRemapGeometry
DMPlexCreateFromCellListParallelPetsc DMPlexGetRedundantDM DMPlexRestoreJoin
DMPlexCreateFromCellListPetsc DMPlexGetReferenceTree DMPlexRestoreMeet
DMPlexCreateGlobalToNaturalSF DMPlexGetRegularRefinement DMPlexSetAdjacencyUseAnchors
DMPlexCreateLabelField DMPlexGetTree DMPlexSetAnchors
DMPlexCreateRankField DMPlexGetTreeChildren DMPlexSetGlobalToNaturalSF
DMPlexCreateReferenceCell DMPlexGetTreeParent DMPlexSetMigrationSF
DMPlexDistribute DMPlexGlobalToNaturalBegin DMPlexSetPartitionBalance
DMPlexEqual DMPlexGlobalToNaturalEnd DMPlexSetReferenceTree
DMPlexFindVertices DMPlexInflateToGeomModel DMPlexSetRegularRefinement
DMPlexGenerate DMPlexInterpolate DMPlexSetTree
DMPlexGetAdjacencyUseAnchors DMPlexIsDistributed DMPlexShearGeometry
DMPlexGetAnchors DMPlexIsInterpolated DMPlexSnapToGeomModel
DMPlexGetCellType DMPlexIsInterpolatedCollective DMPlexTransformGetType
DMPlexGetConeTuple DMPlexIsSimplex DMPlexTransformMapCoordinates
DMPlexGetFullJoin DMPlexMatSetClosure DMPlexTransformSetFromOptions
DMPlexGetFullMeet DMPlexMigrate DMPlexUninterpolate
DMPlexGetGatherDM DMPlexNaturalToGlobalBegin DMPlexVecGetClosure
DMPlexGetGlobalToNaturalSF DMPlexNaturalToGlobalEnd DMPlexVecRestoreClosure
DMPlexGetJoin DMPlexOrientPoint DMPlexVecSetClosure
DMPlexGetMaxProjectionHeight DMPlexPermute DMSetType
DMPlexGetMeet DMPlexPointGlobalFieldRead PetscViewerExodusIIGetId
DMPlexGetMigrationSF DMPlexPointGlobalFieldRef
DMPlexGetOrdering DMPlexPointGlobalRead
Advanced - Setting more advanced options and customization
DMCreateNeumannOverlap DMPlexGenerateRegister DMPlexRestoreClosureIndices
DMPlexBuildCoordinatesFromCellList DMPlexGenerateRegisterAll DMPlexRestoreConeRecursive
DMPlexBuildCoordinatesFromCellListParallel DMPlexGetAdjacency DMPlexSectionLoad
DMPlexBuildFromCellList DMPlexGetAdjacencyUser DMPlexSectionView
DMPlexBuildFromCellListParallel DMPlexGetClosureIndices DMPlexSetAdjacencyUser
DMPlexComputeCellGeometryAffineFEM DMPlexGetConeRecursive DMPlexSetCellType
DMPlexComputeCellGeometryFEM DMPlexGetConeRecursiveVertices DMPlexSetMaxProjectionHeight
DMPlexComputeCellGeometryFVM DMPlexGetGhostCellStratum DMPlexSetOptionsPrefix
DMPlexCoordinatesLoad DMPlexGetScale DMPlexSetScale
DMPlexCoordinatesView DMPlexGlobalVectorLoad DMPlexTopologyLoad
DMPlexCreateCoordinateSpace DMPlexGlobalVectorView DMPlexTopologyView
DMPlexCreateFromDAG DMPlexLabelsLoad DMPlexTransformCellTransform
DMPlexCreateNeighborCSR DMPlexLabelsView DMPlexTransformGetSubcellOrientation
DMPlexCreateRigidBodies DMPlexLocalVectorLoad DMPlexTransformRegister
DMPlexCreateRigidBody DMPlexLocalVectorView DMPlexTransformRegisterAll
DMPlexDistributeOverlap DMPlexOrient
DMPlexExtrude DMPlexPreallocateOperator
Developer - Interfaces intended primarily for library developers, not for typical applications programmers
DMComputeL2DiffLocal DMPlexDistributeOwnership DMPlexInvertCell
DMPlexCheckCellShape DMPlexFilter DMPlexLabelAddCells
DMPlexCheckFaces DMPlexGetActivePoint DMPlexLabelAddFaceCells
DMPlexCheckGeometry DMPlexGetCellFields DMPlexLabelClearCells
DMPlexCheckInterfaceCones DMPlexGetCellNumbering DMPlexLabelCohesiveComplete
DMPlexCheckPointSF DMPlexGetCellTypeLabel DMPlexLabelComplete
DMPlexCheckSkeleton DMPlexGetConeOrientations DMPlexLocalToGlobalBasis
DMPlexCheckSymmetry DMPlexGetConeSection DMPlexMarkBoundaryFaces
DMPlexComputeBdIntegral DMPlexGetCones DMPlexMonitorThroughput
DMPlexComputeCellTypes DMPlexGetDataFVM DMPlexPartitionLabelAdjacency
DMPlexComputeCellwiseIntegralFEM DMPlexGetDepth DMPlexPartitionLabelClosure
DMPlexComputeGeometryFVM DMPlexGetDepthLabel DMPlexPartitionLabelCreateSF
DMPlexComputeGradientClementInterpolant DMPlexGetDepthStratum DMPlexPartitionLabelInvert
DMPlexComputeGradientFVM DMPlexGetFaceFields DMPlexPartitionLabelPropagate
DMPlexComputeInjectorFEM DMPlexGetFaceGeometry DMPlexReconstructGradientsFVM
DMPlexComputeIntegralFEM DMPlexGetGeometryFVM DMPlexReferenceTreeGetChildSymmetry
DMPlexComputeInterpolatorGeneral DMPlexGetGradientDM DMPlexRefineRegularGetAffineFaceTransforms
DMPlexComputeInterpolatorNested DMPlexGetHeightStratum DMPlexRefineRegularGetAffineTransforms
DMPlexComputeL2DiffVec DMPlexGetMinRadius DMPlexReorderCell
DMPlexComputeMassMatrixGeneral DMPlexGetNumFaceVertices DMPlexRestoreCellFields
DMPlexComputeProjection2Dto1D DMPlexGetOrientedFace DMPlexRestoreFaceFields
DMPlexComputeProjection3Dto1D DMPlexGetPartitioner DMPlexRestoreFaceGeometry
DMPlexComputeProjection3Dto2D DMPlexGetRefinementFunction DMPlexRewriteSF
DMPlexConstructCohesiveCells DMPlexGetRefinementLimit DMPlexSetActivePoint
DMPlexConstructGhostCells DMPlexGetRefinementUniform DMPlexSetClosurePermutationTensor
DMPlexCreateBasisRotation DMPlexGetSimplexOrBoxCells DMPlexSetMinRadius
DMPlexCreateCoarsePointIS DMPlexGetSubdomainSection DMPlexSetPartitioner
DMPlexCreateCohesiveSubmesh DMPlexGetSubpointIS DMPlexSetRefinementFunction
DMPlexCreateHybridMesh DMPlexGetSubpointMap DMPlexSetRefinementLimit
DMPlexCreateOverlapLabel DMPlexGetSupportSection DMPlexSetRefinementUniform
DMPlexCreateOverlapMigrationSF DMPlexGetTransformType DMPlexSetSubpointMap
DMPlexCreatePartitionerGraph DMPlexGetVTKCellHeight DMPlexSetTransformType
DMPlexCreatePointNumbering DMPlexGetVertexNumbering DMPlexSetVTKCellHeight
DMPlexCreatePointSF DMPlexGlobalToLocalBasis DMPlexStratifyMigrationSF
DMPlexCreateProcessSF DMPlexInsertBoundaryValues DMPlexTetgenSetOptions
DMPlexCreateSection DMPlexInsertBoundaryValuesEssential DMPlexTransferVecTree
DMPlexCreateSubmesh DMPlexInsertBoundaryValuesEssentialBdField DMPlexTransformGetTargetPoint
DMPlexCreateTwoSidedProcessSF DMPlexInsertBoundaryValuesEssentialField DMPlexTransformRegisterDestroy
DMPlexDistributeData DMPlexInsertBoundaryValuesRiemann DMPlexTriangleSetOptions
DMPlexDistributeField DMPlexInsertTimeDerivativeBoundaryValues DMPlexVTKWriteAll
DMPlexDistributeFieldIS DMPlexInterpolatePointSF PetscPartitionerDMPlexPartition
Deprecated - Functionality scheduled for removal in future versions
DMPlexCreateFromCellList DMPlexCreateFromCellListParallel

Table of Contents