NEML2 1.4.0
Loading...
Searching...
No Matches
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;
36
42class R4 : public PrimitiveTensor<R4, 3, 3, 3, 3>
43{
44public:
45 using PrimitiveTensor<R4, 3, 3, 3, 3>::PrimitiveTensor;
46
47 R4(const SSR4 & T);
48
49 R4(const WWR4 & T);
50
52 R4 rotate(const Rot & r) const;
53
55 R5 drotate(const Rot & r) const;
56
58 Scalar operator()(Size i, Size j, Size k, Size l) const;
59
61 R4 transpose(Size d1, Size d2) const;
62
64 R4 transpose_minor() const;
65
67 R4 transpose_major() const;
68};
69} // namespace neml2
The wrapper (decorator) for cross-referencing unresolved values at parse time.
Definition CrossRef.h:56
PrimitiveTensor inherits from TensorBase and additionally templates on the base shape.
Definition PrimitiveTensor.h:38
PrimitiveTensor()=default
Default constructor.
The (logical) full fourth order tensor.
Definition R4.h:43
R4 rotate(const Rot &r) const
Rotate.
Definition R4.cxx:48
R4(const SSR4 &T)
Definition R4.cxx:37
Scalar operator()(Size i, Size j, Size k, Size l) const
Accessor.
Definition R4.cxx:74
R4 transpose_major() const
Transpose major axes.
Definition R4.cxx:92
R4 transpose(Size d1, Size d2) const
Arbitrary transpose two dimensions.
Definition R4.cxx:80
R4 transpose_minor() const
Transpose minor axes.
Definition R4.cxx:86
R5 drotate(const Rot &r) const
Derivative of the rotated tensor w.r.t. the Rodrigues vector.
Definition R4.cxx:58
The (logical) full fifth order tensor.
Definition R5.h:37
Rotation stored as modified Rodrigues parameters.
Definition Rot.h:49
The (logical) symmetric fourth order tensor, with symmetry in the first two dimensionss as well as in...
Definition SSR4.h:44
The (logical) scalar.
Definition Scalar.h:38
The (logical) symmetric fourth order tensor, with skew symmetry in the first two dimensions and last ...
Definition WWR4.h:40
Definition CrossRef.cxx:30
int64_t Size
Definition types.h:33