Alamo
Public Member Functions | Static Public Member Functions | Private Attributes
BC::Constant Class Reference
Inheritance diagram for BC::Constant:
[legend]
Collaboration diagram for BC::Constant:
[legend]

Public Member Functions

 Constant (int a_ncomp)
 
 Constant (int a_ncomp, IO::ParmParse &pp, std::string name)
 
 Constant (int ncomp, amrex::Vector< std::string > bc_hi_str, amrex::Vector< std::string > bc_lo_str, AMREX_D_DECL(amrex::Vector< amrex::Real > _bc_lo_1, amrex::Vector< amrex::Real > _bc_lo_2, amrex::Vector< amrex::Real > _bc_lo_3), AMREX_D_DECL(amrex::Vector< amrex::Real > _bc_hi_1, amrex::Vector< amrex::Real > _bc_hi_2, amrex::Vector< amrex::Real > _bc_hi_3))
 
virtual ~Constant ()
 
virtual void FillBoundary (amrex::BaseFab< Set::Scalar > &in, const amrex::Box &box, int ngrow, int dcomp, int ncomp, amrex::Real time, Orientation face=Orientation::All, const amrex::Mask *mask=nullptr) override
 
amrex::BCRec GetBCRec () override
 
virtual amrex::Array< int, AMREX_SPACEDIM > IsPeriodic () override
 
virtual amrex::Periodicity Periodicity () const override
 
virtual amrex::Periodicity Periodicity (const amrex::Box &b) override
 
template<class T >
const amrex::Array< amrex::Array< T, AMREX_SPACEDIM >, 2 > GetBCTypes ()
 
virtual void FillBoundary (amrex::BaseFab< T > &in, const amrex::Box &box, int ngrow, int dcomp, int ncomp, amrex::Real time, Orientation face=Orientation::All, const amrex::Mask *mask=nullptr)=0
 
virtual void FillBoundary (amrex::FabArray< amrex::BaseFab< T >> &mf, int dcomp, int ncomp, amrex::Real time, int)
 
virtual void FillBoundary (amrex::FabArray< amrex::BaseFab< T >> &mf, int dcomp, int ncomp, amrex::IntVect const &, amrex::Real time, int bccomp)
 
template<class Q = T>
std::enable_if< std::is_same< Q, amrex::Real >::value >::type FillBoundary (amrex::MultiFab &mf, int dcomp, int ncomp, amrex::Real time, int)
 
- Public Member Functions inherited from BC::BC< Set::Scalar >
virtual ~BC ()
 
void define (const amrex::Geometry &a_geom)
 
virtual void FillBoundary (amrex::FabArray< amrex::BaseFab< Set::Scalar >> &mf, int dcomp, int ncomp, amrex::Real time, int)
 
virtual void FillBoundary (amrex::FabArray< amrex::BaseFab< Set::Scalar >> &mf, int dcomp, int ncomp, amrex::IntVect const &, amrex::Real time, int bccomp)
 
std::enable_if< std::is_same< Q, amrex::Real >::value >::type FillBoundary (amrex::MultiFab &mf, int dcomp, int ncomp, amrex::Real time, int)
 
void operator() (amrex::FabArray< amrex::BaseFab< Set::Scalar >> &mf, int dcomp, int ncomp, amrex::IntVect const &, amrex::Real time, int bccomp)
 
std::enable_if< std::is_same< Q, amrex::Real >::value >::type operator() (amrex::MultiFab &mf, int dcomp, int ncomp, amrex::IntVect const &, amrex::Real time, int bccomp)
 
virtual amrex::Periodicity Periodicity () const
 

Static Public Member Functions

static void Parse (Constant &value, IO::ParmParse &pp)
 

Private Attributes

unsigned int m_ncomp = 0
 
std::array< std::vector< int >, m_nfaces > m_bc_type
 
std::array< std::vector< Numeric::Interpolator::Linear< Set::Scalar > >, m_nfaces > m_bc_val
 

Additional Inherited Members

- Protected Attributes inherited from BC::BC< Set::Scalar >
amrex::Geometry m_geom
 

Detailed Description

Definition at line 89 of file Constant.H.

Constructor & Destructor Documentation

