25#include "neml2/models/solid_mechanics/KocksMeckingYieldStress.h"
36 options.doc() =
"The yield stress given by the Kocks-Mecking model. \\f$ \\sigma_y = \\exp{C} "
37 "\\mu \\f$ with \\f$ \\mu \\f$ the shear modulus and \\f$ C \\f$ the horizontal "
38 "intercept from the Kocks-Mecking diagram.";
41 options.set(
"C").doc() =
"The Kocks-Mecking horizontal intercept";
43 options.set(
"shear_modulus").doc() =
"The shear modulus";
50 _C(declare_parameter<
Scalar>(
"C",
"C")),
51 _mu(declare_parameter<
Scalar>(
"shear_modulus",
"shear_modulus"))
The wrapper (decorator) for cross-referencing unresolved values at parse time.
Definition CrossRef.h:52
A scalar-valued parameter defined by (mu0 - D/(exp(T0/T)-1)) * exp(_C)
Definition KocksMeckingYieldStress.h:35
const Scalar & _C
The Kocks-Mecking intercept value.
Definition KocksMeckingYieldStress.h:45
KocksMeckingYieldStress(const OptionSet &options)
Definition KocksMeckingYieldStress.cxx:48
const Scalar & _mu
The shear modulus.
Definition KocksMeckingYieldStress.h:48
static OptionSet expected_options()
Definition KocksMeckingYieldStress.cxx:32
void set_value(bool out, bool dout_din, bool d2out_din2) override
The map between input -> output, and optionally its derivatives.
Definition KocksMeckingYieldStress.cxx:56
const torch::TensorOptions & options() const
This model's tensor options.
Definition Model.h:116
The base class for nonlinear parameters.
Definition NonlinearParameter.h:51
Variable< Scalar > & _p
The nonlinear parameter.
Definition NonlinearParameter.h:62
static OptionSet expected_options()
Definition NonlinearParameter.cxx:31
A custom map-like data structure. The keys are strings, and the values can be nonhomogeneously typed.
Definition OptionSet.h:59
const VariableBase * nl_param(const std::string &) const
Query the existence of a nonlinear parameter.
Definition ParameterStore.cxx:56
The (logical) scalar.
Definition Scalar.h:38
Derivative d(const VariableBase &x)
Create a wrapper representing the derivative dy/dx.
Definition Variable.cxx:102
Derived exp(const Derived &a)
Definition BatchTensorBase.h:448
Definition CrossRef.cxx:32