Go to the source code of this file.
Classes | |
struct | NEML2Utils::Layout< T > |
struct | NEML2Utils::Layout< Real > |
struct | NEML2Utils::Layout< RealVectorValue > |
struct | NEML2Utils::Layout< RankTwoTensor > |
struct | NEML2Utils::Layout< SymmetricRankTwoTensor > |
struct | NEML2Utils::Layout< RankFourTensor > |
struct | NEML2Utils::Layout< SymmetricRankFourTensor > |
Namespaces | |
NEML2Utils | |
Functions | |
std::shared_ptr< neml2::Model > | NEML2Utils::getModel (neml2::Factory &factory, const std::string &name, neml2::Dtype dtype=neml2::kFloat64) |
Get the NEML2 Model. More... | |
void | NEML2Utils::assertVariable (const neml2::VariableName &) |
Assert that the NEML2 variable name sits on either the forces or the state subaxis. More... | |
void | NEML2Utils::assertOldVariable (const neml2::VariableName &) |
Assert that the NEML2 variable name sits on either the old_forces or the old_state subaxis. More... | |
neml2::VariableName | NEML2Utils::parseVariableName (const std::string &) |
Parse a raw string into NEML2 variable name. More... | |
template<typename T > | |
neml2::Tensor | NEML2Utils::fromBlob (const std::vector< T > &data) |
Map from std::vector<T> to neml2::Tensor without copying the data. More... | |
template<typename T > | |
void | NEML2Utils::copyTensorToMOOSEData (const at::Tensor &src, T &dest) |
Directly copy a contiguous chunk of memory of a at::Tensor to a MOOSE data of type T. More... | |
bool | NEML2Utils::shouldCompute (const SubProblem &) |
Determine whether the NEML2 material model should be evaluated. More... | |
std::string | NEML2Utils::docstring (const std::string &desc) |
Augment docstring if NEML2 is not enabled. More... | |
void | NEML2Utils::assertNEML2Enabled () |
Assert that NEML2 is enabled. More... | |
Variables | |
static std::string | NEML2Utils::NEML2_help_message |