FrictionQPotFEM 0.23.3
Loading...
Searching...
No Matches
GooseFEM::Mesh::ManualStitch Class Reference

Stitch two mesh objects, specifying overlapping nodes by hand. More...

#include <include/GooseFEM/Mesh.h>

Public Member Functions

template<class CA , class EA , class NA , class CB , class EB , class NB >
 ManualStitch (const CA &coor_a, const EA &conn_a, const NA &overlapping_nodes_a, const CB &coor_b, const EB &conn_b, const NB &overlapping_nodes_b, bool check_position=true, double rtol=1e-5, double atol=1e-8)
 
size_t nmesh () const
 Number of sub meshes == 2. More...
 
size_t nelem () const
 Number of elements. More...
 
size_t nnode () const
 Number of nodes. More...
 
size_t nne () const
 Number of nodes-per-element. More...
 
size_t ndim () const
 Number of dimensions. More...
 
const array_type::tensor< double, 2 > & coor () const
 Nodal coordinates [nnode, ndim]. More...
 
const array_type::tensor< size_t, 2 > & conn () const
 Connectivity [nelem, nne]. More...
 
array_type::tensor< size_t, 2 > dofs () const
 DOF numbers for each node (numbered sequentially) [nnode, ndim]. More...
 
std::vector< array_type::tensor< size_t, 1 > > nodemap () const
 Node-map per sub-mesh. More...
 
std::vector< array_type::tensor< size_t, 1 > > elemmap () const
 Element-map per sub-mesh. More...
 
array_type::tensor< size_t, 1 > nodemap (size_t mesh_index) const
 
array_type::tensor< size_t, 1 > elemmap (size_t mesh_index) const
 
template<class T >
nodeset (const T &set, size_t mesh_index) const
 Convert set of node numbers for an original mesh to the stitched mesh. More...
 
template<class T >
elemset (const T &set, size_t mesh_index) const
 Convert set of element numbers for an original mesh to the stitched mesh. More...
 

Detailed Description

Stitch two mesh objects, specifying overlapping nodes by hand.

Definition at line 1748 of file Mesh.h.

Constructor & Destructor Documentation

◆ ManualStitch()

template<class CA , class EA , class NA , class CB , class EB , class NB >
GooseFEM::Mesh::ManualStitch::ManualStitch ( const CA &  coor_a,
const EA &  conn_a,
const NA &  overlapping_nodes_a,
const CB &  coor_b,
const EB &  conn_b,
const NB &  overlapping_nodes_b,
bool  check_position = true,
double  rtol = 1e-5,
double  atol = 1e-8 
)
inline
Parameters
coor_aNodal coordinates of mesh "a" [nnode, ndim].
conn_aConnectivity of mesh "a" [nelem, nne].
overlapping_nodes_aNode-numbers of mesh "a" that overlap with mesh "b" [n].
coor_bNodal coordinates of mesh "b" [nnode, ndim].
conn_bConnectivity of mesh "b" [nelem, nne].
overlapping_nodes_bNode-numbers of mesh "b" that overlap with mesh "a" [n].
check_positionIf true the nodes are checked for position overlap.
rtolRelative tolerance for check on position overlap.
atolAbsolute tolerance for check on position overlap.

Definition at line 1764 of file Mesh.h.

Member Function Documentation

◆ conn()

const array_type::tensor< size_t, 2 > & GooseFEM::Mesh::ManualStitch::conn ( ) const
inline

Connectivity [nelem, nne].

Returns
nodes per element

Definition at line 1884 of file Mesh.h.

◆ coor()

const array_type::tensor< double, 2 > & GooseFEM::Mesh::ManualStitch::coor ( ) const
inline

Nodal coordinates [nnode, ndim].

Returns
coordinates per node

Definition at line 1875 of file Mesh.h.

◆ dofs()

array_type::tensor< size_t, 2 > GooseFEM::Mesh::ManualStitch::dofs ( ) const
inline

DOF numbers for each node (numbered sequentially) [nnode, ndim].

Returns
DOFs per node

Definition at line 1893 of file Mesh.h.

◆ elemmap() [1/2]

std::vector< array_type::tensor< size_t, 1 > > GooseFEM::Mesh::ManualStitch::elemmap ( ) const
inline

Element-map per sub-mesh.

Returns
elements per mesh

Definition at line 1917 of file Mesh.h.

◆ elemmap() [2/2]

array_type::tensor< size_t, 1 > GooseFEM::Mesh::ManualStitch::elemmap ( size_t  mesh_index) const
inline
Parameters
mesh_indexIndex of the mesh ("a" = 1, "b" = 1).
Returns
Element-map for a given mesh.

Definition at line 1945 of file Mesh.h.

◆ elemset()

template<class T >
T GooseFEM::Mesh::ManualStitch::elemset ( const T &  set,
size_t  mesh_index 
) const
inline

Convert set of element numbers for an original mesh to the stitched mesh.

Parameters
setList of element numbers.
mesh_indexIndex of the mesh ("a" = 1, "b" = 1).
Returns
List of element numbers for the stitched mesh.

Definition at line 1985 of file Mesh.h.

◆ ndim()

size_t GooseFEM::Mesh::ManualStitch::ndim ( ) const
inline

Number of dimensions.

Returns
unsigned int

Definition at line 1866 of file Mesh.h.

◆ nelem()

size_t GooseFEM::Mesh::ManualStitch::nelem ( ) const
inline

Number of elements.

Returns
unsigned int

Definition at line 1839 of file Mesh.h.

◆ nmesh()

size_t GooseFEM::Mesh::ManualStitch::nmesh ( ) const
inline

Number of sub meshes == 2.

Returns
unsigned int

Definition at line 1830 of file Mesh.h.

◆ nne()

size_t GooseFEM::Mesh::ManualStitch::nne ( ) const
inline

Number of nodes-per-element.

Returns
unsigned int

Definition at line 1857 of file Mesh.h.

◆ nnode()

size_t GooseFEM::Mesh::ManualStitch::nnode ( ) const
inline

Number of nodes.

Returns
unsigned int

Definition at line 1848 of file Mesh.h.

◆ nodemap() [1/2]

std::vector< array_type::tensor< size_t, 1 > > GooseFEM::Mesh::ManualStitch::nodemap ( ) const
inline

Node-map per sub-mesh.

Returns
nodes per mesh

Definition at line 1904 of file Mesh.h.

◆ nodemap() [2/2]

array_type::tensor< size_t, 1 > GooseFEM::Mesh::ManualStitch::nodemap ( size_t  mesh_index) const
inline
Parameters
mesh_indexIndex of the mesh ("a" = 1, "b" = 1).
Returns
Node-map for a given mesh.

Definition at line 1930 of file Mesh.h.

◆ nodeset()

template<class T >
T GooseFEM::Mesh::ManualStitch::nodeset ( const T &  set,
size_t  mesh_index 
) const
inline

Convert set of node numbers for an original mesh to the stitched mesh.

Parameters
setList of node numbers.
mesh_indexIndex of the mesh ("a" = 1, "b" = 1).
Returns
List of node numbers for the stitched mesh.

Definition at line 1964 of file Mesh.h.


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