https://mooseframework.inl.gov
Loading...
Searching...
No Matches
include
libtorch
fem
TorchPostKernel.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
// NEML2_ENABLED implies MOOSE_LIBTORCH_ENABLED (neml2 is built against libtorch), so the
13
// TorchKernel base is available here.
14
#ifdef NEML2_ENABLED
15
16
// MOOSE includes
17
#include "
TorchKernel.h
"
18
#include "
NEML2ModelExecutor.h
"
19
22
class
TorchPostKernel
:
public
TorchKernel
23
{
24
public
:
25
static
InputParameters
validParams
();
26
27
TorchPostKernel
(
const
InputParameters
&
parameters
);
28
29
protected
:
31
const
NEML2ModelExecutor
&
_constitutive
;
32
};
33
34
#endif
// NEML2_ENABLED
NEML2ModelExecutor.h
TorchKernel.h
InputParameters
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
Definition
InputParameters.h:68
MooseBase::parameters
const InputParameters & parameters() const
Get the parameters of the object.
Definition
MooseBase.h:131
NEML2ModelExecutor
NEML2ModelExecutor executes a NEML2 model.
Definition
NEML2ModelExecutor.h:24
TorchKernel
TorchKernel is a conceptual extension of a MOOSE kernel that operates on batched libtorch tensors.
Definition
TorchKernel.h:37
TorchPostKernel
Base class for Torch FEM kernels that operate after the constitutive update, reading a NEML2 model's ...
Definition
TorchPostKernel.h:23
TorchPostKernel::_constitutive
const NEML2ModelExecutor & _constitutive
the constitutive model
Definition
TorchPostKernel.h:31
TorchPostKernel::validParams
static InputParameters validParams()
Definition
TorchPostKernel.C:16
Generated on Wed Nov 11 2026 20:17:27 for https://mooseframework.inl.gov by
1.9.8