https://mooseframework.inl.gov
Public Types | Public Member Functions | Private Attributes | List of all members
AttribINSFVBCs Class Referenceabstract

An attribute specifying that a boundary condition is a member of a subset of boundary conditions appropriate for incompressible or weakly compressible flow physics. More...

#include <INSFVAttributes.h>

Inheritance diagram for AttribINSFVBCs:
[legend]

Public Types

typedef INSFVBCs Key
 

Public Member Functions

void setFrom (Key k)
 
 AttribINSFVBCs (TheWarehouse &w)
 
 AttribINSFVBCs (TheWarehouse &w, INSFVBCs mask)
 
 AttribINSFVBCs (TheWarehouse &w, unsigned int mask)
 
virtual void initFrom (const MooseObject *obj) override
 
virtual bool isMatch (const Attribute &other) const override
 
virtual bool isEqual (const Attribute &other) const override
 
 hashfunc (_val)
 
 clonefunc (AttribINSFVBCs)
 
bool operator== (const Attribute &other) const
 
bool operator!= (const Attribute &other) const
 
unsigned int id () const
 
virtual std::size_t hash () const=0
 
virtual std::unique_ptr< Attributeclone () const=0
 

Private Attributes

uint64_t _val = 0
 

Detailed Description

An attribute specifying that a boundary condition is a member of a subset of boundary conditions appropriate for incompressible or weakly compressible flow physics.

Definition at line 42 of file INSFVAttributes.h.

Member Typedef Documentation

◆ Key

Definition at line 45 of file INSFVAttributes.h.

Constructor & Destructor Documentation

◆ AttribINSFVBCs() [1/3]

AttribINSFVBCs::AttribINSFVBCs ( TheWarehouse w)
inline

Definition at line 48 of file INSFVAttributes.h.

48 : Attribute(w, "insfvbcs") {}
Attribute(TheWarehouse &w, const std::string name)

◆ AttribINSFVBCs() [2/3]

AttribINSFVBCs::AttribINSFVBCs ( TheWarehouse w,
INSFVBCs  mask 
)
inline

Definition at line 49 of file INSFVAttributes.h.

50  : Attribute(w, "insfvbcs"), _val(static_cast<uint64_t>(mask))
51  {
52  }
Attribute(TheWarehouse &w, const std::string name)

◆ AttribINSFVBCs() [3/3]

AttribINSFVBCs::AttribINSFVBCs ( TheWarehouse w,
unsigned int  mask 
)
inline

Definition at line 53 of file INSFVAttributes.h.

53 : Attribute(w, "insfvbcs"), _val(mask) {}
Attribute(TheWarehouse &w, const std::string name)

Member Function Documentation

◆ clonefunc()

AttribINSFVBCs::clonefunc ( AttribINSFVBCs  )

◆ hashfunc()

AttribINSFVBCs::hashfunc ( _val  )

◆ initFrom()

void AttribINSFVBCs::initFrom ( const MooseObject obj)
overridevirtual

Implements Attribute.

Definition at line 20 of file INSFVAttributes.C.

21 {
22  _val = 0;
23  // clang-format off
24  _val |= (unsigned int)INSFVBCs::INSFVFlowBC * (dynamic_cast<const INSFVFlowBC *>(obj) != nullptr);
25  _val |= (unsigned int)INSFVBCs::INSFVFullyDevelopedFlowBC * (dynamic_cast<const INSFVFullyDevelopedFlowBC *>(obj) != nullptr);
26  _val |= (unsigned int)INSFVBCs::INSFVNoSlipWallBC * (dynamic_cast<const INSFVNoSlipWallBC *>(obj) != nullptr);
27  _val |= (unsigned int)INSFVBCs::INSFVSlipWallBC * (dynamic_cast<const INSFVSlipWallBC *>(obj) != nullptr);
28  _val |= (unsigned int)INSFVBCs::INSFVSymmetryBC * (dynamic_cast<const INSFVSymmetryBC *>(obj) != nullptr);
29  _val |= (unsigned int)INSFVBCs::INSFVFreeSurfaceBC * (dynamic_cast<const INSFVFreeSurfaceBC *>(obj) != nullptr);
30  // clang-format on
31 }
void ErrorVector unsigned int

◆ isEqual()

bool AttribINSFVBCs::isEqual ( const Attribute other) const
overridevirtual

Implements Attribute.

Definition at line 41 of file INSFVAttributes.C.

42 {
43  auto a = dynamic_cast<const AttribINSFVBCs *>(&other);
44  return a && (a->_val == _val);
45 }
An attribute specifying that a boundary condition is a member of a subset of boundary conditions appr...

◆ isMatch()

bool AttribINSFVBCs::isMatch ( const Attribute other) const
overridevirtual

Implements Attribute.

Definition at line 34 of file INSFVAttributes.C.

35 {
36  auto a = dynamic_cast<const AttribINSFVBCs *>(&other);
37  return a && (a->_val & _val);
38 }
An attribute specifying that a boundary condition is a member of a subset of boundary conditions appr...

◆ setFrom()

void AttribINSFVBCs::setFrom ( Key  k)
inline

Definition at line 46 of file INSFVAttributes.h.

46 { _val = static_cast<uint64_t>(k); }
static const std::string k
Definition: NS.h:130

Member Data Documentation

◆ _val

uint64_t AttribINSFVBCs::_val = 0
private

Definition at line 61 of file INSFVAttributes.h.

Referenced by initFrom(), isEqual(), isMatch(), and setFrom().


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