PETSc version v3.16.3-620-g042ec10004

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 or ParMmg) and parallel redistribution for load balancing. It is designed to interface with the PetscFE and PetscFV trial discretization objects.

Beginner - Basic usage
DMPlexAddConeSize DMPlexGetSupportSize DMPlexMetricSetIsotropic
DMPlexComputeGeometryFEM DMPlexGetTransitiveClosure DMPlexMetricSetMaximumAnisotropy
DMPlexCreate DMPlexInsertCone DMPlexMetricSetMaximumMagnitude
DMPlexCreateBallMesh DMPlexInsertConeOrientation DMPlexMetricSetMinimumMagnitude
DMPlexCreateBoxMesh DMPlexInsertSupport DMPlexMetricSetNoInsertion
DMPlexCreateBoxSurfaceMesh DMPlexMetricAverage DMPlexMetricSetNoMovement
DMPlexCreateCGNS DMPlexMetricAverage2 DMPlexMetricSetNoSwapping
DMPlexCreateCellVertexFromFile DMPlexMetricAverage3 DMPlexMetricSetNormalizationOrder
DMPlexCreateDoublet DMPlexMetricCreate DMPlexMetricSetNumIterations
DMPlexCreateEGADSFromFile DMPlexMetricCreateIsotropic DMPlexMetricSetRestrictAnisotropyFirst
DMPlexCreateEGADSLiteFromFile DMPlexMetricCreateUniform DMPlexMetricSetTargetComplexity
DMPlexCreateExodus DMPlexMetricEnforceSPD DMPlexMetricSetVerbosity
DMPlexCreateExodusFromFile DMPlexMetricGetGradationFactor DMPlexRestoreTransitiveClosure
DMPlexCreateFluent DMPlexMetricGetMaximumAnisotropy DMPlexSetChart
DMPlexCreateFluentFromFile DMPlexMetricGetMaximumMagnitude DMPlexSetCone
DMPlexCreateFromFile DMPlexMetricGetMinimumMagnitude DMPlexSetConeOrientation
DMPlexCreateGmsh DMPlexMetricGetNormalizationOrder DMPlexSetConeSize
DMPlexCreateGmshFromFile DMPlexMetricGetNumIterations DMPlexSetSupport
DMPlexCreateHexCylinderMesh DMPlexMetricGetTargetComplexity DMPlexSetSupportSize
DMPlexCreateMedFromFile DMPlexMetricGetVerbosity DMPlexStratify
DMPlexCreatePLYFromFile DMPlexMetricIntersection DMPlexSymmetrize
DMPlexCreateSphereMesh DMPlexMetricIntersection2 DMPlexTransformCreate
DMPlexCreateWedgeBoxMesh DMPlexMetricIntersection3 DMPlexTransformDestroy
DMPlexCreateWedgeCylinderMesh DMPlexMetricIsIsotropic DMPlexTransformView
DMPlexGetChart DMPlexMetricNoInsertion PETSCVIEWEREXODUSII
DMPlexGetCone DMPlexMetricNoMovement PetscViewerExodusIIGetOrder
DMPlexGetConeOrientation DMPlexMetricNoSwapping PetscViewerExodusIIOpen
DMPlexGetConeSize DMPlexMetricNormalize PetscViewerExodusIISetOrder
DMPlexGetMaxSizes DMPlexMetricRestrictAnisotropyFirst
DMPlexGetSupport DMPlexMetricSetGradationFactor
Intermediate - Setting options for algorithms and data structures
DMGetEnclosurePoint DMPlexGetOverlap DMPlexPointLocalFieldRead
DMGetEnclosureRelation DMPlexGetPartitionBalance DMPlexPointLocalFieldRef
DMPLEX DMPlexGetPointDepth DMPlexPointLocalRead
DMPlexComputeOrthogonalQuality DMPlexGetPointGlobal DMPlexPointLocalRef
DMPlexCoordinatesToReference DMPlexGetPointGlobalField DMPlexRebalanceSharedPoints
DMPlexCopyCoordinates DMPlexGetPointHeight DMPlexReferenceToCoordinates
DMPlexCreateClosureIndex DMPlexGetPointLocal DMPlexRemapGeometry
DMPlexCreateDefaultReferenceTree DMPlexGetPointLocalField DMPlexRestoreJoin
DMPlexCreateFromCellListParallelPetsc DMPlexGetRedundantDM DMPlexRestoreMeet
DMPlexCreateFromCellListPetsc DMPlexGetReferenceTree DMPlexSetAdjacencyUseAnchors
DMPlexCreateGlobalToNaturalSF DMPlexGetRegularRefinement DMPlexSetAnchors
DMPlexCreateLabelField DMPlexGetTree DMPlexSetGlobalToNaturalSF
DMPlexCreateRankField DMPlexGetTreeChildren DMPlexSetMigrationSF
DMPlexCreateReferenceCell DMPlexGetTreeParent DMPlexSetPartitionBalance
DMPlexDistribute DMPlexGlobalToNaturalBegin DMPlexSetReferenceTree
DMPlexEqual DMPlexGlobalToNaturalEnd DMPlexSetRegularRefinement
DMPlexExtrude DMPlexInflateToGeomModel DMPlexSetTree
DMPlexFindVertices DMPlexInterpolate DMPlexShearGeometry
DMPlexGenerate DMPlexIsDistributed DMPlexSnapToGeomModel
DMPlexGetAdjacencyUseAnchors DMPlexIsInterpolated DMPlexTransformExtrudeGetLayers
DMPlexGetAnchors DMPlexIsInterpolatedCollective DMPlexTransformExtrudeGetThickness
DMPlexGetCellType DMPlexIsSimplex DMPlexTransformExtrudeSetLayers
DMPlexGetConeTuple DMPlexMatSetClosure DMPlexTransformExtrudeSetThickness
DMPlexGetFullJoin DMPlexMigrate DMPlexTransformGetType
DMPlexGetFullMeet DMPlexNaturalToGlobalBegin DMPlexTransformMapCoordinates
DMPlexGetGatherDM DMPlexNaturalToGlobalEnd DMPlexTransformSetFromOptions
DMPlexGetGlobalToNaturalSF DMPlexOrientPoint DMPlexUninterpolate
DMPlexGetJoin DMPlexPermute DMPlexVecGetClosure
DMPlexGetMaxProjectionHeight DMPlexPointGlobalFieldRead DMPlexVecRestoreClosure
DMPlexGetMeet DMPlexPointGlobalFieldRef DMPlexVecSetClosure
DMPlexGetMigrationSF DMPlexPointGlobalRead DMSetType
DMPlexGetOrdering DMPlexPointGlobalRef PetscViewerExodusIIGetId
Advanced - Setting more advanced options and customization
DMCreateNeumannOverlap DMPlexGetAdjacency DMPlexRestoreConeRecursive
DMPlexBuildCoordinatesFromCellList DMPlexGetAdjacencyUser DMPlexSectionLoad
DMPlexBuildCoordinatesFromCellListParallel DMPlexGetClosureIndices DMPlexSectionView
DMPlexBuildFromCellList DMPlexGetConeRecursive DMPlexSetAdjacencyUser
DMPlexBuildFromCellListParallel DMPlexGetConeRecursiveVertices DMPlexSetCellType
DMPlexComputeCellGeometryAffineFEM DMPlexGetGhostCellStratum DMPlexSetMaxProjectionHeight
DMPlexComputeCellGeometryFEM DMPlexGetScale DMPlexSetOptionsPrefix
DMPlexComputeCellGeometryFVM DMPlexGlobalVectorLoad DMPlexSetScale
DMPlexCoordinatesLoad DMPlexGlobalVectorView DMPlexTopologyLoad
DMPlexCoordinatesView DMPlexLabelsLoad DMPlexTopologyView
DMPlexCreateCoordinateSpace DMPlexLabelsView DMPlexTransformCellTransform
DMPlexCreateFromDAG DMPlexLocalVectorLoad DMPlexTransformGetSubcellOrientation
DMPlexCreateNeighborCSR DMPlexLocalVectorView DMPlexTransformRegister
DMPlexCreateRigidBodies DMPlexOrient DMPlexTransformRegisterAll
DMPlexCreateRigidBody DMPlexPreallocateOperator DMPlexTransformSetDimensions
DMPlexDistributeOverlap DMPlexRestoreClosureIndices
Developer - Interfaces intended primarily for library developers, not for typical applications programmers
DMComputeL2DiffLocal DMPlexFilter DMPlexInvertCell
DMPlexCheckCellShape DMPlexGetActivePoint DMPlexLabelAddCells
DMPlexCheckFaces DMPlexGetCeedRestriction 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 DMPlexGetLocalOffsets DMPlexReorderCell
DMPlexComputeMassMatrixGeneral DMPlexGetMinRadius DMPlexRestoreCellFields
DMPlexComputeProjection2Dto1D DMPlexGetNumFaceVertices DMPlexRestoreFaceFields
DMPlexComputeProjection3Dto1D DMPlexGetOrientedFace DMPlexRestoreFaceGeometry
DMPlexComputeProjection3Dto2D DMPlexGetPartitioner DMPlexRewriteSF
DMPlexConstructCohesiveCells DMPlexGetRefinementFunction DMPlexSetActivePoint
DMPlexConstructGhostCells DMPlexGetRefinementLimit DMPlexSetClosurePermutationTensor
DMPlexCreateBasisRotation DMPlexGetRefinementUniform DMPlexSetMinRadius
DMPlexCreateCoarsePointIS DMPlexGetSimplexOrBoxCells DMPlexSetPartitioner
DMPlexCreateCohesiveSubmesh DMPlexGetSubdomainSection DMPlexSetRefinementFunction
DMPlexCreateHybridMesh DMPlexGetSubpointIS DMPlexSetRefinementLimit
DMPlexCreateOverlapLabel DMPlexGetSubpointMap DMPlexSetRefinementUniform
DMPlexCreateOverlapMigrationSF DMPlexGetSupportSection DMPlexSetSubpointMap
DMPlexCreatePartitionerGraph DMPlexGetTransformType DMPlexSetTransformType
DMPlexCreatePointNumbering DMPlexGetVTKCellHeight DMPlexSetVTKCellHeight
DMPlexCreatePointSF DMPlexGetVertexNumbering DMPlexStratifyMigrationSF
DMPlexCreateProcessSF DMPlexGlobalToLocalBasis DMPlexTetgenSetOptions
DMPlexCreateSection DMPlexInsertBoundaryValues DMPlexTransferVecTree
DMPlexCreateSubmesh DMPlexInsertBoundaryValuesEssential DMPlexTransformGetSourcePoint
DMPlexCreateTwoSidedProcessSF DMPlexInsertBoundaryValuesEssentialBdField DMPlexTransformGetTargetPoint
DMPlexDistributeData DMPlexInsertBoundaryValuesEssentialField DMPlexTransformRegisterDestroy
DMPlexDistributeField DMPlexInsertBoundaryValuesRiemann DMPlexTriangleSetOptions
DMPlexDistributeFieldIS DMPlexInsertTimeDerivativeBoundaryValues DMPlexVTKWriteAll
DMPlexDistributeOwnership DMPlexInterpolatePointSF PetscPartitionerDMPlexPartition
Deprecated - Functionality scheduled for removal in future versions
DMPlexCreateFromCellList DMPlexCreateFromCellListParallel

Table of Contents