25#include "neml2/models/solid_mechanics/crystal_plasticity/LinearSingleSlipHardeningRule.h"
36 options.doc() =
"Simple linear slip system hardening defined by \\f$ \\dot{\\tau} = \\theta "
37 "\\sum_{i=1}^{n_{slip}} \\left| \\dot{\\gamma}_i \\right| \\f$ where \\f$ "
38 "\\theta \\f$ is the hardening slope.";
41 options.set(
"hardening_slope").doc() =
"Hardening rate";
48 _theta(declare_parameter<
Scalar>(
"hardening_slope",
"hardening_slope"))
The wrapper (decorator) for cross-referencing unresolved values at parse time.
Definition CrossRef.h:52
Linear slip hardening of the type .
Definition LinearSingleSlipHardeningRule.h:33
const Scalar & _theta
Hardening rate.
Definition LinearSingleSlipHardeningRule.h:43
LinearSingleSlipHardeningRule(const OptionSet &options)
Definition LinearSingleSlipHardeningRule.cxx:46
static OptionSet expected_options()
Definition LinearSingleSlipHardeningRule.cxx:32
void set_value(bool out, bool dout_din, bool d2out_din2) override
The map between input -> output, and optionally its derivatives.
Definition LinearSingleSlipHardeningRule.cxx:53
const torch::TensorOptions & options() const
This model's tensor options.
Definition Model.h:116
A custom map-like data structure. The keys are strings, and the values can be nonhomogeneously typed.
Definition OptionSet.h:59
The (logical) scalar.
Definition Scalar.h:38
Any slip rule where all systems share the same strength.
Definition SingleSlipHardeningRule.h:33
Variable< Scalar > & _tau_dot
Hardening rate.
Definition SingleSlipHardeningRule.h:41
static OptionSet expected_options()
Definition SingleSlipHardeningRule.cxx:33
const Variable< Scalar > & _gamma_dot_sum
Sum of the absolute value of the slip rates.
Definition SingleSlipHardeningRule.h:47
Derivative d(const VariableBase &x)
Create a wrapper representing the derivative dy/dx.
Definition Variable.cxx:102
Definition CrossRef.cxx:32
void neml_assert_dbg(bool assertion, Args &&... args)
Definition error.h:85