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

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

Collaboration diagram for FTensor::d_boundary_Tensor2_symmetric< T, Dim01, Dim2, i, j, k >:
[legend]

Public Member Functions

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

Private Attributes

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

Detailed Description

template<class T, int Dim01, int Dim2, char i, char j, char k>
class FTensor::d_boundary_Tensor2_symmetric< T, Dim01, Dim2, i, j, k >

Definition at line 10 of file d_boundary_Tensor2_symmetric.hpp.

Constructor & Destructor Documentation

◆ d_boundary_Tensor2_symmetric()

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

Definition at line 29 of file d_boundary_Tensor2_symmetric.hpp.

33  : a(A), d_ijk(D_ijk), d_xyz(D_xyz), boundary(Boundary)
34  {}

Member Function Documentation

◆ operator()()

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

Definition at line 19 of file d_boundary_Tensor2_symmetric.hpp.

20  {
21  return boundary(N3, 0)
22  ? (*(a.ptr(N1, N2) + d_ijk(N3)) - a(N1, N2)) * d_xyz(N3)
23  : (boundary(N3, 1)
24  ? (a(N1, N2) - *(a.ptr(N1, N2) - d_ijk(N3))) * d_xyz(N3)
25  : (*(a.ptr(N1, N2) + d_ijk(N3))
26  - *(a.ptr(N1, N2) - d_ijk(N3)))
27  * d_xyz(N3) * 0.5);
28  }

Member Data Documentation

◆ a

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

Definition at line 12 of file d_boundary_Tensor2_symmetric.hpp.

◆ boundary

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

Definition at line 15 of file d_boundary_Tensor2_symmetric.hpp.

◆ d_ijk

template<class T , int Dim01, int Dim2, char i, char j, char k>
const Tensor1<int, Dim2>& FTensor::d_boundary_Tensor2_symmetric< T, Dim01, Dim2, i, j, k >::d_ijk
private

Definition at line 13 of file d_boundary_Tensor2_symmetric.hpp.

◆ d_xyz

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

Definition at line 14 of file d_boundary_Tensor2_symmetric.hpp.


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