Mechanics of Defect Evolution Library
Loading...
Searching...
No Matches
PrismaticLoopDensitySpecification.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_PrismaticLoopDensitySpecification_cpp_
9#define model_PrismaticLoopDensitySpecification_cpp_
10
12
13namespace model
14{
16 /* init */ MicrostructureSpecificationBase("PrismaticLoop","Density")
17 /* init */,targetDensity(0.0)
18 /* init */,radiusDistributionMean(0.0)
19 /* init */,radiusDistributionStd(0.0)
20 /* init */,allowedGrainIDs({-1})
21 /* init */,allowedSlipSystemIDs({-1})
22 {
23
24 }
25
27 /* init */ MicrostructureSpecificationBase("PrismaticLoop","Density",fileName)
28 /* init */,targetDensity(this->parser->readScalar<double>("targetDensity_SI",true))
29 /* init */,radiusDistributionMean(this->parser->readScalar<double>("radiusDistributionMean_SI",true))
30 /* init */,radiusDistributionStd(this->parser->readScalar<double>("radiusDistributionStd_SI",true))
31 /* init */,allowedGrainIDs(this->parser->readArray<int>("allowedGrainIDs",true))
32 /* init */,allowedSlipSystemIDs(this->parser->readArray<int>("allowedSlipSystemIDs",true))
33 {
34
35 }
36}
37#endif
const std::unique_ptr< TextFileParser > parser
MicrostructureSpecificationBase(const std::string &type_in, const std::string &style_in)