#include <ElementPropertyReadFile.h>
Public Member Functions | |
ElementPropertyReadFile (const InputParameters ¶meters) | |
virtual | ~ElementPropertyReadFile () |
virtual void | initialize () |
virtual void | execute () |
virtual void | finalize () |
void | readElementData () |
This function reads element data from file. More... | |
virtual void | readGrainData () |
This function Read grain data from file. More... | |
virtual void | initGrainCenterPoints () |
This function generates grain center point Presently random generated. More... | |
Real | getData (const Elem *, unsigned int) const |
This function assign property data to elements. More... | |
Real | getElementData (const Elem *, unsigned int) const |
This function assign properties to element read from file with element based properties. More... | |
Real | getGrainData (const Elem *, unsigned int) const |
This function assign properties to element read from file with grain based properties Grain distribution in the RVE can be Periodic or non-periodic (default) More... | |
Real | minPeriodicDistance (Point, Point) const |
This function calculates minimum distance between 2 points considering periodicity of the simulation volume. More... | |
Static Public Member Functions | |
static InputParameters | validParams () |
Protected Attributes | |
std::string | _prop_file_name |
Name of file containing property values. More... | |
std::vector< Real > | _data |
Store property values read from file. More... | |
unsigned int | _nprop |
Number of properties in a row. More... | |
unsigned int | _ngrain |
Number of grains (for property read based on grains) More... | |
MooseEnum | _read_type |
Type of read - element or grain. More... | |
unsigned int | _rand_seed |
Random seed - used for generating grain centers. More... | |
MooseEnum | _rve_type |
Type of grain structure - non-periodic default. More... | |
MooseMesh & | _mesh |
std::vector< Point > | _center |
Private Attributes | |
unsigned int | _nelem |
Point | _top_right |
Point | _bottom_left |
Point | _range |
Real | _max_range |
Definition at line 27 of file ElementPropertyReadFile.h.
ElementPropertyReadFile::ElementPropertyReadFile | ( | const InputParameters & | parameters | ) |
Definition at line 42 of file ElementPropertyReadFile.C.
|
inlinevirtual |
Definition at line 33 of file ElementPropertyReadFile.h.
|
inlinevirtual |
Definition at line 36 of file ElementPropertyReadFile.h.
|
inlinevirtual |
Definition at line 37 of file ElementPropertyReadFile.h.
Real ElementPropertyReadFile::getData | ( | const Elem * | elem, |
unsigned int | prop_num | ||
) | const |
This function assign property data to elements.
Definition at line 126 of file ElementPropertyReadFile.C.
Referenced by ComputeElasticityTensorCP::assignEulerAngles().
Real ElementPropertyReadFile::getElementData | ( | const Elem * | elem, |
unsigned int | prop_num | ||
) | const |
This function assign properties to element read from file with element based properties.
Definition at line 140 of file ElementPropertyReadFile.C.
Referenced by getData().
Real ElementPropertyReadFile::getGrainData | ( | const Elem * | elem, |
unsigned int | prop_num | ||
) | const |
This function assign properties to element read from file with grain based properties Grain distribution in the RVE can be Periodic or non-periodic (default)
Definition at line 153 of file ElementPropertyReadFile.C.
Referenced by getData().
|
virtual |
This function generates grain center point Presently random generated.
Definition at line 116 of file ElementPropertyReadFile.C.
Referenced by readGrainData().
|
inlinevirtual |
Definition at line 35 of file ElementPropertyReadFile.h.
Real ElementPropertyReadFile::minPeriodicDistance | ( | Point | c, |
Point | p | ||
) | const |
This function calculates minimum distance between 2 points considering periodicity of the simulation volume.
Definition at line 194 of file ElementPropertyReadFile.C.
Referenced by getGrainData().
void ElementPropertyReadFile::readElementData | ( | ) |
This function reads element data from file.
Definition at line 79 of file ElementPropertyReadFile.C.
Referenced by ElementPropertyReadFile().
|
virtual |
This function Read grain data from file.
Definition at line 97 of file ElementPropertyReadFile.C.
Referenced by ElementPropertyReadFile().
|
static |
Definition at line 21 of file ElementPropertyReadFile.C.
|
private |
Definition at line 99 of file ElementPropertyReadFile.h.
Referenced by ElementPropertyReadFile(), and initGrainCenterPoints().
|
protected |
Definition at line 94 of file ElementPropertyReadFile.h.
Referenced by getGrainData(), and initGrainCenterPoints().
|
protected |
Store property values read from file.
Definition at line 81 of file ElementPropertyReadFile.h.
Referenced by getElementData(), getGrainData(), readElementData(), and readGrainData().
|
private |
Definition at line 101 of file ElementPropertyReadFile.h.
Referenced by ElementPropertyReadFile(), and getGrainData().
|
protected |
Definition at line 93 of file ElementPropertyReadFile.h.
Referenced by ElementPropertyReadFile().
|
private |
Definition at line 97 of file ElementPropertyReadFile.h.
Referenced by ElementPropertyReadFile(), getElementData(), and readElementData().
|
protected |
Number of grains (for property read based on grains)
Definition at line 85 of file ElementPropertyReadFile.h.
Referenced by getGrainData(), initGrainCenterPoints(), and readGrainData().
|
protected |
Number of properties in a row.
Definition at line 83 of file ElementPropertyReadFile.h.
Referenced by getElementData(), getGrainData(), readElementData(), and readGrainData().
|
protected |
Name of file containing property values.
Definition at line 79 of file ElementPropertyReadFile.h.
Referenced by readElementData(), and readGrainData().
|
protected |
Random seed - used for generating grain centers.
Definition at line 89 of file ElementPropertyReadFile.h.
Referenced by initGrainCenterPoints().
|
private |
Definition at line 100 of file ElementPropertyReadFile.h.
Referenced by ElementPropertyReadFile(), initGrainCenterPoints(), and minPeriodicDistance().
|
protected |
Type of read - element or grain.
Definition at line 87 of file ElementPropertyReadFile.h.
Referenced by ElementPropertyReadFile(), and getData().
|
protected |
Type of grain structure - non-periodic default.
Definition at line 91 of file ElementPropertyReadFile.h.
Referenced by getGrainData().
|
private |
Definition at line 98 of file ElementPropertyReadFile.h.
Referenced by ElementPropertyReadFile().