GetFEM++  5.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, 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::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.
 
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

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 686 of file getfem_mesh.cc.

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 763 of file getfem_mesh.cc.

mesh_region getfem::inner_faces_of_mesh ( const mesh &  m,
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 neighbour elements.

Definition at line 801 of file getfem_mesh.cc.

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 551 of file getfem_mesh.h.

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 561 of file getfem_mesh.h.

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 565 of file getfem_mesh.h.

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 570 of file getfem_mesh.h.

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 574 of file getfem_mesh.h.

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 579 of file getfem_mesh.h.