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

Public Member Functions

 Constant ()
 
 Constant (IO::ParmParse &pp, std::string name)
 
 ~Constant ()
 
void Set (const Face face, const Direction direction, const Type type, const Set::Scalar value)
 
void Set (const Face, const Direction, const Type, const Set::Scalar, amrex::Vector< amrex::MultiFab * > &, const amrex::Vector< amrex::Geometry > &)
 
void Set (const Face face, const Direction direction, const Type type, const Set::Scalar value, amrex::Vector< amrex::MultiFab > &a_rhs, const amrex::Vector< amrex::Geometry > &a_geom)
 
void Set (const Face face, const Direction direction, const Type type, const Set::Scalar value, amrex::Vector< std::unique_ptr< amrex::MultiFab > > &a_rhs, const amrex::Vector< amrex::Geometry > &a_geom)
 
virtual void Init (amrex::FabArray< amrex::BaseFab< Set::Vector >> *a_rhs, const amrex::Geometry &a_geom, bool a_homogeneous=false) const
 
virtual void Init (amrex::MultiFab *a_rhs, const amrex::Geometry &a_geom, bool a_homogeneous=false) const
 
virtual std::array< Type, AMREX_SPACEDIM > getType (const int &i, const int &j, [[maybe_unused]] const int &k, const amrex::Box &domain)
 
AMREX_FORCE_INLINE Set::Vector operator() (const Set::Vector &u, const Set::Matrix &gradu, const Set::Matrix &sigma, const int &i, const int &j, const int &k, const amrex::Box &domain)
 
AMREX_FORCE_INLINE Set::Vector set (std::array< Type, AMREX_SPACEDIM > &bc_type, const Set::Vector &u, const Set::Matrix &gradu, const Set::Matrix &sigma, Set::Vector n) const
 
virtual void Init (amrex::MultiFab *a_rhs, const amrex::Geometry &a_geom, bool a_homogeneous=false) const=0
 
virtual void Init (amrex::FabArray< amrex::BaseFab< Set::Vector >> *a_rhs, const amrex::Geometry &a_geom, bool a_homogeneous=false) const=0
 
void Init (Set::Field< Set::Scalar > &a_rhs, const amrex::Vector< amrex::Geometry > &a_geom, bool a_homogeneous=false) const
 
void Init (Set::Field< Set::Vector > &a_rhs, const amrex::Vector< amrex::Geometry > &a_geom, bool a_homogeneous=false) const
 
- Public Member Functions inherited from BC::Operator::Elastic::Elastic
void SetTime (const Set::Scalar a_time)
 
void Init (Set::Field< Set::Scalar > &a_rhs, const amrex::Vector< amrex::Geometry > &a_geom, bool a_homogeneous=false) const
 
void Init (Set::Field< Set::Vector > &a_rhs, const amrex::Vector< amrex::Geometry > &a_geom, bool a_homogeneous=false) const
 
virtual std::array< Type, AMREX_SPACEDIM > getType (const int &i, const int &j, const int &k, const amrex::Box &domain)=0
 

Static Public Member Functions

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

Protected Attributes

std::array< std::array< Type, AMREX_SPACEDIM >, m_nfaces > m_bc_type
 
std::array< std::array< Numeric::Interpolator::Linear< Set::Scalar >, AMREX_SPACEDIM >, m_nfaces > m_bc_val
 
- Protected Attributes inherited from BC::Operator::Elastic::Elastic
Set::Scalar m_time = 0.0
 

Additional Inherited Members

- Public Types inherited from BC::Operator::Elastic::Elastic
enum  Type {
  Displacement, Traction, Periodic, Neumann,
  None
}
 
enum  Direction { AMREX_D_DECL =(X=0,Y=1,Z=2) }
 
- Static Public Attributes inherited from BC::Operator::Elastic::Elastic
static const int min = 1
 
static const int max = 2
 

Detailed Description

Definition at line 31 of file Constant.H.

Constructor & Destructor Documentation

◆ Constant() [1/2]

BC::Operator::Elastic::Constant::Constant ( )
inline

Definition at line 35 of file Constant.H.

◆ Constant() [2/2]

BC::Operator::Elastic::Constant::Constant ( IO::ParmParse pp,
std::string  name 
)
inline

Definition at line 46 of file Constant.H.

◆ ~Constant()

BC::Operator::Elastic::Constant::~Constant ( )
inline

