MAIA bb96820c
Multiphysics at AIA
Loading...
Searching...
No Matches
LPTBndryCell< nDim > Class Template Reference

#include <lptbndrycell.h>

Collaboration diagram for LPTBndryCell< nDim >:
[legend]

Classes

struct  BodySurface
 

Public Member Functions

void allocateElements (void *, void *, const MInt)
 
void moveElements (void *)
 

Static Public Member Functions

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

Public Attributes

MInt m_cellId
 
MFloat m_volume
 
MFloatm_coordinates = nullptr
 
MInt m_noSrfcs
 
BodySurface ** m_srfcs = nullptr
 

Static Public Attributes

static MInt m_maxNoSurfaces
 

Detailed Description

template<MInt nDim>
class LPTBndryCell< nDim >

Definition at line 15 of file lptbndrycell.h.

Member Function Documentation

◆ allocateElements()

template<MInt nDim>
void LPTBndryCell< nDim >::allocateElements ( void *  cellPtr,
void *  ,
const  MInt 
)

Definition at line 26 of file lptbndrycell.cpp.

26 {
27 m_noSrfcs = 1;
28
29 // Member pointers are set to the cell memory here:
30 moveElements(cellPtr);
31}
void moveElements(void *)

◆ init()

template<MInt nDim>
void LPTBndryCell< nDim >::init ( MInt   ,
MInt  ,
MInt  ,
MInt  ,
MInt   
)
static

Definition at line 18 of file lptbndrycell.cpp.

19 {
20 TRACE();
21
22 m_maxNoSurfaces = maxNoSurfaces;
23}
static MInt m_maxNoSurfaces
Definition: lptbndrycell.h:19

◆ moveElements()

template<MInt nDim>
void LPTBndryCell< nDim >::moveElements ( void *  cellPtr)

Definition at line 34 of file lptbndrycell.cpp.

34 {
36
37 unaligned_cell_wise::rowMajor2D(m_srfcs, cellPtr, m_maxNoSurfaces, 1);
38 for(MInt i = 0; i < m_maxNoSurfaces; ++i) {
40 unaligned_cell_wise::rowMajor1D(m_srfcs[i]->m_normal, cellPtr, nDim);
41 unaligned_cell_wise::rowMajor1D(m_srfcs[i]->m_velocity, cellPtr, nDim);
42 unaligned_cell_wise::rowMajor2D(m_srfcs[i]->m_planeCoordinates, cellPtr, nDim, nDim);
43 }
44}
MFloat * m_coordinates
Definition: lptbndrycell.h:23
BodySurface ** m_srfcs
Definition: lptbndrycell.h:33
int32_t MInt
Definition: maiatypes.h:62
void rowMajor1D(T *&p, void *&base, const MInt Nrows)
Store 1D variables in row-majow order relative to the start of each cell's memory solver.
Definition: collector.h:307

◆ staticElementSize()

template<MInt nDim>
static MInt LPTBndryCell< nDim >::staticElementSize ( )
inlinestatic

Definition at line 35 of file lptbndrycell.h.

35 {
36 return (sizeof(MInt) * (1 + 1) // cell id and no-surfaces
37 + sizeof(MFloat) * (1) // volume
38 + sizeof(MFloat) * (nDim) // coordinates
39 + sizeof(MFloat) * m_maxNoSurfaces
40 * (nDim // normal
41 + nDim // coordinates
42 + nDim // velocity
43 + nDim * nDim) // planeCoordinates
44 + sizeof(MFloat*) * m_maxNoSurfaces * (nDim * nDim) // planeCoordinates
45 + sizeof(BodySurface*) * m_maxNoSurfaces + sizeof(BodySurface) * m_maxNoSurfaces);
46 }
double MFloat
Definition: maiatypes.h:52

Member Data Documentation

◆ m_cellId

template<MInt nDim>
MInt LPTBndryCell< nDim >::m_cellId

Definition at line 21 of file lptbndrycell.h.

◆ m_coordinates

template<MInt nDim>
MFloat* LPTBndryCell< nDim >::m_coordinates = nullptr

Definition at line 23 of file lptbndrycell.h.

◆ m_maxNoSurfaces

template<MInt nDim>
MInt LPTBndryCell< nDim >::m_maxNoSurfaces
static

Definition at line 19 of file lptbndrycell.h.

◆ m_noSrfcs

template<MInt nDim>
MInt LPTBndryCell< nDim >::m_noSrfcs

Definition at line 24 of file lptbndrycell.h.

◆ m_srfcs

template<MInt nDim>
BodySurface** LPTBndryCell< nDim >::m_srfcs = nullptr

Definition at line 33 of file lptbndrycell.h.

◆ m_volume

template<MInt nDim>
MFloat LPTBndryCell< nDim >::m_volume

Definition at line 22 of file lptbndrycell.h.


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