https://mooseframework.inl.gov
NEML2PreKernel.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 #ifdef NEML2_ENABLED
13 
14 // MOOSE includes
15 #include "NEML2Kernel.h"
16 #include "MOOSEToNEML2.h"
17 
19 class NEML2PreKernel : public NEML2Kernel, public MOOSEToNEML2
20 {
21 public:
23 
25 
26  neml2::Tensor gatheredData() const override { return _output; }
27 };
28 
29 #endif
neml2::Tensor gatheredData() const override
Convert data gathered from MOOSE into neml2::Tensor.
const InputParameters & parameters() const
Get the parameters of the object.
Definition: MooseBase.h:131
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
neml2::Tensor _output
The output of the forward operator.
Definition: NEML2Kernel.h:55
Base class for NEML2 kernels that operate before the constitutive update.
static InputParameters validParams()
Common interface for inserting gathered MOOSE data into the NEML2 material model. ...
Definition: MOOSEToNEML2.h:28
NEML2PreKernel(const InputParameters &parameters)
NEML2Kernel is a conceptual extension of MOOSE kernel that operates on NEML2 tensors.
Definition: NEML2Kernel.h:33