SOFA plugin: DiffusionSolver  master
Open source framework for multi-physics simuation
All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
NonUniform< Real, ImageType, MaskType, Coef > Struct Template Reference

Low-level functor to compute the new value of a voxel depending on its neighbours for heterogeneous material or/and on rectangular domain. More...

Detailed Description

template<class Real, class ImageType, class MaskType, class Coef>
struct NonUniform< Real, ImageType, MaskType, Coef >

Low-level functor to compute the new value of a voxel depending on its neighbours for heterogeneous material or/and on rectangular domain.

Static Public Member Functions

static Real value (unsigned long off, const ImageType &img, const MaskType &mask, size_t lineSize, size_t sliceSize, Real hx2, Real hy2, Real hz2, const ImageType *material)
 
static Real cgvalue (unsigned long off, const ImageType &x, const MaskType &mask, size_t lineSize, size_t sliceSize, Real hx2, Real hy2, Real hz2, const ImageType *material)
 
static Real cgrhs (unsigned long off, const ImageType &img, const MaskType &mask, size_t lineSize, size_t sliceSize, Real hx2, Real hy2, Real hz2, const ImageType *material)
 

Function details

◆ cgrhs()

template<class Real , class ImageType , class MaskType , class Coef >
static Real NonUniform< Real, ImageType, MaskType, Coef >::cgrhs ( unsigned long  off,
const ImageType &  img,
const MaskType &  mask,
size_t  lineSize,
size_t  sliceSize,
Real  hx2,
Real  hy2,
Real  hz2,
const ImageType *  material 
)
inlinestatic

◆ cgvalue()

template<class Real , class ImageType , class MaskType , class Coef >
static Real NonUniform< Real, ImageType, MaskType, Coef >::cgvalue ( unsigned long  off,
const ImageType &  x,
const MaskType &  mask,
size_t  lineSize,
size_t  sliceSize,
Real  hx2,
Real  hy2,
Real  hz2,
const ImageType *  material 
)
inlinestatic

◆ value()

template<class Real , class ImageType , class MaskType , class Coef >
static Real NonUniform< Real, ImageType, MaskType, Coef >::value ( unsigned long  off,
const ImageType &  img,
const MaskType &  mask,
size_t  lineSize,
size_t  sliceSize,
Real  hx2,
Real  hy2,
Real  hz2,
const ImageType *  material 
)
inlinestatic