Stitch two mesh objects, specifying overlapping nodes by hand.
More...
#include <GooseFEM/Mesh.h>
|
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.
|
|
Stitch two mesh objects, specifying overlapping nodes by hand.
Definition at line 1749 of file Mesh.h.
◆ ManualStitch()
- Parameters
-
coor_a | Nodal coordinates of mesh "a" [nnode, ndim]. |
conn_a | Connectivity of mesh "a" [nelem, nne]. |
overlapping_nodes_a | Node-numbers of mesh "a" that overlap with mesh "b" [n]. |
coor_b | Nodal coordinates of mesh "b" [nnode, ndim]. |
conn_b | Connectivity of mesh "b" [nelem, nne]. |
overlapping_nodes_b | Node-numbers of mesh "b" that overlap with mesh "a" [n]. |
check_position | If true the nodes are checked for position overlap. |
rtol | Relative tolerance for check on position overlap. |
atol | Absolute tolerance for check on position overlap. |
Definition at line 1765 of file Mesh.h.
◆ conn()
Connectivity [nelem, nne].
- Returns
- nodes per element
Definition at line 1887 of file Mesh.h.
◆ coor()
Nodal coordinates [nnode, ndim].
- Returns
- coordinates per node
Definition at line 1878 of file Mesh.h.
◆ dofs()
DOF numbers for each node (numbered sequentially) [nnode, ndim].
- Returns
- DOFs per node
Definition at line 1896 of file Mesh.h.
◆ elemmap() [1/2]
Element-map per sub-mesh.
- Returns
- elements per mesh
Definition at line 1920 of file Mesh.h.
◆ elemmap() [2/2]
- Parameters
-
mesh_index | Index of the mesh ("a" = 1, "b" = 1). |
- Returns
- Element-map for a given mesh.
Definition at line 1948 of file Mesh.h.
◆ elemset()
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
-
set | List of element numbers. |
mesh_index | Index 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]
Node-map per sub-mesh.
- Returns
- nodes per mesh
Definition at line 1907 of file Mesh.h.
◆ nodemap() [2/2]
- Parameters
-
mesh_index | Index of the mesh ("a" = 1, "b" = 1). |
- Returns
- Node-map for a given mesh.
Definition at line 1933 of file Mesh.h.
◆ nodeset()
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
-
set | List of node numbers. |
mesh_index | Index 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: