v0.8.15
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 
)

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  {}
const Tensor2_symmetric< T *, Dim01 > & a

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

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  }
const Tensor2_symmetric< T *, Dim01 > & a

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: