Struct t8_geometry_triangulated_spherical_surface

Inheritance Relationships

Base Type

Struct Documentation

struct t8_geometry_triangulated_spherical_surface : public t8_geometry_with_vertices

This geometry maps the faces of an octahedron/icosahedron to a spherical surface.

Public Functions

inline t8_geometry_triangulated_spherical_surface()
inline virtual ~t8_geometry_triangulated_spherical_surface()
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 the faces of an octahedron/icosahedron to a spherical surface.

This routine expects an input mesh of triangles arranged into an octahedron/icosahedron.

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 bool t8_geom_check_tree_compatibility() const

Check for compatibility of the currently loaded tree with the geometry.

Only triangle elements are supported by this geometry.

Returns:

True if the geometry is compatible with the tree.