Mechanics of Defect Evolution Library
Loading...
Searching...
No Matches
CrackMeshIndividualSpecification.cpp
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_CrackMeshIndividualSpecification_cpp_
9#define model_CrackMeshIndividualSpecification_cpp_
10
12
13namespace model
14{
20
22 /* init */ MicrostructureSpecificationBase("CrackMesh","Individual",fileName)
23 {
24 nodes=this->parser->readMatrixCols<double>("nodes",3,true);
25 burgers=this->parser->readMatrixCols<double>("burgers",3,true);
26 triangles=this->parser->readMatrixCols<int>("triangles",3,true);
27 }
28}
29#endif
Eigen::Matrix< double, Eigen::Dynamic, 3 > nodes
Eigen::Matrix< double, Eigen::Dynamic, 3 > burgers
Eigen::Matrix< int, Eigen::Dynamic, 3 > triangles
const std::unique_ptr< TextFileParser > parser
MicrostructureSpecificationBase(const std::string &type_in, const std::string &style_in)