Loading [MathJax]/extensions/tex2jax.js
MAIA bb96820c
Multiphysics at AIA
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
lptbndrycell.h
Go to the documentation of this file.
1// Copyright (C) 2024 The m-AIA AUTHORS
2//
3// This file is part of m-AIA (https://git.rwth-aachen.de/aia/m-AIA/m-AIA)
4//
5// SPDX-License-Identifier: LGPL-3.0-only
6
7#ifndef LPTBNDRYCELL_H
8#define LPTBNDRYCELL_H
9
10#include <vector>
12#include "INCLUDE/maiatypes.h"
13
14template <MInt nDim>
16 public:
17 static void init(MInt, MInt, MInt, MInt, MInt);
18
20
25
26 struct BodySurface {
28 MFloat* m_normal = nullptr;
29 MFloat* m_velocity = nullptr;
31 };
32
33 BodySurface** m_srfcs = nullptr;
34
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
46 }
47
48 void allocateElements(void*, void*, const MInt);
49 void moveElements(void*);
50};
51
52#endif // ifndef LPTBNDRYCELL_H
MFloat * m_coordinates
Definition: lptbndrycell.h:23
BodySurface ** m_srfcs
Definition: lptbndrycell.h:33
void moveElements(void *)
static MInt m_maxNoSurfaces
Definition: lptbndrycell.h:19
static void init(MInt, MInt, MInt, MInt, MInt)
static MInt staticElementSize()
Definition: lptbndrycell.h:35
void allocateElements(void *, void *, const MInt)
MFloat m_volume
Definition: lptbndrycell.h:22
int32_t MInt
Definition: maiatypes.h:62
double MFloat
Definition: maiatypes.h:52