petsc-3.14.6 2021-03-30
Report Typos and Errors

DMPlexCreateBallMesh

Creates a simplex mesh on the d-dimensional ball, B^d.

Synopsis

#include "petscdmplex.h"   
#include "petscdmplex.h"   
PetscErrorCode DMPlexCreateBallMesh(MPI_Comm comm, PetscInt dim, PetscReal R, DM *dm)
Collective

Input Parameters

comm - The communicator for the DM object
dim - The dimension
R - The radius

Output Parameter

dm - The DM object

Options Database Keys

bd_dm_refine - This will refine the surface mesh preserving the sphere geometry

See Also

DMPlexCreateSphereMesh(), DMPlexCreateBoxMesh(), DMSetType(), DMCreate()

Level

beginner

Location

src/dm/impls/plex/plexcreate.c
Index of all DMPLEX routines
Table of Contents for all manual pages
Index of all manual pages