Struct t8_geometry_quadrangulated_disk
Defined in File t8_geometry_examples.hxx
Inheritance Relationships
Base Type
public t8_geometry_with_vertices(Struct t8_geometry_with_vertices)
Struct Documentation
-
struct t8_geometry_quadrangulated_disk : public t8_geometry_with_vertices
This geometry maps five quads to a disk.
Public Functions
-
inline t8_geometry_quadrangulated_disk()
-
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
Map five quads to a disk.
This routine expects an input mesh of 4 * 3 squares looking like this. Note, only the upper right quadrant is shown for the sake of clarity.
------+ |_1__/| | 0 |2| |___|_|
The central quad (id = 0) is mapped as is, while the outer edges of other four quads are stretched onto a circle with a radius determined by the outer corner (denoted by “+”) in the schematic above.
- Parameters:
cmesh – [in] The cmesh in which the point lies.
gtreeid – [in] The global tree (of the cmesh) in which the reference point is.
ref_coords – [in] Array of tree dimension x num_coords many entries, specifying a point in \( [0,1]^\mathrm{dim} \).
num_coords – [in] The number of points to map.
out_coords – [out] The mapped coordinates in physical space of ref_coords. The length is num_coords * 3.
-
inline void t8_geom_evaluate_jacobian([[maybe_unused]] t8_cmesh_t cmesh, [[maybe_unused]] t8_gloidx_t gtreeid, [[maybe_unused]] const double *ref_coords, [[maybe_unused]] const size_t num_coords, [[maybe_unused]] double *jacobian) const
Jacobian, not implemented.
- Parameters:
cmesh – [in] The cmesh in which the point lies.
gtreeid – [in] The global tree (of the cmesh) in which the reference point is.
ref_coords – [in] Array of tree dimension x num_coords many entries, specifying a point in \( [0,1]^\mathrm{dim} \).
num_coords – [in] The number of points to map.
jacobian – [in] The Jacobian matrix to be filled.
-
inline virtual t8_geometry_type_t t8_geom_get_type() const
Get the type of this geometry.
- Returns:
The type.
-
inline virtual bool t8_geom_check_tree_compatibility() const
Check for compatibility of the currently loaded tree with the geometry.
Only quad elements are supported by this geometry.
- Returns:
True if the geometry is compatible with the tree.
-
inline t8_geometry_quadrangulated_disk()