chombo-discharge
Loading...
Searching...
No Matches
CD_MFInterfaceFAB.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_MFINTERFACEFAB_H
14#define CD_MFINTERFACEFAB_H
15
16// Chombo includes
17#include <BoxLayoutData.H>
18#include <BaseIVFAB.H>
19#include <IntVectSet.H>
20
21// Our includes
23#include <CD_MFLevelGrid.H>
24#include <CD_NamespaceHeader.H>
25
29template <class T>
31{
32public:
37
44
48 virtual ~MFInterfaceFAB();
49
55 virtual void
56 define(const MFLevelGrid& a_mflg, const DataIndex& a_dit);
57
62 virtual const IntVectSet&
63 getIVS() const;
64
70 virtual BaseIVFAB<T>&
71 getIVFAB(const int a_phase);
72
78 virtual const BaseIVFAB<T>&
79 getIVFAB(const int a_phase) const;
80
86 virtual BaseIVFAB<T>*
88
93 virtual int
94 numPhases() const;
95
100 virtual void
101 setVal(const T& a_value);
102
103protected:
108
113};
114
115#include <CD_NamespaceFooter.H>
116
118
119#endif
Implementation of CD_MFInterfaceFAB.H.
Declaration of a wrapper for wrapping multifluid EBLevelGrids.
Multi-fluid index space.
Class for holding BaseIVFAB<T> on the interface between two phases.
Definition CD_MFInterfaceFAB.H:31
MFInterfaceFAB()
Constructor. Must subsequently call define.
Definition CD_MFInterfaceFABImplem.H:21
virtual int numPhases() const
Get number of phases.
Definition CD_MFInterfaceFABImplem.H:93
virtual BaseIVFAB< T > & getIVFAB(const int a_phase)
Get BaseIVFAB for specified phase.
Definition CD_MFInterfaceFABImplem.H:67
virtual void define(const MFLevelGrid &a_mflg, const DataIndex &a_dit)
Define function.
Definition CD_MFInterfaceFABImplem.H:40
virtual ~MFInterfaceFAB()
Destructor.
Definition CD_MFInterfaceFABImplem.H:31
virtual const IntVectSet & getIVS() const
Get defining region.
Definition CD_MFInterfaceFABImplem.H:60
virtual void setVal(const T &a_value)
Set value on both fabs.
Definition CD_MFInterfaceFABImplem.H:100
IntVectSet m_ivs
Defining region.
Definition CD_MFInterfaceFAB.H:112
Vector< BaseIVFAB< T > * > m_phase
Pointers to storage on both phases.
Definition CD_MFInterfaceFAB.H:107
virtual BaseIVFAB< T > * getPhasePtr(int a_phase)
Get BaseIVFAB pointer for specified phase.
Definition CD_MFInterfaceFABImplem.H:85
Wrapper class for holding multifluid EBLevelGrids.
Definition CD_MFLevelGrid.H:30
Base class for a tracer particle solver. This solver can advance particles in a pre-defined velocity ...
Definition CD_TracerParticleSolver.H:38