v0.14.0
Public Member Functions | Private Attributes | List of all members
FTensor::dd_boundary_Tensor2_symmetric< T, Dim01, Dim23, i, j, k, l > Class Template Reference

#include <src/ftensor/src/FTensor/Tensor2_symmetric/dd_boundary_Tensor2_symmetric.hpp>

Collaboration diagram for FTensor::dd_boundary_Tensor2_symmetric< T, Dim01, Dim23, i, j, k, l >:
[legend]

Public Member Functions

promote< T, double >::V operator() (const int N1, const int N2, const int N3, const int N4) const
 
 dd_boundary_Tensor2_symmetric (const Tensor2_symmetric< T *, Dim01 > &A, const Tensor1< int, Dim23 > &D_ijk, const Tensor1< double, Dim23 > &D_xyz, const Tensor2< bool, Dim23, 2 > &Boundary)
 

Private Attributes

const Tensor2_symmetric< T *, Dim01 > & a
 
const Tensor1< int, Dim23 > & d_ijk
 
const Tensor1< double, Dim23 > & d_xyz
 
const Tensor2< bool, Dim23, 2 > & boundary
 

Detailed Description

template<class T, int Dim01, int Dim23, char i, char j, char k, char l>
class FTensor::dd_boundary_Tensor2_symmetric< T, Dim01, Dim23, i, j, k, l >

Definition at line 10 of file dd_boundary_Tensor2_symmetric.hpp.

Constructor & Destructor Documentation

◆ dd_boundary_Tensor2_symmetric()

template<class T , int Dim01, int Dim23, char i, char j, char k, char l>
FTensor::dd_boundary_Tensor2_symmetric< T, Dim01, Dim23, i, j, k, l >::dd_boundary_Tensor2_symmetric ( const Tensor2_symmetric< T *, Dim01 > &  A,
const Tensor1< int, Dim23 > &  D_ijk,
const Tensor1< double, Dim23 > &  D_xyz,
const Tensor2< bool, Dim23, 2 > &  Boundary 
)
inline

Definition at line 88 of file dd_boundary_Tensor2_symmetric.hpp.

92  : a(A), d_ijk(D_ijk), d_xyz(D_xyz), boundary(Boundary)
93  {}

Member Function Documentation

◆ operator()()

template<class T , int Dim01, int Dim23, char i, char j, char k, char l>
promote<T, double>::V FTensor::dd_boundary_Tensor2_symmetric< T, Dim01, Dim23, i, j, k, l >::operator() ( const int  N1,
const int  N2,
const int  N3,
const int  N4 
) const
inline

Definition at line 19 of file dd_boundary_Tensor2_symmetric.hpp.

