Crystal plasticity state variable userobject class.
More...
#include <CrystalPlasticityStateVariable.h>
Crystal plasticity state variable userobject class.
Definition at line 22 of file CrystalPlasticityStateVariable.h.
◆ CrystalPlasticityStateVariable()
CrystalPlasticityStateVariable::CrystalPlasticityStateVariable |
( |
const InputParameters & |
parameters | ) |
|
Definition at line 50 of file CrystalPlasticityStateVariable.C.
53 parameters.get<std::vector<std::string>>(
"uo_state_var_evol_rate_comp_name").size()),
57 _groups(getParam<std::vector<unsigned int>>(
"groups")),
59 _zero(getParam<Real>(
"zero")),
63 mooseError(
"CrystalPlasticityStateVariable: Scale factor should be have the same size of "
64 "evolution rate components.");
70 parameters.get<std::vector<std::string>>(
"uo_state_var_evol_rate_comp_name")[i]);
◆ initSlipSysProps()
void CrystalPlasticityStateVariable::initSlipSysProps |
( |
std::vector< Real > & |
val, |
|
|
const Point & |
q_point |
|
) |
| const |
|
virtual |
Definition at line 74 of file CrystalPlasticityStateVariable.C.
89 mooseError(
"CrystalPlasticityStateVariable: Read option for initial value of internal "
90 "variables is not supported.");
95 mooseError(
"CrystalPlasticityStateVariable: Value of state variables ", i,
" non positive");
◆ provideInitialValueByUser()
void CrystalPlasticityStateVariable::provideInitialValueByUser |
( |
std::vector< Real > & |
, |
|
|
const Point & |
|
|
) |
| const |
|
protectedvirtual |
Definition at line 143 of file CrystalPlasticityStateVariable.C.
146 mooseError(
"Error CrystalPlasticityStateVariable: User has to overwrite "
147 "'provideInitialValueByUser' function"
148 "in order to provide specific initial values based on quadrature point location.");
Referenced by initSlipSysProps().
◆ readInitialValueFromFile()
void CrystalPlasticityStateVariable::readInitialValueFromFile |
( |
std::vector< Real > & |
val | ) |
const |
|
protectedvirtual |
◆ readInitialValueFromInline()
void CrystalPlasticityStateVariable::readInitialValueFromInline |
( |
std::vector< Real > & |
val | ) |
const |
|
protectedvirtual |
Definition at line 114 of file CrystalPlasticityStateVariable.C.
117 mooseError(
"CrystalPlasticityStateVariable: Error in reading initial state variable values: "
118 "Specify input in .i file or in state_variable file");
121 "CrystalPlasticityStateVariable: The size of the groups and group_values does not match.");
123 for (
unsigned int i = 0; i <
_groups.size() - 1; ++i)
131 mooseError(
"CrystalPlasticityStateVariable: Start index is = ",
133 " should be greater than end index ie = ",
135 " in state variable read");
137 for (
unsigned int j = is; j <= ie; ++j)
Referenced by initSlipSysProps().
◆ updateStateVariable()
bool CrystalPlasticityStateVariable::updateStateVariable |
( |
unsigned int |
qp, |
|
|
Real |
dt, |
|
|
std::vector< Real > & |
val, |
|
|
std::vector< Real > & |
val_old |
|
) |
| const |
|
virtual |
◆ validParams()
InputParameters CrystalPlasticityStateVariable::validParams |
( |
| ) |
|
|
static |
Definition at line 19 of file CrystalPlasticityStateVariable.C.
22 params.addParam<FileName>(
23 "state_variable_file_name",
25 "Name of the file containing the initial values of slip system resistances");
26 MooseEnum intvar_read_options(
"file_input inline_input user_input",
"inline_input");
27 params.addParam<MooseEnum>(
30 "Read from options for initial value of internal variables: Default from .i file");
31 params.addParam<std::vector<unsigned int>>(
"groups",
32 "To group the initial values on different "
33 "slip systems 'format: [start end)', i.e.'0 "
34 "4 8 11' groups 0-3, 4-7 and 8-11 ");
35 params.addParam<std::vector<Real>>(
"group_values",
36 "The initial values corresponding to each "
37 "group, i.e. '0.0 1.0 2.0' means 0-4 = 0.0, "
38 "4-8 = 1.0 and 8-12 = 2.0 ");
39 params.addParam<std::vector<std::string>>(
"uo_state_var_evol_rate_comp_name",
40 "Name of state variable evolution rate component "
41 "property: Same as state variable evolution rate "
42 "component user object specified in input file.");
43 params.addParam<Real>(
"zero", 0.0,
"Numerical zero for interval variable");
44 params.addParam<std::vector<Real>>(
"scale_factor",
"Scale factor of individual component.");
45 params.addClassDescription(
46 "Crystal plasticity state variable class. Override the virtual functions in your class");
◆ variableSize()
unsigned int CrystalPlasticityUOBase::variableSize |
( |
| ) |
const |
|
virtualinherited |
◆ _group_values
std::vector<Real> CrystalPlasticityStateVariable::_group_values |
|
protected |
The _group_values are the initial values corresponding to each group.
i.e. _groups = '0 4 8 11', and _group_values = '1.0 2.0 3.0' it means that initial values of slip system 0-3 is 1.0 , 4-7 is 2.0 and 8-11 is 3.0
Definition at line 66 of file CrystalPlasticityStateVariable.h.
Referenced by readInitialValueFromInline().
◆ _groups
std::vector<unsigned int> CrystalPlasticityStateVariable::_groups |
|
protected |
◆ _intvar_read_type
MooseEnum CrystalPlasticityStateVariable::_intvar_read_type |
|
protected |
◆ _mat_prop_state_var
const MaterialProperty<std::vector<Real> >& CrystalPlasticityStateVariable::_mat_prop_state_var |
|
protected |
◆ _mat_prop_state_var_evol_rate_comps
std::vector<const MaterialProperty<std::vector<Real> > *> CrystalPlasticityStateVariable::_mat_prop_state_var_evol_rate_comps |
|
protected |
◆ _num_mat_state_var_evol_rate_comps
unsigned int CrystalPlasticityStateVariable::_num_mat_state_var_evol_rate_comps |
|
protected |
◆ _scale_factor
std::vector<Real> CrystalPlasticityStateVariable::_scale_factor |
|
protected |
◆ _state_variable_file_name
FileName CrystalPlasticityStateVariable::_state_variable_file_name |
|
protected |
◆ _variable_size
unsigned int CrystalPlasticityUOBase::_variable_size |
|
protectedinherited |
Definition at line 33 of file CrystalPlasticityUOBase.h.
Referenced by CrystalPlasticitySlipRateGSS::calcFlowDirection(), CrystalPlasticitySlipRateGSS::calcSlipRate(), CrystalPlasticitySlipRateGSS::calcSlipRateDerivative(), CrystalPlasticitySlipResistanceGSS::calcSlipResistance(), CrystalPlasticityStateVarRateComponentGSS::calcStateVariableEvolutionRateComponent(), CrystalPlasticityStateVarRateComponentVoce::calcStateVariableEvolutionRateComponent(), CrystalPlasticitySlipRateGSS::getFlowRateParams(), CrystalPlasticitySlipRate::getSlipSystems(), initSlipSysProps(), CrystalPlasticityStateVarRateComponentVoce::initSlipSystemGroupID(), CrystalPlasticityStateVarRateComponentVoce::initSlipSystemPlaneID(), CrystalPlasticitySlipRateGSS::readFileFlowRateParams(), readInitialValueFromFile(), updateStateVariable(), and CrystalPlasticityUOBase::variableSize().
◆ _zero
Real CrystalPlasticityStateVariable::_zero |
|
protected |
The documentation for this class was generated from the following files: