https://mooseframework.inl.gov
MOOSEVariableToNEML2.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://mooseframework.inl.gov
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #pragma once
11 
12 #include "MOOSEToNEML2Batched.h"
13 
17 template <unsigned int state>
19 {
20 public:
22 
24 
25 #ifdef NEML2_ENABLED
26 protected:
27  const MooseArray<Real> & elemMOOSEData() const override { return _moose_variable; }
28 
31 #endif
32 };
33 
Gather a MOOSE variable for insertion into the NEML2 model.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
Generic gatherer for collecting "batched" MOOSE data for NEML2.
const MooseArray< Real > & elemMOOSEData() const override
MOOSE data for the current element.
const VariableValue & _moose_variable
Coupled MOOSE variable to read data from.
static InputParameters validParams()
MOOSEVariableToNEML2Templ(const InputParameters &params)