GetFEM  5.4.2
Mesh

Classes

class  bgeot::mesh_structure
 Mesh structure definition. More...
 
class  getfem::mesh
 Describe a mesh (collection of convexes (elements) and points). More...
 

Functions

void APIDECL getfem::extrude (const mesh &in, mesh &out, size_type nb_layers, short_type degree=short_type(1))
 build a N+1 dimensions mesh from a N-dimensions mesh by extrusion.
 
scalar_type APIDECL getfem::convex_area_estimate (bgeot::pgeometric_trans pgt, const base_matrix &pts, pintegration_method pim)
 rough estimate of the convex area. More...
 
scalar_type APIDECL getfem::convex_quality_estimate (bgeot::pgeometric_trans pgt, const base_matrix &pts)
 rough estimate of the maximum value of the condition number of the jacobian of the geometric transformation
 
scalar_type APIDECL getfem::convex_radius_estimate (bgeot::pgeometric_trans pgt, const base_matrix &pts)
 rough estimate of the radius of the convex using the largest eigenvalue of the jacobian of the geometric transformation
 
void APIDECL getfem::outer_faces_of_mesh (const mesh &m, const dal::bit_vector &cvlst, convex_face_ct &flist)
 returns a list of "exterior" faces of a mesh (i.e. More...
 
mesh_region APIDECL getfem::inner_faces_of_mesh (const mesh &m, const mesh_region &mr=mesh_region::all_convexes())
 Select all the faces sharing at least two element of the given mesh region. More...
 
mesh_region APIDECL getfem::all_faces_of_mesh (const mesh &m, const mesh_region &mr=mesh_region::all_convexes())
 Select all the faces of the given mesh region. More...
 
mesh_region APIDECL getfem::select_faces_of_normal (const mesh &m, const mesh_region &mr, const base_small_vector &V, scalar_type angle)
 Select in the region mr the faces of the mesh m with their unit outward vector having a maximal angle "angle" with the vector V.
 
mesh_region APIDECL getfem::select_faces_in_box (const mesh &m, const mesh_region &mr, const base_node &pt1, const base_node &pt2)
 Select in the region mr the faces of the mesh m lying entirely in the box delimated by pt1 and pt2.
 
mesh_region APIDECL getfem::select_faces_in_ball (const mesh &m, const mesh_region &mr, const base_node &center, scalar_type radius)
 Select in the region mr the faces of the mesh m lying entirely in the ball delimated by pt1 and radius.
 
template<class ITER >
size_type getfem::mesh::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 getfem::mesh::add_simplex_by_points (dim_type dim, ITER ipts)
 Add a simplex to the mesh, given its dimension and point coordinates. More...
 
template<class ITER >
size_type getfem::mesh::add_parallelepiped (dim_type di, const ITER &ipts)
 Add a parallelepiped to the mesh. More...
 
template<class ITER >
size_type getfem::mesh::add_parallelepiped_by_points (dim_type di, const ITER &ps)
 Add a parallelepiped to the mesh. More...
 
template<class ITER >
size_type getfem::mesh::add_prism (dim_type di, const ITER &ipts)
 Add a prism to the mesh. More...
 
template<class ITER >
size_type getfem::mesh::add_prism_by_points (dim_type di, const ITER &ps)
 Add a prism to the mesh. More...
 

Detailed Description

Function Documentation

◆ convex_area_estimate()

scalar_type getfem::convex_area_estimate ( bgeot::pgeometric_trans  pgt,
const base_matrix &  pts,
pintegration_method  pim 
)

rough estimate of the convex area.

Parameters
pgtthe geometric transformation.
ptsthe convex nodes.
paithe approximate integration used for the computation of the convex area.

Definition at line 745 of file getfem_mesh.cc.

◆ outer_faces_of_mesh()

void getfem::outer_faces_of_mesh ( const mesh m,
const dal::bit_vector &  cvlst,
convex_face_ct &  flist 
)

returns a list of "exterior" faces of a mesh (i.e.

faces which are not shared by two convexes)

  • convexes whose dimension is smaller that m.dim()

Definition at line 822 of file getfem_mesh.cc.

◆ inner_faces_of_mesh()

mesh_region getfem::inner_faces_of_mesh ( const mesh m,
const mesh_region mr = mesh_region::all_convexes() 
)

Select all the faces sharing at least two element of the given mesh region.

Each face is represented only once and is arbitrarily chosen between the two neighbor elements.

Definition at line 877 of file getfem_mesh.cc.

◆ all_faces_of_mesh()

mesh_region getfem::all_faces_of_mesh ( const mesh m,
const mesh_region mr = mesh_region::all_convexes() 
)

Select all the faces of the given mesh region.

The faces are represented* twice if they are shared by two neighbor elements.

Definition at line 858 of file getfem_mesh.cc.

◆ add_convex_by_points()

template<class ITER >
size_type getfem::mesh::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.

As a side-effect, the points are also added to the mesh (if they were not already in the mesh).

Parameters
pgtthe geometric transformation of the convex.
iptsan iterator on a set of getfem::base_node.
Returns
the number of the new convex.

Definition at line 558 of file getfem_mesh.h.

◆ add_simplex_by_points()

template<class ITER >
size_type getfem::mesh::add_simplex_by_points ( dim_type  dim,
ITER  ipts 
)

Add a simplex to the mesh, given its dimension and point coordinates.

See also
add_convex_by_points.

Definition at line 568 of file getfem_mesh.h.

◆ add_parallelepiped()

template<class ITER >
size_type getfem::mesh::add_parallelepiped ( dim_type  di,
const ITER &  ipts 
)

Add a parallelepiped to the mesh.

Parameters
didimension of the parallelepiped
iptsiterator on the list of point id.
Returns
the number of the new convex.

Definition at line 572 of file getfem_mesh.h.

◆ add_parallelepiped_by_points()

template<class ITER >
size_type getfem::mesh::add_parallelepiped_by_points ( dim_type  di,
const ITER &  ps 
)

Add a parallelepiped to the mesh.

Parameters
didimension of the parallelepiped
psiterator on the list of point coordinates.
Returns
the number of the new convex.

Definition at line 577 of file getfem_mesh.h.

◆ add_prism()

template<class ITER >
size_type getfem::mesh::add_prism ( dim_type  di,
const ITER &  ipts 
)

Add a prism to the mesh.

Parameters
didimension of the prism
iptsiterator on the list of point id.
Returns
the number of the new convex.

Definition at line 581 of file getfem_mesh.h.

◆ add_prism_by_points()

template<class ITER >
size_type getfem::mesh::add_prism_by_points ( dim_type  di,
const ITER &  ps 
)

Add a prism to the mesh.

Parameters
didimension of the prism
psiterator on the list of point coordinates.
Returns
the number of the new convex.

Definition at line 586 of file getfem_mesh.h.