20  {
21  return N3 == N4
22  ? (boundary(N3, 0)
23  ? (*(a.ptr(N1, N2) + 2 * d_ijk(N3))
24  - 2 * *(a.ptr(N1, N2) + d_ijk(N3)) + a(N1, N2))
25  : (boundary(N3, 1)
26  ? (a(N1, N2) - 2 * *(a.ptr(N1, N2) - d_ijk(N3))
27  + *(a.ptr(N1, N2) - 2 * d_ijk(N3)))
28  : (*(a.ptr(N1, N2) + d_ijk(N3)) - 2 * a(N1, N2)
29  + *(a.ptr(N1, N2) - d_ijk(N3)))))
30  * d_xyz(N3) * d_xyz(N3)
31  : (boundary(N3, 0)
32  ? (boundary(N4, 0)
33  ? ((*(a.ptr(N1, N2) + d_ijk(N3) + d_ijk(N4))
34  - *(a.ptr(N1, N2) + d_ijk(N4))
35  - *(a.ptr(N1, N2) + d_ijk(N3)) + a(N1, N2))
36  * d_xyz(N3) * d_xyz(N4))
37  : (boundary(N4, 1)
38  ? ((*(a.ptr(N1, N2) + d_ijk(N3)) - a(N1, N2)
39  - *(a.ptr(N1, N2) + d_ijk(N3) - d_ijk(N4))
40  + *(a.ptr(N1, N2) - d_ijk(N4)))
41  * d_xyz(N3) * d_xyz(N4))
42  : (*(a.ptr(N1, N2) + d_ijk(N3) + d_ijk(N4))
43  - *(a.ptr(N1, N2) + d_ijk(N4))
44  - *(a.ptr(N1, N2) + d_ijk(N3) - d_ijk(N4))
45  + *(a.ptr(N1, N2) - d_ijk(N4)))
46  * d_xyz(N3) * d_xyz(N4) * 0.5))
47  : (boundary(N3, 1)
48  ? (boundary(N4, 0)
49  ? ((*(a.ptr(N1, N2) + d_ijk(N4))
50  - *(a.ptr(N1, N2) - d_ijk(N3) + d_ijk(N4))
51  - a(N1, N2) + *(a.ptr(N1, N2) - d_ijk(N3)))
52  * d_xyz(N3) * d_xyz(N4))
53  : (boundary(N4, 1)
54  ? ((a(N1, N2) - *(a.ptr(N1, N2) - d_ijk(N3))
55  - *(a.ptr(N1, N2) - d_ijk(N4))
56  + *(a.ptr(N1, N2) - d_ijk(N3)
57  - d_ijk(N4)))
58  * d_xyz(N3) * d_xyz(N4))
59  : (*(a.ptr(N1, N2) + d_ijk(N4))
60  - *(a.ptr(N1, N2) - d_ijk(N3) + d_ijk(N4))
61  - *(a.ptr(N1, N2) - d_ijk(N4))
62  + *(a.ptr(N1, N2) - d_ijk(N3)
63  - d_ijk(N4)))
64  * d_xyz(N3) * d_xyz(N4) * 0.5))
65  : (boundary(N4, 0)
66  ? ((*(a.ptr(N1, N2) + d_ijk(N3) + d_ijk(N4))
67  - *(a.ptr(N1, N2) - d_ijk(N3) + d_ijk(N4))
68  - *(a.ptr(N1, N2) + d_ijk(N3))
69  + *(a.ptr(N1, N2) - d_ijk(N3)))
70  * d_xyz(N3) * d_xyz(N4) * 0.5)
71  : (boundary(N4, 1)
72  ? ((*(a.ptr(N1, N2) + d_ijk(N3))
73  - *(a.ptr(N1, N2) - d_ijk(N3))
74  - *(a.ptr(N1, N2) + d_ijk(N3)
75  - d_ijk(N4))
76  + *(a.ptr(N1, N2) - d_ijk(N3)
77  - d_ijk(N4)))
78  * d_xyz(N3) * d_xyz(N4) * 0.5)
79  : ((*(a.ptr(N1, N2) + d_ijk(N3) + d_ijk(N4))
80  - *(a.ptr(N1, N2) - d_ijk(N3)
81  + d_ijk(N4))
82  - *(a.ptr(N1, N2) + d_ijk(N3)
83  - d_ijk(N4))
84  + *(a.ptr(N1, N2) - d_ijk(N3)
85  - d_ijk(N4)))
86  * d_xyz(N3) * d_xyz(N4) * 0.25)))));
87  }

Member Data Documentation

◆ a

template<class T , int Dim01, int Dim23, char i, char j, char k, char l>
const Tensor2_symmetric<T *, Dim01>& FTensor::dd_boundary_Tensor2_symmetric< T, Dim01, Dim23, i, j, k, l >::a
private

Definition at line 12 of file dd_boundary_Tensor2_symmetric.hpp.

◆ boundary

template<class T , int Dim01, int Dim23, char i, char j, char k, char l>
const Tensor2<bool, Dim23, 2>& FTensor::dd_boundary_Tensor2_symmetric< T, Dim01, Dim23, i, j, k, l >::boundary
private

Definition at line 15 of file dd_boundary_Tensor2_symmetric.hpp.

◆ d_ijk

template<class T , int Dim01, int Dim23, char i, char j, char k, char l>
const Tensor1<int, Dim23>& FTensor::dd_boundary_Tensor2_symmetric< T, Dim01, Dim23, i, j, k, l >::d_ijk
private

Definition at line 13 of file dd_boundary_Tensor2_symmetric.hpp.

◆ d_xyz

template<class T , int Dim01, int Dim23, char i, char j, char k, char l>
const Tensor1<double, Dim23>& FTensor::dd_boundary_Tensor2_symmetric< T, Dim01, Dim23, i, j, k, l >::d_xyz
private

Definition at line 14 of file dd_boundary_Tensor2_symmetric.hpp.


The documentation for this class was generated from the following file:
FTensor::dd_boundary_Tensor2_symmetric::d_xyz
const Tensor1< double, Dim23 > & d_xyz
Definition: dd_boundary_Tensor2_symmetric.hpp:14
FTensor::dd_boundary_Tensor2_symmetric::boundary
const Tensor2< bool, Dim23, 2 > & boundary
Definition: dd_boundary_Tensor2_symmetric.hpp:15
A
constexpr AssemblyType A
Definition: operators_tests.cpp:30
FTensor::dd_boundary_Tensor2_symmetric::d_ijk
const Tensor1< int, Dim23 > & d_ijk
Definition: dd_boundary_Tensor2_symmetric.hpp:13
FTensor::dd_boundary_Tensor2_symmetric::a
const Tensor2_symmetric< T *, Dim01 > & a
Definition: dd_boundary_Tensor2_symmetric.hpp:12