chombo-discharge
Loading...
Searching...
No Matches
Source
AmrMesh
CD_CellInfo.H
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2021-2026 SINTEF Energy Research
3
*
4
* SPDX-License-Identifier: GPL-3.0-or-later
5
*/
6
13
#ifndef CD_CELLINFO_H
14
#define CD_CELLINFO_H
15
16
// Chombo includes
17
#include <RealVect.H>
18
19
// Our includes
20
#include <CD_NamespaceHeader.H>
21
25
class
CellInfo
26
{
27
public
:
31
CellInfo
() =
delete
;
32
38
CellInfo
(
const
IntVect
a_gridIndex
,
const
Real
a_dx
)
noexcept
;
39
48
CellInfo
(
const
IntVect
a_gridIndex
,
49
const
Real
a_dx
,
50
const
Real
a_volFrac
,
51
const
RealVect
&
a_bndryCentroid
,
52
const
RealVect
&
a_bndryNormal
)
noexcept
;
53
57
virtual
~CellInfo
()
noexcept
;
58
63
IntVect
&
64
getGridIndex
()
noexcept
;
65
70
const
IntVect
&
71
getGridIndex
()
const
noexcept
;
72
77
Real
&
78
getDx
()
noexcept
;
79
84
const
Real
&
85
getDx
()
const
noexcept
;
86
91
Real
&
92
getVolFrac
()
noexcept
;
93
98
const
Real
&
99
getVolFrac
()
const
noexcept
;
100
105
RealVect
&
106
getBndryCentroid
()
noexcept
;
107
112
const
RealVect
&
113
getBndryCentroid
()
const
noexcept
;
114
119
RealVect
&
120
getBndryNormal
()
noexcept
;
121
126
const
RealVect
&
127
getBndryNormal
()
const
noexcept
;
128
133
RealVect
&
134
getValidLo
()
noexcept
;
135
140
const
RealVect
&
141
getValidLo
()
const
noexcept
;
142
147
RealVect
&
148
getValidHi
()
noexcept
;
149
154
const
RealVect
&
155
getValidHi
()
const
noexcept
;
156
157
protected
:
161
IntVect
m_gridIndex
;
162
166
Real
m_dx
;
167
171
Real
m_volFrac
;
172
176
RealVect
m_bndryCentroid
;
177
181
RealVect
m_bndryNormal
;
182
186
RealVect
m_validLo
;
187
191
RealVect
m_validHi
;
192
};
193
194
#include <CD_NamespaceFooter.H>
195
196
#endif
CellInfo
Class for the cell-information that is often queried when merging particles inside a cell.
Definition
CD_CellInfo.H:26
CellInfo::getBndryCentroid
RealVect & getBndryCentroid() noexcept
Get the boundary centroid.
Definition
CD_CellInfo.cpp:85
CellInfo::m_gridIndex
IntVect m_gridIndex
Grid index.
Definition
CD_CellInfo.H:161
CellInfo::getValidLo
RealVect & getValidLo() noexcept
Get the lower valid region.
Definition
CD_CellInfo.cpp:109
CellInfo::getDx
Real & getDx() noexcept
Get the grid spacing.
Definition
CD_CellInfo.cpp:61
CellInfo::m_volFrac
Real m_volFrac
Volume fraction.
Definition
CD_CellInfo.H:171
CellInfo::m_validLo
RealVect m_validLo
Valid region in each direction (lower limit)
Definition
CD_CellInfo.H:186
CellInfo::m_bndryNormal
RealVect m_bndryNormal
EB boundary normal.
Definition
CD_CellInfo.H:181
CellInfo::getValidHi
RealVect & getValidHi() noexcept
Get the upper valid region.
Definition
CD_CellInfo.cpp:121
CellInfo::~CellInfo
virtual ~CellInfo() noexcept
Destructor.
CellInfo::getBndryNormal
RealVect & getBndryNormal() noexcept
Get the boundary normal.
Definition
CD_CellInfo.cpp:97
CellInfo::getGridIndex
IntVect & getGridIndex() noexcept
Get the grid index.
Definition
CD_CellInfo.cpp:49
CellInfo::m_validHi
RealVect m_validHi
Valid region in each direction (upper limit)
Definition
CD_CellInfo.H:191
CellInfo::m_bndryCentroid
RealVect m_bndryCentroid
Boundary centroid.
Definition
CD_CellInfo.H:176
CellInfo::m_dx
Real m_dx
Grid spacing.
Definition
CD_CellInfo.H:166
CellInfo::getVolFrac
Real & getVolFrac() noexcept
Get the volume fraction.
Definition
CD_CellInfo.cpp:73
CellInfo::CellInfo
CellInfo()=delete
Default constructor - creates a regular cell.
TracerParticleSolver
Base class for a tracer particle solver. This solver can advance particles in a pre-defined velocity ...
Definition
CD_TracerParticleSolver.H:38
Generated by
1.9.8