Definition at line 49 of file Constant.H.

Member Function Documentation

◆ getType()

virtual std::array<Type,AMREX_SPACEDIM> BC::Operator::Elastic::Constant::getType ( const int &  i,
const int &  j,
[[maybe_unused] ] const int &  k,
const amrex::Box &  domain 
)
inlinevirtual

Definition at line 255 of file Constant.H.

◆ Init() [1/6]

virtual void BC::Operator::Elastic::Constant::Init ( amrex::FabArray< amrex::BaseFab< Set::Vector >> *  a_rhs,
const amrex::Geometry &  a_geom,
bool  a_homogeneous = false 
) const
inlinevirtual

Implements BC::Operator::Elastic::Elastic.

Definition at line 100 of file Constant.H.

◆ Init() [2/6]

virtual void BC::Operator::Elastic::Elastic::Init

◆ Init() [3/6]

virtual void BC::Operator::Elastic::Constant::Init ( amrex::MultiFab *  a_rhs,
const amrex::Geometry &  a_geom,
bool  a_homogeneous = false 
) const
inlinevirtual

Implements BC::Operator::Elastic::Elastic.

Definition at line 178 of file Constant.H.

◆ Init() [4/6]

virtual void BC::Operator::Elastic::Elastic::Init

◆ Init() [5/6]

void BC::Operator::Elastic::Elastic::Init
inline

Definition at line 60 of file Elastic.H.

◆ Init() [6/6]

void BC::Operator::Elastic::Elastic::Init
inline

Definition at line 69 of file Elastic.H.

◆ operator()()

AMREX_FORCE_INLINE Set::Vector BC::Operator::Elastic::Constant::operator() ( const Set::Vector u,
const Set::Matrix gradu,
const Set::Matrix sigma,
const int &  i,
const int &  j,
const int &  k,
const amrex::Box &  domain 
)
inlinevirtual

Implements BC::Operator::Elastic::Elastic.

Definition at line 311 of file Constant.H.

Here is the call graph for this function:

◆ Parse()

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

Definition at line 405 of file Constant.H.

Here is the call graph for this function:

◆ Set() [1/4]

void BC::Operator::Elastic::Constant::Set ( const Face  face,
const Direction  direction,
const Type  type,
const Set::Scalar  value 
)
inline

Definition at line 53 of file Constant.H.

◆ Set() [2/4]

void BC::Operator::Elastic::Constant::Set ( const Face  face,
const Direction  direction,
const Type  type,
const Set::Scalar  value,
amrex::Vector< amrex::MultiFab > &  a_rhs,
const amrex::Vector< amrex::Geometry > &  a_geom 
)
inline

Definition at line 74 of file Constant.H.

Here is the call graph for this function:

◆ Set() [3/4]

void BC::Operator::Elastic::Constant::Set ( const Face  face,
const Direction  direction,
const Type  type,
const Set::Scalar  value,
amrex::Vector< std::unique_ptr< amrex::MultiFab > > &  a_rhs,
const amrex::Vector< amrex::Geometry > &  a_geom 
)
inline

Definition at line 86 of file Constant.H.

Here is the call graph for this function:

◆ Set() [4/4]

void BC::Operator::Elastic::Constant::Set ( const  Face,
const  Direction,
const  Type,
const Set::Scalar  ,
amrex::Vector< amrex::MultiFab * > &  ,
const amrex::Vector< amrex::Geometry > &   
)
inline

Definition at line 63 of file Constant.H.

Here is the call graph for this function:

◆ set()

AMREX_FORCE_INLINE Set::Vector BC::Operator::Elastic::Constant::set ( std::array< Type, AMREX_SPACEDIM > &  bc_type,
const Set::Vector u,
const Set::Matrix gradu,
const Set::Matrix sigma,
Set::Vector  n 
) const
inline

Definition at line 375 of file Constant.H.

Field Documentation

◆ m_bc_type

std::array<std::array<Type, AMREX_SPACEDIM>, m_nfaces> BC::Operator::Elastic::Constant::m_bc_type
protected

Definition at line 401 of file Constant.H.

◆ m_bc_val

std::array<std::array<Numeric::Interpolator::Linear<Set::Scalar>,AMREX_SPACEDIM>, m_nfaces> BC::Operator::Elastic::Constant::m_bc_val
protected

Definition at line 402 of file Constant.H.


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