Mechanics of Defect Evolution Library
Loading...
Searching...
No Matches
src
MicrostructureGeneration
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
11
#include <
PrismaticLoopDensitySpecification.h
>
12
13
namespace
model
14
{
15
PrismaticLoopDensitySpecification::PrismaticLoopDensitySpecification
():
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
26
PrismaticLoopDensitySpecification::PrismaticLoopDensitySpecification
(
const
std::string& fileName):
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
PrismaticLoopDensitySpecification.h
model
Definition
DD_converter.dox:2
model::MicrostructureSpecificationBase::parser
const std::unique_ptr< TextFileParser > parser
Definition
MicrostructureSpecificationBase.h:25
model::MicrostructureSpecificationBase::MicrostructureSpecificationBase
MicrostructureSpecificationBase(const std::string &type_in, const std::string &style_in)
Definition
MicrostructureSpecificationBase.cpp:17
model::PrismaticLoopDensitySpecification::radiusDistributionMean
double radiusDistributionMean
Definition
PrismaticLoopDensitySpecification.h:23
model::PrismaticLoopDensitySpecification::allowedSlipSystemIDs
std::vector< int > allowedSlipSystemIDs
Definition
PrismaticLoopDensitySpecification.h:26
model::PrismaticLoopDensitySpecification::PrismaticLoopDensitySpecification
PrismaticLoopDensitySpecification()
Definition
PrismaticLoopDensitySpecification.cpp:15
model::PrismaticLoopDensitySpecification::radiusDistributionStd
double radiusDistributionStd
Definition
PrismaticLoopDensitySpecification.h:24
model::PrismaticLoopDensitySpecification::allowedGrainIDs
std::vector< int > allowedGrainIDs
Definition
PrismaticLoopDensitySpecification.h:25
model::PrismaticLoopDensitySpecification::targetDensity
double targetDensity
Definition
PrismaticLoopDensitySpecification.h:22
Generated by
1.15.0