27#include "neml2/models/Model.h"
31namespace crystallography
The wrapper (decorator) for cross-referencing unresolved values at parse time.
Definition CrossRef.h:52
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
A custom map-like data structure. The keys are strings, and the values can be nonhomogeneously typed.
Definition OptionSet.h:59
A helper model to calculate the sum of the absolute value of the slip rates.
Definition SumSlipRates.h:38
SumSlipRates(const OptionSet &options)
Definition SumSlipRates.cxx:56
Variable< Scalar > & _sg
Sum of the absolute slip rates.
Definition SumSlipRates.h:58
const VariableName sum_slip_rates
Output: sum of the absolute values.
Definition SumSlipRates.h:48
const Variable< BatchTensor > & _g
Slip rates.
Definition SumSlipRates.h:61
const crystallography::CrystalGeometry & _crystal_geometry
Crystal geometry class with slip geometry.
Definition SumSlipRates.h:55
static OptionSet expected_options()
Definition SumSlipRates.cxx:37
const VariableName slip_rates
Input: list of slip rates.
Definition SumSlipRates.h:45
void set_value(bool out, bool dout_din, bool d2out_din2) override
Calculate the sum and the derivatives.
Definition SumSlipRates.cxx:66
Defines the geometry of a crystal system This includes a basic definition of the crystal lattice,...
Definition CrystalGeometry.h:48
Definition CrossRef.cxx:32