www.mooseframework.org
CrystalPlasticitySlipResistanceGSS.C
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
8 
9 template <>
10 InputParameters
12 {
13  InputParameters params = validParams<CrystalPlasticitySlipResistance>();
14  params.addParam<std::string>("uo_state_var_name",
15  "Name of state variable property: Same as "
16  "state variable user object specified in input "
17  "file.");
18  params.addClassDescription("Phenomenological constitutive models' slip resistance base class. "
19  "Override the virtual functions in your class");
20  return params;
21 }
22 
24  const InputParameters & parameters)
25  : CrystalPlasticitySlipResistance(parameters),
26  _mat_prop_state_var(
27  getMaterialProperty<std::vector<Real>>(parameters.get<std::string>("uo_state_var_name")))
28 {
29 }
30 
31 bool
33  std::vector<Real> & val) const
34 {
35  for (unsigned int i = 0; i < _variable_size; ++i)
36  val[i] = _mat_prop_state_var[qp][i];
37 
38  return true;
39 }
const MaterialProperty< std::vector< Real > > & _mat_prop_state_var
CrystalPlasticitySlipResistanceGSS(const InputParameters &parameters)
InputParameters validParams< CrystalPlasticitySlipResistanceGSS >()
InputParameters validParams< CrystalPlasticitySlipResistance >()
virtual bool calcSlipResistance(unsigned int qp, std::vector< Real > &val) const
Crystal plasticity slip resistance userobject class.