chombo-discharge
Loading...
Searching...
No Matches
CD_MFHelmholtzElectrostaticEBBC.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_MFHelmholtzElectrostaticEBBC_H
13#define CD_MFHelmholtzElectrostaticEBBC_H
14
15// Our includes
16#include <CD_MFHelmholtzEBBC.H>
18#include <CD_NamespaceHeader.H>
19
26{
27public:
37
42
48
54
59
66
73
81 void
82 setOrder(const int a_order);
83
89 void
90 setWeight(const int a_weight);
91
95 void
97
102 void
104
105protected:
110
115
120
125
130
134 virtual void
135 defineSinglePhase() override;
136
148 virtual void
151 const EBCellFAB& a_phi,
153 const DataIndex& a_dit,
154 const Real& a_beta,
155 const bool& a_homogeneousPhysBC) const override;
156
161 inline Real
163};
164
165#include <CD_NamespaceFooter.H>
166
168
169#endif
Data holder for holding the voltage at electrodes.
Declaration of an EB boundary condition class for MFHelmholtzOp.
Implementation of CD_MFHelmholtzElectrostaticEBBC.H.
Class which maps boundary condition types to a side and direction.
Definition CD_ElectrostaticEbBc.H:33
Class for making boundary conditions on the EB in a multifluid context.
Definition CD_MFHelmholtzEBBC.H:27
Class for making Electrostatic boundary conditions on the EB in a multifluid context.
Definition CD_MFHelmholtzElectrostaticEBBC.H:26
virtual ~MFHelmholtzElectrostaticEBBC()
Default constructor (does nothing).
Definition CD_MFHelmholtzElectrostaticEBBC.cpp:34
void setOrder(const int a_order)
Set stencil order.
Definition CD_MFHelmholtzElectrostaticEBBC.cpp:40
MFHelmholtzElectrostaticEBBC & operator=(const MFHelmholtzElectrostaticEBBC &a_other)=delete
No copy assignment.
void setWeight(const int a_weight)
Set stencil weight.
Definition CD_MFHelmholtzElectrostaticEBBC.cpp:50
void setCoarseGridDropOrder(const bool a_dropOrder)
Signal that it should drop the stencil order if the cell is a coarsened cell.
Definition CD_MFHelmholtzElectrostaticEBBC.cpp:68
int m_order
Stencil order.
Definition CD_MFHelmholtzElectrostaticEBBC.H:109
MFHelmholtzElectrostaticEBBC & operator=(const MFHelmholtzElectrostaticEBBC &&a_other)=delete
No move assignment.
virtual void defineSinglePhase() override
User define function.
Definition CD_MFHelmholtzElectrostaticEBBC.cpp:74
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_MFHelmholtzElectrostaticEBBC.cpp:207
int m_weight
Stencil weight.
Definition CD_MFHelmholtzElectrostaticEBBC.H:114
Real getElectrodePotential(const RealVect &a_pos) const
Get electrode potential.
Definition CD_MFHelmholtzElectrostaticEBBCImplem.H:23
int m_domainDropOrder
Special flag for dropping stencil order when domains become coarser than this.
Definition CD_MFHelmholtzElectrostaticEBBC.H:119
MFHelmholtzElectrostaticEBBC()=delete
No weak construction.
void setDomainDropOrder(const int a_domainSize)
Drop BC order if domain size is equal or below this.
Definition CD_MFHelmholtzElectrostaticEBBC.cpp:60
MFHelmholtzElectrostaticEBBC(const MFHelmholtzElectrostaticEBBC &&a_other)=delete
No move construction.
MFHelmholtzElectrostaticEBBC(const MFHelmholtzElectrostaticEBBC &a_other)=delete
No copy construction.
bool m_dropOrder
Special flag for dropping stencil order if the cell is a coarsened cell.
Definition CD_MFHelmholtzElectrostaticEBBC.H:124
ElectrostaticEbBc m_electrostaticBCs
Electrostatic boundary conditions.
Definition CD_MFHelmholtzElectrostaticEBBC.H:129
Base class for a tracer particle solver. This solver can advance particles in a pre-defined velocity ...
Definition CD_TracerParticleSolver.H:37