|
|
| t8_geometry (int dimension, const char *name, const char *attribute_name=NULL) |
| |
| virtual | ~t8_geometry () |
| | The destructor. More...
|
| |
| virtual void | t8_geom_evaluate (t8_cmesh_t cmesh, t8_gloidx_t gtreeid, const double *ref_coords, const size_t num_coords, double *out_coords) const =0 |
| | Maps points in the reference space \( [0,1]^\mathrm{dim} \to \mathbb{R}^3 \). More...
|
| |
| virtual void | t8_geom_evaluate_jacobian (t8_cmesh_t cmesh, t8_gloidx_t gtreeid, const double *ref_coords, const size_t num_coords, double *jacobian) const =0 |
| | Compute the jacobian of the t8_geom_evaluate map at a point in the reference space \( [0,1]^\mathrm{dim} \). More...
|
| |
| virtual void | t8_geom_load_tree_data (t8_cmesh_t cmesh, t8_gloidx_t gtreeid)=0 |
| | Update a possible internal data buffer for per tree data. More...
|
| |
| int | t8_geom_get_dimension () const |
| | Get the dimension of this geometry. More...
|
| |
| const char * | t8_geom_get_name () const |
| | Get the name of this geometry. More...
|
| |
| virtual t8_geometry_type_t | t8_geom_get_type () const =0 |
| | Get the type of this geometry. More...
|
| |
|
|
int | dimension |
| | The dimension of reference space for which this is a geometry.
|
| |
|
const char * | name |
| | The name of this geometry.
|
| |
◆ ~t8_geometry()
| virtual t8_geometry::~t8_geometry |
( |
| ) |
|
|
inlinevirtual |
The destructor.
It does nothing but has to be defined since we may want to delete geometry that is actually inherited and providing an implementation for the destructor ensures that the destructor of the child class will be executed.
◆ t8_geom_evaluate()
| virtual void t8_geometry::t8_geom_evaluate |
( |
t8_cmesh_t |
cmesh, |
|
|
t8_gloidx_t |
gtreeid, |
|
|
const double * |
ref_coords, |
|
|
const size_t |
num_coords, |
|
|
double * |
out_coords |
|
) |
| const |
|
pure virtual |
Maps points in the reference space \( [0,1]^\mathrm{dim} \to \mathbb{R}^3 \).
- Parameters
-
| [in] | cmesh | The cmesh in which the point lies. |
| [in] | gtreeid | The global tree (of the cmesh) in which the reference point is. |
| [in] | ref_coords | Array of dimension x num_coords many entries, specifying points in \( [0,1]^\mathrm{dim} \). |
| [in] | num_coords | Amount of points of /f$ \mathrm{dim} /f$ to map. |
| [out] | out_coords | The mapped coordinates in physical space of ref_coords. The length is num_coords * 3. |
Implemented in t8_geometry_zero, t8_geometry_occ, t8_geometry_linear_axis_aligned, t8_geometry_linear, t8_geometry_squared_disk, and t8_geometry_analytic.
◆ t8_geom_evaluate_jacobian()
| virtual void t8_geometry::t8_geom_evaluate_jacobian |
( |
t8_cmesh_t |
cmesh, |
|
|
t8_gloidx_t |
gtreeid, |
|
|
const double * |
ref_coords, |
|
|
const size_t |
num_coords, |
|
|
double * |
jacobian |
|
) |
| const |
|
pure virtual |
Compute the jacobian of the t8_geom_evaluate map at a point in the reference space \( [0,1]^\mathrm{dim} \).
- Parameters
-
| [in] | cmesh | The cmesh in which the point lies. |
| [in] | glreeid | The global tree (of the cmesh) in which the reference point is. |
| [in] | ref_coords | Array of dimension x num_coords many entries, specifying points in \( [0,1]^\mathrm{dim} \). |
| [in] | num_coords | Amount of points of /f$ \mathrm{dim} /f$ to map. |
| [out] | jacobian | The jacobian at ref_coords. Array of size num_coords x dimension x 3. Indices \( 3 \cdot i\) , \( 3 \cdot i+1 \) , \( 3 \cdot i+2 \) correspond to the \( i \)-th column of the jacobian (Entry \( 3 \cdot i + j \) is \( \frac{\partial f_j}{\partial x_i} \)). |
Implemented in t8_geometry_zero, t8_geometry_occ, t8_geometry_linear_axis_aligned, t8_geometry_linear, t8_geometry_squared_disk, and t8_geometry_analytic.
◆ t8_geom_get_dimension()
| int t8_geometry::t8_geom_get_dimension |
( |
| ) |
const |
|
inline |
Get the dimension of this geometry.
- Returns
- The dimension.
◆ t8_geom_get_name()
| const char* t8_geometry::t8_geom_get_name |
( |
| ) |
const |
|
inline |
Get the name of this geometry.
- Returns
- The name.
◆ t8_geom_get_type()
◆ t8_geom_load_tree_data()
Update a possible internal data buffer for per tree data.
This function is called before the first coordinates in a new tree are evaluated. You can use it for example to load the vertex coordinates of the tree into an internal buffer (as is done in the linear geometry).
- Parameters
-
| [in] | cmesh | The cmesh. |
| [in] | gtreeid | The global tree. |
Implemented in t8_geometry_with_vertices, t8_geometry_zero, t8_geometry_occ, and t8_geometry_analytic.
The documentation for this struct was generated from the following file: