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

An attribute specifying that an object is a residual object applicable to the Navier-Stokes momentum equation for incompressible or weakly compressible flows. More...

#include <INSFVAttributes.h>

Inheritance diagram for AttribINSFVMomentumResidualObject:
[legend]

Public Types

typedef bool Key
 

Public Member Functions

void setFrom (const Key k)
 
 AttribINSFVMomentumResidualObject (TheWarehouse &w)
 
 AttribINSFVMomentumResidualObject (TheWarehouse &w, Key k)
 
void initFrom (const MooseObject *obj) override
 
bool isMatch (const Attribute &other) const override
 
bool isEqual (const Attribute &other) const override
 
 hashfunc (_val)
 
 clonefunc (AttribINSFVMomentumResidualObject)
 
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

Key _val
 

Detailed Description

An attribute specifying that an object is a residual object applicable to the Navier-Stokes momentum equation for incompressible or weakly compressible flows.

Definition at line 68 of file INSFVAttributes.h.

Member Typedef Documentation

◆ Key

Definition at line 71 of file INSFVAttributes.h.

Constructor & Destructor Documentation

◆ AttribINSFVMomentumResidualObject() [1/2]

AttribINSFVMomentumResidualObject::AttribINSFVMomentumResidualObject ( TheWarehouse w)
inline

Definition at line 73 of file INSFVAttributes.h.

74  : Attribute(w, "insfv_residual_object"), _val(false)
75  {
76  }
Attribute(TheWarehouse &w, const std::string name)

◆ AttribINSFVMomentumResidualObject() [2/2]

AttribINSFVMomentumResidualObject::AttribINSFVMomentumResidualObject ( TheWarehouse w,
Key  k 
)
inline

Definition at line 77 of file INSFVAttributes.h.

78  : Attribute(w, "insfv_residual_object"), _val(k)
79  {
80  }
Attribute(TheWarehouse &w, const std::string name)
static const std::string k
Definition: NS.h:130

Member Function Documentation

◆ clonefunc()

AttribINSFVMomentumResidualObject::clonefunc ( AttribINSFVMomentumResidualObject  )

◆ hashfunc()

AttribINSFVMomentumResidualObject::hashfunc ( _val  )

◆ initFrom()

void AttribINSFVMomentumResidualObject::initFrom ( const MooseObject obj)
overridevirtual

Implements Attribute.

Definition at line 48 of file INSFVAttributes.C.

49 {
50  _val = dynamic_cast<const INSFVMomentumResidualObject *>(obj);
51 }
All objects that contribute to pressure-based (e.g.

◆ isEqual()

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

Implements Attribute.

Definition at line 61 of file INSFVAttributes.C.

62 {
63  auto a = dynamic_cast<const AttribINSFVMomentumResidualObject *>(&other);
64  return a && (a->_val == _val);
65 }
An attribute specifying that an object is a residual object applicable to the Navier-Stokes momentum ...

◆ isMatch()

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

Implements Attribute.

Definition at line 54 of file INSFVAttributes.C.

55 {
56  auto a = dynamic_cast<const AttribINSFVMomentumResidualObject *>(&other);
57  return a && (a->_val == _val);
58 }
An attribute specifying that an object is a residual object applicable to the Navier-Stokes momentum ...

◆ setFrom()

void AttribINSFVMomentumResidualObject::setFrom ( const Key  k)
inline

Definition at line 72 of file INSFVAttributes.h.

72 { _val = k; }
static const std::string k
Definition: NS.h:130

Member Data Documentation

◆ _val

Key AttribINSFVMomentumResidualObject::_val
private

Definition at line 88 of file INSFVAttributes.h.

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


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