p4est  1.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Enumerations | Functions
p8est_geometry.c File Reference

We provide some geometry transformations for the builtin connectivities. More...

#include <p4est_to_p8est.h>
#include "p4est_geometry.c"

Data Structures

struct  p8est_geometry_builtin_shell_t
 
struct  p8est_geometry_builtin_sphere_t
 
struct  p8est_geometry_builtin_t
 

Enumerations

enum  p8est_geometry_builtin_type_t { P8EST_GEOMETRY_BUILTIN_MAGIC = 0x65F2F8DF, P8EST_GEOMETRY_BUILTIN_SHELL, P8EST_GEOMETRY_BUILTIN_SPHERE }
 

Functions

static void p8est_geometry_shell_X (p8est_geometry_t *geom, p4est_topidx_t which_tree, const double rst[3], double xyz[3])
 
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. More...
 
static void p8est_geometry_sphere_X (p8est_geometry_t *geom, p4est_topidx_t which_tree, const double rst[3], double xyz[3])
 
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. More...
 

Detailed Description

We provide some geometry transformations for the builtin connectivities.

They are not meant as blueprints for future user code. Please implement p8est_geometry_t as you see fit.

Function Documentation

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.

Parameters
[in]connResult of p8est_connectivity_new_shell or equivalent. We do NOT take ownership and expect it to stay alive.
[in]R2The outer radius of the shell.
[in]R1The inner radius of the shell.
Returns
Geometry structure; use with p4est_geometry_destroy.
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.

Parameters
[in]connResult of p8est_connectivity_new_sphere or equivalent. We do NOT take ownership and expect it to stay alive.
[in]R2The outer radius of the sphere.
[in]R1The outer radius of the inner shell.
[in]R0The inner radius of the inner shell.
Returns
Geometry structure; use with p4est_geometry_destroy.