30#ifndef P4EST_GEOMETRY_H
31#define P4EST_GEOMETRY_H
94 double R2,
double R1);
107 double R0,
double R1);
int32_t p4est_topidx_t
Typedef for counting topological entities (trees, tree vertices).
Definition: p4est_base.h:93
The connectivity defines the coarse topology of the forest.
p4est_geometry_t * p4est_geometry_new_shell2d(p4est_connectivity_t *conn, double R2, double R1)
Create a geometry for mapping 2d shell.
p4est_geometry_t * p4est_geometry_new_disk2d(p4est_connectivity_t *conn, double R0, double R1)
disk2d geometry associated to disk2d connectivity.
void(* p4est_geometry_X_t)(p4est_geometry_t *geom, p4est_topidx_t which_tree, const double abc[3], double xyz[3])
Forward transformation from the reference unit square to physical space.
Definition: p4est_geometry.h:45
p4est_geometry_t * p4est_geometry_new_connectivity(p4est_connectivity_t *conn)
Create a geometry structure based on the vertices in a connectivity.
p4est_geometry_t * p4est_geometry_new_icosahedron(p4est_connectivity_t *conn, double R)
Create a geometry for mapping the 3d sphere using 2d connectivity icosahedron.
void(* p4est_geometry_destroy_t)(p4est_geometry_t *geom)
Destructor prototype for a user-allocated p4est_geometry_t.
Definition: p4est_geometry.h:54
void p4est_geometry_destroy(p4est_geometry_t *geom)
Can be used to conveniently destroy a geometry structure.
This structure holds the 2D inter-tree connectivity information.
Definition: p4est_connectivity.h:189
This structure can be filled or allocated by the user.
Definition: p4est_geometry.h:60
p4est_geometry_destroy_t destroy
Destructor called by p4est_geometry_destroy.
Definition: p4est_geometry.h:64
p4est_geometry_X_t X
Coordinate transformation.
Definition: p4est_geometry.h:63
const char * name
User's choice is arbitrary.
Definition: p4est_geometry.h:61
void * user
User's choice is arbitrary.
Definition: p4est_geometry.h:62