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

#include <src/ftensor/src/FTensor/Tensor1/diffusion_Tensor1.hpp>

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

Public Member Functions

promote< T, double >::V operator() (const int N1) const
 
 diffusion_Tensor1 (const Tensor1< T *, Dim > &A, const int Di, const int Dj, const int Dk, const double Dx)
 

Private Attributes

const Tensor1< T *, Dim > & a
 
const int di
 
const int dj
 
const int dk
 
const double dx
 

Detailed Description

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

Definition at line 8 of file diffusion_Tensor1.hpp.

Constructor & Destructor Documentation

◆ diffusion_Tensor1()

template<class T , int Dim, char i>
FTensor::diffusion_Tensor1< T, Dim, i >::diffusion_Tensor1 ( const Tensor1< T *, Dim > &  A,
const int  Di,
const int  Dj,
const int  Dk,
const double  Dx 
)
inline

Definition at line 32 of file diffusion_Tensor1.hpp.

34  : a(A), di(Di), dj(Dj), dk(Dk), dx(Dx)
35  {}

Member Function Documentation

◆ operator()()

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

Definition at line 15 of file diffusion_Tensor1.hpp.

16  {
17  return ((*(a.ptr(N1) + di) - 2 * a(N1) + *(a.ptr(N1) - di))
18  + (*(a.ptr(N1) + dj) - 2 * a(N1) + *(a.ptr(N1) - dj))
19  + (*(a.ptr(N1) + dk) - 2 * a(N1) + *(a.ptr(N1) - dk))
20  + ((*(a.ptr(N1) + di + dj) + *(a.ptr(N1) + di - dj)
21  + *(a.ptr(N1) - di + dj) + *(a.ptr(N1) - di - dj)
22  - 4 * a(N1))
23  + (*(a.ptr(N1) + di + dk) + *(a.ptr(N1) + di - dk)
24  + *(a.ptr(N1) - di + dk) + *(a.ptr(N1) - di - dk)
25  - 4 * a(N1))
26  + (*(a.ptr(N1) + dj + dk) + *(a.ptr(N1) + dj - dk)
27  + *(a.ptr(N1) - dj + dk) + *(a.ptr(N1) - dj - dk)
28  - 4 * a(N1)))
29  / (std::sqrt(2.0)))
30  * dx * dx;
31  }

Member Data Documentation

◆ a

template<class T , int Dim, char i>
const Tensor1<T *, Dim>& FTensor::diffusion_Tensor1< T, Dim, i >::a
private

Definition at line 10 of file diffusion_Tensor1.hpp.

◆ di

template<class T , int Dim, char i>
const int FTensor::diffusion_Tensor1< T, Dim, i >::di
private

Definition at line 11 of file diffusion_Tensor1.hpp.

◆ dj

template<class T , int Dim, char i>
const int FTensor::diffusion_Tensor1< T, Dim, i >::dj
private

Definition at line 11 of file diffusion_Tensor1.hpp.

◆ dk

template<class T , int Dim, char i>
const int FTensor::diffusion_Tensor1< T, Dim, i >::dk
private

Definition at line 11 of file diffusion_Tensor1.hpp.

◆ dx

template<class T , int Dim, char i>
const double FTensor::diffusion_Tensor1< T, Dim, i >::dx
private

Definition at line 12 of file diffusion_Tensor1.hpp.


The documentation for this class was generated from the following file:
A
constexpr AssemblyType A
Definition: operators_tests.cpp:30
FTensor::diffusion_Tensor1::dx
const double dx
Definition: diffusion_Tensor1.hpp:12
FTensor::diffusion_Tensor1::di
const int di
Definition: diffusion_Tensor1.hpp:11
FTensor::diffusion_Tensor1::a
const Tensor1< T *, Dim > & a
Definition: diffusion_Tensor1.hpp:10
FTensor::diffusion_Tensor1::dk
const int dk
Definition: diffusion_Tensor1.hpp:11
FTensor::diffusion_Tensor1::dj
const int dj
Definition: diffusion_Tensor1.hpp:11