GetFEM  5.4.3
getfem::torus_mesh Class Reference

Copy an original 2D mesh to become a torus mesh with radial dimension. More...

#include <getfem_torus.h>

Inherits getfem::mesh.

Public Member Functions

virtual scalar_type convex_radius_estimate (size_type ic) const
 Return an estimate of the convex largest dimension. More...
 
- Public Member Functions inherited from getfem::mesh
 mesh (const std::string name="")
 Constructor.
 
void update_from_context () const
 this function has to be defined and should update the object when the context is modified.
 
ref_mesh_face_pt_ct points_of_face_of_convex (size_type ic, short_type f) const
 Return a (pseudo)container of points of face of a given convex.
 
ref_convex convex (size_type ic) const
 return a bgeot::convex object for the convex number ic.
 
size_type nb_points () const
 Give the number of geometrical nodes in the mesh.
 
const dal::bit_vector & points_index () const
 Return the points index.
 
void sup_point (size_type i)
 Delete the point of index i from the mesh if it is not linked to a convex.
 
void swap_points (size_type i, size_type j)
 Swap the indexes of points of index i and j in the whole structure.
 
size_type search_point (const base_node &pt, const scalar_type radius=0) const
 Search a point given its coordinates. More...
 
gmm::uint64_type convex_version_number (size_type ic) const
 return the version number of the convex ic.
 
template<class ITER >
size_type add_convex (bgeot::pgeometric_trans pgt, ITER ipts)
 Add a convex to the mesh. More...
 
template<class ITER >
size_type add_convex_by_points (bgeot::pgeometric_trans pgt, ITER ipts, const scalar_type tol=scalar_type(0))
 Add a convex to the mesh, given a geometric transformation and a list of point coordinates. More...
 
template<class ITER >
size_type add_simplex (dim_type di, ITER ipts)
 Add a simplex to the mesh, given its dimension and point numbers.
 
template<class ITER >
size_type add_simplex_by_points (dim_type dim, ITER ipts)
 Add a simplex to the mesh, given its dimension and point coordinates. More...
 
size_type add_segment (size_type a, size_type b)
 Add a segment to the mesh, given the point id of its vertices.
 
size_type add_segment_by_points (const base_node &pt1, const base_node &pt2)
 Add a segment to the mesh, given the coordinates of its vertices.
 
size_type add_triangle (size_type a, size_type b, size_type c)
 Add a triangle to the mesh, given the point id of its vertices.
 
size_type add_triangle_by_points (const base_node &p1, const base_node &p2, const base_node &p3)
 Add a triangle to the mesh, given the coordinates of its vertices.
 
size_type add_tetrahedron (size_type a, size_type b, size_type c, size_type d)
 Add a tetrahedron to the mesh, given the point id of its vertices.
 
size_type add_tetrahedron_by_points (const base_node &p1, const base_node &p2, const base_node &p3, const base_node &p4)
 Add a tetrahedron to the mesh, given the coordinates of its vertices.
 
size_type add_pyramid (size_type a, size_type b, size_type c, size_type d, size_type e)
 Add a pyramid to the mesh, given the point id of its vertices.
 
template<class ITER >
size_type add_parallelepiped (dim_type di, const ITER &ipts)
 Add a parallelepiped to the mesh. More...
 
template<class ITER >
size_type add_parallelepiped_by_points (dim_type di, const ITER &ps)
 Add a parallelepiped to the mesh. More...
 
template<class ITER >
size_type add_prism (dim_type di, const ITER &ipts)
 Add a prism to the mesh. More...
 
template<class ITER >
size_type add_prism_by_points (dim_type di, const ITER &ps)
 Add a prism to the mesh. More...
 
void merge_convexes_from_mesh (const mesh &m, size_type rg=size_type(-1), scalar_type tol=scalar_type(0))
 Merge all convexes from a another mesh, possibly restricted to a mesh region.
 
void sup_convex (size_type ic, bool sup_points=false)
 Delete the convex of index ic from the mesh.
 
void swap_convex (size_type i, size_type j)
 Swap the indexes of the convex of indexes i and j in the whole structure.
 
base_small_vector normal_of_face_of_convex (size_type ic, short_type f, const base_node &pt) const
 Return the normal of the given convex face, evaluated at the point pt. More...
 
base_matrix local_basis_of_face_of_convex (size_type ic, short_type f, const base_node &pt) const
 Return a local basis for the convex face. More...
 
base_matrix local_basis_of_face_of_convex (size_type ic, short_type f, size_type n) const
 Return a local basis for the convex face. More...
 
scalar_type convex_quality_estimate (size_type ic) const
 Return an estimate of the convex quality (0 <= Q <= 1).
 
scalar_type convex_area_estimate (size_type ic, size_type degree=2) const
 Return an estimate of the convex area. More...
 
scalar_type minimal_convex_radius_estimate () const
 Return an estimate of the convex smallest dimension. More...
 
scalar_type maximal_convex_radius_estimate () const
 Return an estimate of the convex largest dimension. More...
 
void translation (const base_small_vector &)
 Apply the given translation to each mesh node.
 
void transformation (const base_matrix &)
 apply the given matrix transformation to each mesh node.
 
void bounding_box (base_node &Pmin, base_node &Pmax) const
 Return the bounding box [Pmin - Pmax] of the mesh.
 
const mesh_region region (size_type id) const
 Return the region of index 'id'. More...
 
bool has_region (size_type s) const
 Return true if the region of index 's' exists in the mesh.
 
void sup_region (size_type b)
 Remove the region of index b.
 
void sup_convex_from_regions (size_type cv)
 Remove all references to a convex from all regions stored in the mesh. More...
 
void optimize_structure (bool with_renumbering=true)
 Pack the mesh : renumber convexes and nodes such that there is no holes in their numbering. More...
 
const std::vector< size_type > & cuthill_mckee_ordering () const
 Return the list of convex IDs for a Cuthill-McKee ordering.
 
void clear ()
 Erase the mesh.
 
void write_to_file (const std::string &name) const
 Write the mesh to a file. More...
 
void write_to_file (std::ostream &ost) const
 Write the mesh to a text stream. More...
 
void read_from_file (const std::string &name)
 Load the mesh from a file. More...
 
void read_from_file (std::istream &ist)
 Load the mesh from a text stream. More...
 
void copy_from (const mesh &m)
 Clone a mesh.
 
void Bank_refine (dal::bit_vector)
 Use the Bank strategy to refine some convexes.
 
- Public Member Functions inherited from getfem::context_dependencies
bool context_check () const
 return true if update_from_context was called
 

Detailed Description

Copy an original 2D mesh to become a torus mesh with radial dimension.

Definition at line 83 of file getfem_torus.h.

Member Function Documentation

◆ convex_radius_estimate()

scalar_type getfem::torus_mesh::convex_radius_estimate ( size_type  ic) const
virtual

Return an estimate of the convex largest dimension.

See also
getfem::convex_quality_estimate

Reimplemented from getfem::mesh.

Definition at line 228 of file getfem_torus.cc.


The documentation for this class was generated from the following files: