chombo-discharge
CD_EBHelmholtzDomainBCImplem.H
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 
6 /*
7  @file CD_EBHelmholtzDomainBCImplem.H
8  @brief Implementation of CD_EBHelmholtzDomainBC.H
9  @author Robert Marskar
10 */
11 
12 #ifndef CD_EBHelmholtzDomainBCImplem_H
13 #define CD_EBHelmholtzDomainBCImplem_H
14 
15 // Our includes
16 #include <CD_EBHelmholtzDomainBC.H>
17 #include <CD_NamespaceHeader.H>
18 
19 inline RealVect
20 EBHelmholtzDomainBC::getBoundaryPosition(const IntVect& a_iv, const int& a_dir, const Side::LoHiSide& a_side) const
21 {
22 
23  const RealVect pos = m_probLo + (0.5 * RealVect::Unit + RealVect(a_iv)) * m_dx +
24  0.5 * m_dx * RealVect(BASISV(a_dir)) * sign(a_side);
25 
26  return pos;
27 }
28 
29 #include <CD_NamespaceFooter.H>
30 
31 #endif
RealVect getBoundaryPosition(const IntVect &a_iv, const int &a_dir, const Side::LoHiSide &a_side) const
Returns the cell-centered position at the boundary.
Definition: CD_EBHelmholtzDomainBCImplem.H:20
Real m_dx
Grid resolution.
Definition: CD_EBHelmholtzDomainBC.H:131
RealVect m_probLo
Lower-left corner of computational domain.
Definition: CD_EBHelmholtzDomainBC.H:136