Mechanics of Defect Evolution Library
Loading...
Searching...
No Matches
PlanarLoopIndividualSpecification.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_PlanarLoopIndividualSpecification_cpp_
9#define model_PlanarLoopIndividualSpecification_cpp_
10
12
13namespace model
14{
16 /* init */ MicrostructureSpecificationBase("PlanarLoop","Individual")
17 /* init */,burgers(VectorDim::Zero())
18 /* init */,normal(VectorDim::Zero())
19 {
20
21 }
22
24 /* init */ MicrostructureSpecificationBase("PlanarLoop","Individual",fileName)
25 /* init */,loopPoints(this->parser->readMatrixCols<double>("loopPoints",3,true))
26 /* init */,burgers(loopPoints.rows()>2? this->parser->readMatrix<double>("burgers",1,3,true) : VectorDim::Zero())
27 /* init */,normal(loopPoints.rows()>2? this->parser->readMatrix<double>("normal",1,3,true) : VectorDim::Zero())
28 {
29
30 }
31}
32#endif
const std::unique_ptr< TextFileParser > parser
MicrostructureSpecificationBase(const std::string &type_in, const std::string &style_in)
Eigen::Matrix< double, Eigen::Dynamic, 3 > loopPoints