25#include "neml2/models/solid_mechanics/GursonCavitation.h"
26#include "neml2/tensors/SSR4.h"
36 options.doc() =
"Local mass balance used in conjunction with the GTNYieldFunction, \\f$ "
37 "\\dot{\\phi} = (1-\\phi) \\dot{\\varepsilon}_p \\f$.";
40 options.set(
"plastic_strain_rate").doc() =
"Plastic strain rate";
43 options.set(
"void_fraction").doc() =
"Void fraction (porosity)";
46 options.set(
"void_fraction_rate").doc() =
"Rate of void evolution";
53 _phi_dot(declare_output_variable<
Scalar>(
"void_fraction_rate")),
54 _Ep_dot(declare_input_variable<
SR2>(
"plastic_strain_rate")),
55 _phi(declare_input_variable<
Scalar>(
"void_fraction"))
The wrapper (decorator) for cross-referencing unresolved values at parse time.
Definition CrossRef.h:52
Definition GursonCavitation.h:32
GursonCavitation(const OptionSet &options)
Definition GursonCavitation.cxx:51
const Variable< SR2 > & _Ep_dot
Plastic strain rate.
Definition GursonCavitation.h:46
Variable< Scalar > & _phi_dot
Void fraction rate.
Definition GursonCavitation.h:43
static OptionSet expected_options()
Definition GursonCavitation.cxx:33
const Variable< Scalar > & _phi
Current void fraction.
Definition GursonCavitation.h:49
void set_value(bool out, bool dout_din, bool d2out_din2) override
The flow direction.
Definition GursonCavitation.cxx:60
The accessor containing all the information needed to access an item in a LabeledAxis.
Definition LabeledAxisAccessor.h:44
The base class for all constitutive models.
Definition Model.h:53
const torch::TensorOptions & options() const
This model's tensor options.
Definition Model.h:116
static OptionSet expected_options()
Definition Model.cxx:33
A custom map-like data structure. The keys are strings, and the values can be nonhomogeneously typed.
Definition OptionSet.h:59
The (logical) symmetric second order tensor.
Definition SR2.h:46
Scalar tr() const
Trace.
Definition SR2.cxx:155
static SR2 identity(const torch::TensorOptions &options=default_tensor_options())
Identity.
Definition SR2.cxx:110
The (logical) scalar.
Definition Scalar.h:38
Derivative d(const VariableBase &x)
Create a wrapper representing the derivative dy/dx.
Definition Variable.cxx:102
Definition CrossRef.cxx:32
LabeledAxisAccessor VariableName
Definition Variable.h:35