GooseFEM 1.4.1.dev2+g78f16df
Loading...
Searching...
No Matches
GooseFEM::Mesh::ManualStitch Class Reference

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

#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.
 
size_t nelem () const
 Number of elements.
 
size_t nnode () const
 Number of nodes.
 
size_t nne () const
 Number of nodes-per-element.
 
size_t ndim () const
 Number of dimensions.
 
const array_type::tensor< double, 2 > & coor () const
 Nodal coordinates [nnode, ndim].
 
const array_type::tensor< size_t, 2 > & conn () const
 Connectivity [nelem, nne].
 
array_type::tensor< size_t, 2 > dofs () const
 DOF numbers for each node (numbered sequentially) [nnode, ndim].
 
std::vector< array_type::tensor< size_t, 1 > > nodemap () const
 Node-map per sub-mesh.
 
std::vector< array_type::tensor< size_t, 1 > > elemmap () const
 Element-map per sub-mesh.
 
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 >
T nodeset (const T &set, size_t mesh_index) const
 Convert set of node numbers for an original mesh to the stitched mesh.
 
template<class T >
T elemset (const T &set, size_t mesh_index) const
 Convert set of element numbers for an original mesh to the stitched mesh.
 

Detailed Description

Stitch two mesh objects, specifying overlapping nodes by hand.

Definition at line 1749 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 1765 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 1887 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 1878 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 1896 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 1920 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 1948 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 1988 of file Mesh.h.

◆ ndim()

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

Number of dimensions.

Returns
unsigned int

Definition at line 1869 of file Mesh.h.

◆ nelem()

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

Number of elements.

Returns
unsigned int

Definition at line 1842 of file Mesh.h.

◆ nmesh()

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

Number of sub meshes == 2.

Returns
unsigned int

Definition at line 1833 of file Mesh.h.

◆ nne()

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

Number of nodes-per-element.

Returns
unsigned int

Definition at line 1860 of file Mesh.h.

◆ nnode()

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

Number of nodes.

Returns
unsigned int

Definition at line 1851 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 1907 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 1933 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 1967 of file Mesh.h.


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