Mechanics of Defect Evolution Library
Loading...
Searching...
No Matches
SimplexReader.h
Go to the documentation of this file.
1/* This file is part of MoDELib, the Mechanics Of Defects Evolution Library.
2 *
3 *
4 * MoDELib is distributed without any warranty under the
5 * GNU General Public License (GPL) v2 <http://www.gnu.org/licenses/>.
6 */
7
8#ifndef model_SimplexReader_H_
9#define model_SimplexReader_H_
10
11#include <map>
12#include <iostream>
13#include <Eigen/Dense>
14#include <SimplexTraits.h>
15// #include <VertexReader.h>
16#include <SimplexTraits.h>
17
18namespace model
19{
20
21 /**************************************************************************/
22 /**************************************************************************/
23 template <int dim>
25 : private std::map<size_t, Eigen::Matrix<double, dim, 1>>
26 /* */,
27 private std::map<size_t, std::pair<typename SimplexTraits<dim, dim>::SimplexIDType, size_t>>
28 {
29
30 typedef std::map<size_t, Eigen::Matrix<double, dim, 1>> NodeContainerType;
31 typedef std::map<size_t, std::pair<typename SimplexTraits<dim, dim>::SimplexIDType, size_t>>
33
34 /**********************************************************************/
35 const NodeContainerType &nodes() const;
36
37 /**********************************************************************/
39
40 /**********************************************************************/
42
43 /**********************************************************************/
45
46 /**********************************************************************/
47 void clear();
48
50
52
53 // static IDreader<'N',1,dim,double> nodeReader;
54
55 /**********************************************************************/
56 const Eigen::Matrix<double, dim, 1> &get_P0(const typename SimplexTraits<dim, 0>::SimplexIDType &xID);
57 };
58
59 /**************************************************************************/
60 /**************************************************************************/
61 template <int dim> struct SimplexReader : public SimplexReaderBase<dim>
62 {
63 void read(const int &meshID);
64 void read(const std::string &meshFileName, const Eigen::Matrix<double, dim, dim> &A,
65 const Eigen::Matrix<double, dim, 1> &x0);
66 };
67
68} // namespace model
69#endif
function infiniteDisplacement syms Ax Ay Az Bx By Bz qx qy qz u L x y z real A
const Eigen::Matrix< double, dim, 1 > & get_P0(const typename SimplexTraits< dim, 0 >::SimplexIDType &xID)
std::map< size_t, std::pair< typename SimplexTraits< dim, dim >::SimplexIDType, size_t > > ElementContainerType
SimplexReaderBase< dim > & simplexReader()
NodeContainerType & nodes()
const ElementContainerType & elements() const
ElementContainerType & elements()
std::map< size_t, Eigen::Matrix< double, dim, 1 > > NodeContainerType
const NodeContainerType & nodes() const
const SimplexReaderBase< dim > & simplexReader() const
void read(const int &meshID)
SimplexID< nVertices > SimplexIDType