Mechanics of Defect Evolution Library
Loading...
Searching...
No Matches
src
MicrostructureGeneration
ShearLoopDensitySpecification.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_ShearLoopDensitySpecification_cpp_
9
#define model_ShearLoopDensitySpecification_cpp_
10
11
#include <
ShearLoopDensitySpecification.h
>
12
13
namespace
model
14
{
15
ShearLoopDensitySpecification::ShearLoopDensitySpecification
():
16
/* init */
MicrostructureSpecificationBase
(
"ShearLoop"
,
"Density"
)
17
/* init */
,
targetDensity_SI
(0.0)
18
/* init */
,
numberOfSides
(0)
19
/* init */
,
radiusDistributionMean_SI
(0.0)
20
/* init */
,
radiusDistributionStd_SI
(0.0)
21
/* init */
,
allowedGrainIDs
({-1})
22
/* init */
,allowedSlipSystemIDs({-1})
23
{
24
25
}
26
27
ShearLoopDensitySpecification::ShearLoopDensitySpecification
(
const
std::string& fileName):
28
/* init */
MicrostructureSpecificationBase
(
"ShearLoop"
,
"Density"
,fileName)
29
/* init */
,
targetDensity_SI
(this->
parser
->readScalar<double>(
"targetDensity_SI"
,true))
30
/* init */
,
numberOfSides
(
targetDensity_SI
>0.0? this->
parser
->readScalar<int>(
"numberOfSides"
,true) : 0)
31
/* init */
,
radiusDistributionMean_SI
(
targetDensity_SI
>0.0? this->
parser
->readScalar<double>(
"radiusDistributionMean_SI"
,true) : 0.0)
32
/* init */
,
radiusDistributionStd_SI
(
targetDensity_SI
>0.0? this->
parser
->readScalar<double>(
"radiusDistributionStd_SI"
,true) : 0.0)
33
/* init */
,
allowedGrainIDs
(this->
parser
->readArray<int>(
"allowedGrainIDs"
,true))
34
/* init */
,
allowedSlipSystemIDs
(this->
parser
->readArray<int>(
"allowedSlipSystemIDs"
,true))
35
{
36
37
}
38
}
39
#endif
ShearLoopDensitySpecification.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::ShearLoopDensitySpecification::allowedSlipSystemIDs
std::vector< int > allowedSlipSystemIDs
Definition
ShearLoopDensitySpecification.h:27
model::ShearLoopDensitySpecification::numberOfSides
int numberOfSides
Definition
ShearLoopDensitySpecification.h:23
model::ShearLoopDensitySpecification::targetDensity_SI
double targetDensity_SI
Definition
ShearLoopDensitySpecification.h:22
model::ShearLoopDensitySpecification::ShearLoopDensitySpecification
ShearLoopDensitySpecification()
Definition
ShearLoopDensitySpecification.cpp:15
model::ShearLoopDensitySpecification::radiusDistributionStd_SI
double radiusDistributionStd_SI
Definition
ShearLoopDensitySpecification.h:25
model::ShearLoopDensitySpecification::radiusDistributionMean_SI
double radiusDistributionMean_SI
Definition
ShearLoopDensitySpecification.h:24
model::ShearLoopDensitySpecification::allowedGrainIDs
std::vector< int > allowedGrainIDs
Definition
ShearLoopDensitySpecification.h:26
Generated by
1.15.0