MAIA bb96820c
Multiphysics at AIA
Loading...
Searching...
No Matches
LbInterfaceCell Class Reference

#include <lbinterfacecell.h>

Public Member Functions

 LbInterfaceCell ()
 
virtual ~LbInterfaceCell ()
 
void allocateElements (void *, void *, MInt cellId)
 

Static Public Member Functions

static void init (MInt dimension, MInt, MInt maxNoCells)
 
static MInt staticElementSize ()
 

Public Attributes

MInt m_cellId
 
MInt m_position
 
MIntm_interpolationNeighbors
 
MFloatm_interpolationCoefficients
 

Static Public Attributes

static MInt m_noInterpolationNeighbors
 
static MInt m_maxNoCells
 

Detailed Description

Definition at line 14 of file lbinterfacecell.h.

Constructor & Destructor Documentation

◆ LbInterfaceCell()

LbInterfaceCell::LbInterfaceCell ( )
inline

Definition at line 16 of file lbinterfacecell.h.

16{}

◆ ~LbInterfaceCell()

virtual LbInterfaceCell::~LbInterfaceCell ( )
inlinevirtual

Definition at line 23 of file lbinterfacecell.h.

23{};

Member Function Documentation

◆ allocateElements()

void LbInterfaceCell::allocateElements ( void *  ,
void *  basePointer,
MInt  cellId 
)

Definition at line 17 of file lbinterfacecell.cpp.

17 {
18 // TRACE();
19 // MFloat * tmpPointer = (MFloat *)memPointer;
20 MFloat* tmpPointerDataBase = (MFloat*)basePointer;
21 MFloat* tmpPointer;
22
23 tmpPointer = (MFloat*)((MInt*)tmpPointerDataBase + m_noInterpolationNeighbors * cellId);
24 m_interpolationNeighbors = (MInt*)tmpPointer;
25 tmpPointerDataBase = (MFloat*)((MInt*)tmpPointerDataBase + m_noInterpolationNeighbors * m_maxNoCells);
26
27 tmpPointer = tmpPointerDataBase + m_noInterpolationNeighbors * cellId;
28 m_interpolationCoefficients = tmpPointer;
29 tmpPointerDataBase = tmpPointerDataBase + m_noInterpolationNeighbors * m_maxNoCells;
30}
MFloat * m_interpolationCoefficients
static MInt m_maxNoCells
MInt * m_interpolationNeighbors
static MInt m_noInterpolationNeighbors
int32_t MInt
Definition: maiatypes.h:62
double MFloat
Definition: maiatypes.h:52
void const MInt cellId
Definition: collector.h:239

◆ init()

static void LbInterfaceCell::init ( MInt  dimension,
MInt  ,
MInt  maxNoCells 
)
inlinestatic

Definition at line 17 of file lbinterfacecell.h.

17 {
18 // TRACE();
21 };
constexpr MLong IPOW2(MInt x)
void const MInt const MInt const MInt const MInt maxNoCells
Definition: collector.h:240

◆ staticElementSize()

static MInt LbInterfaceCell::staticElementSize ( )
inlinestatic

Definition at line 36 of file lbinterfacecell.h.

36 {
38 }

Member Data Documentation

◆ m_cellId

MInt LbInterfaceCell::m_cellId

Definition at line 27 of file lbinterfacecell.h.

◆ m_interpolationCoefficients

MFloat* LbInterfaceCell::m_interpolationCoefficients

Definition at line 34 of file lbinterfacecell.h.

◆ m_interpolationNeighbors

MInt* LbInterfaceCell::m_interpolationNeighbors

Definition at line 33 of file lbinterfacecell.h.

◆ m_maxNoCells

MInt LbInterfaceCell::m_maxNoCells
static

Definition at line 31 of file lbinterfacecell.h.

◆ m_noInterpolationNeighbors

MInt LbInterfaceCell::m_noInterpolationNeighbors
static

Definition at line 30 of file lbinterfacecell.h.

◆ m_position

MInt LbInterfaceCell::m_position

Definition at line 28 of file lbinterfacecell.h.


The documentation for this class was generated from the following files: