https://mooseframework.inl.gov
Loading...
Searching...
No Matches
CrystalPlasticitySlipResistanceGSS.C
Go to the documentation of this file.
1//* This file is part of the MOOSE framework
2//* https://mooseframework.inl.gov
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)
30 _mat_prop_state_var(
31 getMaterialProperty<std::vector<Real>>(parameters.get<std::string>("uo_state_var_name")))
32{
33}
34
35bool
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}
registerMooseObject("SolidMechanicsApp", CrystalPlasticitySlipResistanceGSS)
Phenomenological constitutive model slip resistance userobject class.
virtual bool calcSlipResistance(unsigned int qp, std::vector< Real > &val) const
CrystalPlasticitySlipResistanceGSS(const InputParameters &parameters)
const MaterialProperty< std::vector< Real > > & _mat_prop_state_var
Crystal plasticity slip resistance userobject class.
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)