◆ Constant() [1/3]

BC::Constant::Constant ( int  a_ncomp)
inline

Definition at line 107 of file Constant.H.

◆ Constant() [2/3]

BC::Constant::Constant ( int  a_ncomp,
IO::ParmParse pp,
std::string  name 
)
inline

Definition at line 108 of file Constant.H.

◆ Constant() [3/3]

Constant::Constant ( int  ncomp,
amrex::Vector< std::string >  bc_hi_str,
amrex::Vector< std::string >  bc_lo_str,
AMREX_D_DECL(amrex::Vector< amrex::Real > _bc_lo_1, amrex::Vector< amrex::Real > _bc_lo_2, amrex::Vector< amrex::Real > _bc_lo_3)  ,
AMREX_D_DECL(amrex::Vector< amrex::Real > _bc_hi_1, amrex::Vector< amrex::Real > _bc_hi_2, amrex::Vector< amrex::Real > _bc_hi_3)   
)

Definition at line 7 of file Constant.cpp.

Here is the call graph for this function:

◆ ~Constant()

virtual BC::Constant::~Constant ( )
inlinevirtual

Definition at line 121 of file Constant.H.

Member Function Documentation

◆ FillBoundary() [1/5]

void Constant::FillBoundary ( amrex::BaseFab< Set::Scalar > &  in,
const amrex::Box &  box,
int  ngrow,
int  dcomp,
int  ncomp,
amrex::Real  time,
Orientation  face = Orientation::All,
const amrex::Mask *  mask = nullptr 
)
overridevirtual

Implements BC::BC< Set::Scalar >.

Definition at line 59 of file Constant.cpp.

Here is the call graph for this function:

◆ FillBoundary() [2/5]

virtual void BC::BC< T >::FillBoundary

◆ FillBoundary() [3/5]

virtual void BC::BC< T >::FillBoundary
inline

Definition at line 71 of file BC.H.

◆ FillBoundary() [4/5]

virtual void BC::BC< T >::FillBoundary
inline

Definition at line 58 of file BC.H.

◆ FillBoundary() [5/5]

template<class Q = T>
std::enable_if<std::is_same<Q, amrex::Real>::value>::type BC::BC< T >::FillBoundary ( class Q  = T)
inline

Definition at line 89 of file BC.H.

◆ GetBCRec()

amrex::BCRec Constant::GetBCRec ( )
overridevirtual

Implements BC::BC< Set::Scalar >.

Definition at line 174 of file Constant.cpp.

◆ GetBCTypes()

template<class T >
const amrex::Array<amrex::Array<T, AMREX_SPACEDIM>, 2> BC::Constant::GetBCTypes ( )
inline

Definition at line 138 of file Constant.H.

◆ IsPeriodic()

amrex::Array< int, AMREX_SPACEDIM > Constant::IsPeriodic ( )
overridevirtual

Reimplemented from BC::BC< Set::Scalar >.

Definition at line 183 of file Constant.cpp.

Here is the call graph for this function:

◆ Parse()

static void BC::Constant::Parse ( Constant value,
IO::ParmParse pp 
)
inlinestatic

Definition at line 163 of file Constant.H.

Here is the call graph for this function:

◆ Periodicity() [1/2]

amrex::Periodicity Constant::Periodicity ( ) const
overridevirtual

Definition at line 189 of file Constant.cpp.

Here is the call graph for this function:

◆ Periodicity() [2/2]

amrex::Periodicity Constant::Periodicity ( const amrex::Box &  b)
overridevirtual

Reimplemented from BC::BC< Set::Scalar >.

Definition at line 195 of file Constant.cpp.

Here is the call graph for this function:

Field Documentation

◆ m_bc_type

std::array<std::vector<int>, m_nfaces> BC::Constant::m_bc_type
private

Definition at line 159 of file Constant.H.

◆ m_bc_val

std::array<std::vector<Numeric::Interpolator::Linear<Set::Scalar> >, m_nfaces> BC::Constant::m_bc_val
private

Definition at line 160 of file Constant.H.

◆ m_ncomp

unsigned int BC::Constant::m_ncomp = 0
private

Definition at line 152 of file Constant.H.


The documentation for this class was generated from the following files: