38#ifndef P8EST_GEOMETRY_H
39#define P8EST_GEOMETRY_H
108 const double abc[3],
double xyz[3]);
118 double R2,
double R1);
129 double R2,
double R1,
150 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.
void p8est_geometry_destroy(p8est_geometry_t *geom)
Can be used to conveniently destroy a geometry structure.
void(* p8est_geometry_destroy_t)(p8est_geometry_t *geom)
Destructor prototype for a user-allocated p8est_geometry_t.
Definition: p8est_geometry.h:60
p8est_geometry_t * p8est_geometry_new_shell(p8est_connectivity_t *conn, double R2, double R1)
Create a geometry structure for the spherical shell of 24 trees.
void(* p8est_geometry_X_t)(p8est_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: p8est_geometry.h:51
p8est_geometry_t * p8est_geometry_new_torus(p8est_connectivity_t *conn, double R0, double R1, double R2)
Create a geometry structure for the torus.
void p8est_geometry_connectivity_X(p8est_geometry_t *geom, p4est_topidx_t which_tree, const double abc[3], double xyz[3])
Geometric coordinate transformation for geometry created with p8est_geometry_new_connectivity.
p8est_geometry_t * p8est_geometry_new_connectivity(p8est_connectivity_t *conn)
Create a geometry structure based on the vertices in a connectivity.
p8est_geometry_t * p8est_geometry_new_sphere(p8est_connectivity_t *conn, double R2, double R1, double R0)
Create a geometry structure for the solid sphere of 13 trees.
This structure holds the 3D inter-tree connectivity information.
Definition: p8est_connectivity.h:215
This structure can be created by the user, p4est will never change its contents.
Definition: p8est_geometry.h:66
const char * name
User's choice is arbitrary.
Definition: p8est_geometry.h:67
p8est_geometry_destroy_t destroy
Destructor called by p8est_geometry_destroy.
Definition: p8est_geometry.h:70
p8est_geometry_X_t X
Coordinate transformation.
Definition: p8est_geometry.h:69
void * user
User's choice is arbitrary.
Definition: p8est_geometry.h:68