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

#include <src/ftensor/src/FTensor/Tensor0/ddTensor0.hpp>

Collaboration diagram for FTensor::ddTensor0< T, Dim, i, j >:
[legend]

Public Member Functions

promote< T, double >::V operator() (const int N1, const int N2) const
 
 ddTensor0 (const Tensor0< T * > &A, const Tensor1< int, Dim > &D_ijk, const Tensor1< double, Dim > &D_xyz)
 

Private Attributes

const Tensor0< T * > & a
 
const Tensor1< int, Dim > & d_ijk
 
const Tensor1< double, Dim > & d_xyz
 

Detailed Description

template<class T, int Dim, char i, char j>
class FTensor::ddTensor0< T, Dim, i, j >

Definition at line 7 of file ddTensor0.hpp.

Constructor & Destructor Documentation

◆ ddTensor0()

template<class T , int Dim, char i, char j>
FTensor::ddTensor0< T, Dim, i, j >::ddTensor0 ( const Tensor0< T * > &  A,
const Tensor1< int, Dim > &  D_ijk,
const Tensor1< double, Dim > &  D_xyz 
)
inline

Definition at line 24 of file ddTensor0.hpp.

26  : a(A), d_ijk(D_ijk), d_xyz(D_xyz)
27  {}

Member Function Documentation

◆ operator()()

template<class T , int Dim, char i, char j>
promote<T, double>::V FTensor::ddTensor0< T, Dim, i, j >::operator() ( const int  N1,
const int  N2 
) const
inline

Definition at line 14 of file ddTensor0.hpp.

15  {
16  return N1 == N2
17  ? (*(&a + d_ijk(N1)) - 2 * a + *(&a - d_ijk(N1))) * d_xyz(N1)
18  * d_xyz(N1)
19  : (*(&a + d_ijk(N1) + d_ijk(N2)) - *(&a - d_ijk(N1) + d_ijk(N2))
20  - *(&a + d_ijk(N1) - d_ijk(N2))
21  + *(&a - d_ijk(N1) - d_ijk(N2)))
22  * d_xyz(N1) * d_xyz(N2) * 0.25;
23  }

Member Data Documentation

◆ a

template<class T , int Dim, char i, char j>
const Tensor0<T *>& FTensor::ddTensor0< T, Dim, i, j >::a
private

Definition at line 9 of file ddTensor0.hpp.

◆ d_ijk

template<class T , int Dim, char i, char j>
const Tensor1<int, Dim>& FTensor::ddTensor0< T, Dim, i, j >::d_ijk
private

Definition at line 10 of file ddTensor0.hpp.

◆ d_xyz

template<class T , int Dim, char i, char j>
const Tensor1<double, Dim>& FTensor::ddTensor0< T, Dim, i, j >::d_xyz
private

Definition at line 11 of file ddTensor0.hpp.


The documentation for this class was generated from the following file:
A
constexpr AssemblyType A
Definition: operators_tests.cpp:30
FTensor::ddTensor0::a
const Tensor0< T * > & a
Definition: ddTensor0.hpp:9
FTensor::ddTensor0::d_xyz
const Tensor1< double, Dim > & d_xyz
Definition: ddTensor0.hpp:11
FTensor::ddTensor0::d_ijk
const Tensor1< int, Dim > & d_ijk
Definition: ddTensor0.hpp:10