www.mooseframework.org
CrystalPlasticitySlipResistanceGSS.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
11 
13 
16 {
18  params.addParam<std::string>("uo_state_var_name",
19  "Name of state variable property: Same as "
20  "state variable user object specified in input "
21  "file.");
22  params.addClassDescription("Phenomenological constitutive models' slip resistance base class. "
23  "Override the virtual functions in your class");
24  return params;
25 }
26 
28  const InputParameters & parameters)
29  : CrystalPlasticitySlipResistance(parameters),
30  _mat_prop_state_var(
31  getMaterialProperty<std::vector<Real>>(parameters.get<std::string>("uo_state_var_name")))
32 {
33 }
34 
35 bool
37  std::vector<Real> & val) const
38 {
39  for (unsigned int i = 0; i < _variable_size; ++i)
40  val[i] = _mat_prop_state_var[qp][i];
41 
42  return true;
43 }
const MaterialProperty< std::vector< Real > > & _mat_prop_state_var
registerMooseObject("SolidMechanicsApp", CrystalPlasticitySlipResistanceGSS)
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
CrystalPlasticitySlipResistanceGSS(const InputParameters &parameters)
Phenomenological constitutive model slip resistance userobject class.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void addClassDescription(const std::string &doc_string)
Crystal plasticity slip resistance userobject class.
virtual bool calcSlipResistance(unsigned int qp, std::vector< Real > &val) const
const Elem & get(const ElemType type_in)