chombo-discharge
Loading...
Searching...
No Matches
CD_MFHelmholtzNeumannEBBC.H
1/*
2 * SPDX-FileCopyrightText: 2021-2026 SINTEF Energy Research
3 *
4 * SPDX-License-Identifier: GPL-3.0-or-later
5 */
6
7/*
8 @file CD_MFHelmholtzNeumannEBBC.H
9 @brief Declaration of a boundary condition class for MFHelmholtzOp
10 @author Robert Marskar
11*/
12
13#ifndef CD_MFHELMHOLTZNEUMANNEBBC_H
14#define CD_MFHELMHOLTZNEUMANNEBBC_H
15
16// Std includes
17#include <functional>
18
19// Our includes
20#include <CD_MFHelmholtzEBBC.H>
21#include <CD_NamespaceHeader.H>
22
29{
30public:
37
42
48 void
49 setDphiDn(const Real a_DphiDn);
50
56 void
58
64 void
66
72 void
74
75protected:
80
85
90
95
100
104 virtual void
105 defineSinglePhase() override;
106
117 virtual void
120 const EBCellFAB& a_phi,
122 const DataIndex& a_dit,
123 const Real& a_beta,
124 const bool& a_homogeneousPhysBC) const override;
125};
126
127#include <CD_NamespaceFooter.H>
128
129#endif
Declaration of an EB boundary condition class for MFHelmholtzOp.
Class for making boundary conditions on the EB in a multifluid context.
Definition CD_MFHelmholtzEBBC.H:28
Base class for passing Neumann MF boundary conditions into MFHelmholtzOp.
Definition CD_MFHelmholtzNeumannEBBC.H:29
virtual void defineSinglePhase() override
User define function.
Definition CD_MFHelmholtzNeumannEBBC.cpp:79
bool m_useConstant
Use constant for BC.
Definition CD_MFHelmholtzNeumannEBBC.H:84
bool m_multByBco
Multiply by b-coefficient or not.
Definition CD_MFHelmholtzNeumannEBBC.H:79
Real m_constantDphiDn
Value on MF.
Definition CD_MFHelmholtzNeumannEBBC.H:94
bool m_useFunction
Use function for BC value.
Definition CD_MFHelmholtzNeumannEBBC.H:89
void setDphiDn(const Real a_DphiDn)
Set value of dphi/dn on the MF.
Definition CD_MFHelmholtzNeumannEBBC.cpp:33
std::function< Real(const RealVect &a_pos)> m_functionDphiDn
Value on the MF.
Definition CD_MFHelmholtzNeumannEBBC.H:99
virtual void applyEBFluxSinglePhase(VoFIterator &a_singlePhaseVofs, EBCellFAB &a_Lphi, const EBCellFAB &a_phi, const BaseIVFAB< Real > &a_Bcoef, const DataIndex &a_dit, const Real &a_beta, const bool &a_homogeneousPhysBC) const override
Apply flux single phase.
Definition CD_MFHelmholtzNeumannEBBC.cpp:90
void setBxDphiDn(const Real a_BxDphiDn)
Set the value of B*dphi/dn on the MF.
Definition CD_MFHelmholtzNeumannEBBC.cpp:59
virtual ~MFHelmholtzNeumannEBBC()
Destructor.
Definition CD_MFHelmholtzNeumannEBBC.cpp:27
Base class for a tracer particle solver. This solver can advance particles in a pre-defined velocity ...
Definition CD_TracerParticleSolver.H:38
TracerParticleSolver()
Default constructor.
Definition CD_TracerParticleSolverImplem.H:26