NEML2 2.0.0
All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
R4.h
1// Copyright 2024, UChicago Argonne, LLC
2// All Rights Reserved
3// Software Name: NEML2 -- the New Engineering material Model Library, version 2
4// By: Argonne National Laboratory
5// OPEN SOURCE LICENSE (MIT)
6//
7// Permission is hereby granted, free of charge, to any person obtaining a copy
8// of this software and associated documentation files (the "Software"), to deal
9// in the Software without restriction, including without limitation the rights
10// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11// copies of the Software, and to permit persons to whom the Software is
12// furnished to do so, subject to the following conditions:
13//
14// The above copyright notice and this permission notice shall be included in
15// all copies or substantial portions of the Software.
16//
17// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23// THE SOFTWARE.
24
25#pragma once
26
27#include "neml2/tensors/PrimitiveTensor.h"
28
29namespace neml2
30{
31class Scalar;
32class SSR4;
33class R5;
34class Rot;
35class WWR4;
36class R8;
37
43class R4 : public PrimitiveTensor<R4, 3, 3, 3, 3>
44{
45public:
46 using PrimitiveTensor<R4, 3, 3, 3, 3>::PrimitiveTensor;
47
48 R4(const SSR4 & T);
49
50 R4(const WWR4 & T);
51
53 R4 rotate(const Rot & r) const;
54
56 R5 drotate(const Rot & r) const;
57
59 R8 drotate_self(const Rot & r) const;
60
62 Scalar operator()(Size i, Size j, Size k, Size l) const;
63
65 R4 transpose(Size d1, Size d2) const;
66
68 R4 transpose_minor() const;
69
71 R4 transpose_major() const;
72};
73} // namespace neml2
R4 rotate(const Rot &r) const
Rotate.
Definition R4.cxx:51
R8 drotate_self(const Rot &r) const
Derivative of the rotated tensor w.r.t. itself.
Definition R4.cxx:77
R4(const SSR4 &T)
Definition R4.cxx:40
Scalar operator()(Size i, Size j, Size k, Size l) const
Accessor.
Definition R4.cxx:90
R4 transpose_major() const
Transpose major axes.
Definition R4.cxx:108
R4 transpose(Size d1, Size d2) const
Arbitrary transpose two dimensions.
Definition R4.cxx:96
R4 transpose_minor() const
Transpose minor axes.
Definition R4.cxx:102
R5 drotate(const Rot &r) const
Derivative of the rotated tensor w.r.t. the Rodrigues vector.
Definition R4.cxx:61
Fifth order tensor without symmetry.
Definition R5.h:37
The (logical) full eighth order tensor.
Definition R8.h:37
Rotation stored as modified Rodrigues parameters.
Definition Rot.h:49
The symmetric fourth order tensor, with symmetry in the first two dimensionss as well as in the last ...
Definition SSR4.h:45
Scalar.
Definition Scalar.h:38
The symmetric fourth order tensor, with skew symmetry in the first two dimensions and last two dimens...
Definition WWR4.h:40
Definition DiagnosticsInterface.cxx:30
int64_t Size
Definition types.h:69