https://mooseframework.inl.gov
Loading...
Searching...
No Matches
TorchSmallStrain.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 "TorchPreKernel.h"
16
18{
19public:
21
23
24protected:
26 void forward() override;
27
30 const at::Tensor * _grad_disp_x;
31 const at::Tensor * _grad_disp_y;
32 const at::Tensor * _grad_disp_z;
34};
35
36#endif // NEML2_ENABLED
const InputParameters & parameters() const
void forward() override
Calculate small strain from displacement gradients.
const at::Tensor * _grad_disp_x
Displacement gradients.
const at::Tensor * _grad_disp_y
static InputParameters validParams()
const at::Tensor * _grad_disp_z