chombo-discharge
Loading...
Searching...
No Matches
CD_MFHelmholtzDirichletEBBC.H
Go to the documentation of this file.
1/* chombo-discharge
2 * Copyright © 2021 SINTEF Energy Research.
3 * Please refer to Copyright.txt and LICENSE in the chombo-discharge root directory.
4 */
5
12#ifndef CD_MFHelmholtzDirichletEBBC_H
13#define CD_MFHelmholtzDirichletEBBC_H
14
15// Our includes
16#include <CD_MFHelmholtzEBBC.H>
17#include <CD_NamespaceHeader.H>
18
23{
24public:
31
36
41 virtual void
42 setValue(const Real a_value);
43
48 virtual void
50
55 void
56 setOrder(const int a_order);
57
62 void
63 setWeight(const int a_weight);
64
68 virtual void
70
75 virtual void
77
78protected:
83
88
93
98
103
108
113
118
122 virtual void
123 defineSinglePhase() override;
124
135 virtual void
138 const EBCellFAB& a_phi,
140 const DataIndex& a_dit,
141 const Real& a_beta,
142 const bool& a_homogeneousPhysBC) const override;
143};
144
145#include <CD_NamespaceFooter.H>
146
147#endif
Declaration of an EB boundary condition class for MFHelmholtzOp.
Class for making Dirichlet boundary conditions on the EB in a multifluid context.
Definition CD_MFHelmholtzDirichletEBBC.H:23
virtual void setDomainDropOrder(const int a_domainSize)
Drop BC order if domain size is equal or below this.
Definition CD_MFHelmholtzDirichletEBBC.cpp:83
int m_order
Stencil order.
Definition CD_MFHelmholtzDirichletEBBC.H:97
virtual void setValue(const Real a_value)
Set the value on the EB.
Definition CD_MFHelmholtzDirichletEBBC.cpp:41
virtual void setCoarseGridDropOrder(const bool a_dropOrder)
Signal that it should drop the stencil order if the cell is a coarsened cell.
Definition CD_MFHelmholtzDirichletEBBC.cpp:91
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_MFHelmholtzDirichletEBBC.cpp:240
int m_weight
Stencil weight.
Definition CD_MFHelmholtzDirichletEBBC.H:102
virtual ~MFHelmholtzDirichletEBBC()
Default constructor.
Definition CD_MFHelmholtzDirichletEBBC.cpp:35
virtual void defineSinglePhase() override
User define function.
Definition CD_MFHelmholtzDirichletEBBC.cpp:97
void setOrder(const int a_order)
Set stencil order.
Definition CD_MFHelmholtzDirichletEBBC.cpp:63
void setWeight(const int a_weight)
Set stencil weight.
Definition CD_MFHelmholtzDirichletEBBC.cpp:73
Real m_constantValue
Value on EB.
Definition CD_MFHelmholtzDirichletEBBC.H:92
std::function< Real(const RealVect &a_pos)> m_functionValue
Value on the EB. Does not apply to matching cells.
Definition CD_MFHelmholtzDirichletEBBC.H:117
bool m_useConstant
Use constant for BC.
Definition CD_MFHelmholtzDirichletEBBC.H:82
int m_domainDropOrder
Special flag for dropping stencil order when domains become coarser than this.
Definition CD_MFHelmholtzDirichletEBBC.H:107
bool m_useFunction
Use function for BC value.
Definition CD_MFHelmholtzDirichletEBBC.H:87
bool m_dropOrder
Special flag for dropping stencil order if the cell is a coarsened cell.
Definition CD_MFHelmholtzDirichletEBBC.H:112
Class for making boundary conditions on the EB in a multifluid context.
Definition CD_MFHelmholtzEBBC.H:27
Base class for a tracer particle solver. This solver can advance particles in a pre-defined velocity ...
Definition CD_TracerParticleSolver.H:37
TracerParticleSolver()
Default constructor.
Definition CD_TracerParticleSolverImplem.H:25