Loading [MathJax]/extensions/tex2jax.js
https://mooseframework.inl.gov
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
INSFVMomentumResidualObject Class Referenceabstract

All objects that contribute to pressure-based (e.g. More...

#include <INSFVMomentumResidualObject.h>

Inheritance diagram for INSFVMomentumResidualObject:
[legend]

Public Member Functions

template<typename T >
 INSFVMomentumResidualObject (T &obj)
 
virtual void gatherRCData (const Elem &elem)=0
 Should be a non-empty implementation if the residual object is a FVElementalKernel and introduces residuals that are a function of the velocity, e.g. More...
 
virtual void gatherRCData (const FaceInfo &fi)=0
 Should be a non-empty implementation if the residual object is a FVFluxKernel and introduces residuals that are a function of the velocity, e.g. More...
 
virtual ~INSFVMomentumResidualObject ()=default
 

Static Public Member Functions

static InputParameters validParams ()
 

Protected Attributes

RhieChowInterpolatorBase_rc_uo
 The Rhie Chow user object that is responsible for generating face velocities for advection terms. More...
 
const unsigned int _index
 index x|y|z More...
 

Detailed Description

All objects that contribute to pressure-based (e.g.

not density-based) Navier-Stokes momentum equation residuals should inherit from this interface class. This holds true for INSFV, PINSFV, and WCNSFV objects (but not CNSFV or PCNSFV). This interface class introduces virtual methods that are used to gather on-diagonal 'a' coefficient data for Rhie-Chow interpolation

Definition at line 24 of file INSFVMomentumResidualObject.h.

Constructor & Destructor Documentation

◆ INSFVMomentumResidualObject()

template<typename T >
INSFVMomentumResidualObject::INSFVMomentumResidualObject ( T &  obj)
Parameters
objthe residual object that inherits from this interface

Definition at line 62 of file INSFVMomentumResidualObject.h.

63  : _rc_uo(const_cast<RhieChowInterpolatorBase &>(
64  obj.template getUserObject<RhieChowInterpolatorBase>("rhie_chow_user_object"))),
65  _index(obj.template getParam<MooseEnum>("momentum_component"))
66 {
67 }
const unsigned int _index
index x|y|z
RhieChowInterpolatorBase & _rc_uo
The Rhie Chow user object that is responsible for generating face velocities for advection terms...

◆ ~INSFVMomentumResidualObject()

virtual INSFVMomentumResidualObject::~INSFVMomentumResidualObject ( )
virtualdefault

Member Function Documentation

◆ gatherRCData() [1/2]

virtual void INSFVMomentumResidualObject::gatherRCData ( const Elem &  elem)
pure virtual

◆ gatherRCData() [2/2]

virtual void INSFVMomentumResidualObject::gatherRCData ( const FaceInfo fi)
pure virtual

◆ validParams()

InputParameters INSFVMomentumResidualObject::validParams ( )
static

Definition at line 14 of file INSFVMomentumResidualObject.C.

Referenced by INSFVMomentumPressure::validParams(), WCNSFVMomentumFluxBC::validParams(), INSFVMomentumGravity::validParams(), INSFVMomentumMeshAdvection::validParams(), INSFVElementalKernel::validParams(), INSFVTimeKernel::validParams(), INSFVFluxKernel::validParams(), INSFVFluxBC::validParams(), INSFVPump::validParams(), INSFVMomentumBoussinesq::validParams(), INSFVBodyForce::validParams(), INSFVMomentumPressureFlux::validParams(), INSFVMomentumAdvection::validParams(), PINSFVFunctorBC::validParams(), and PNSFVMomentumPressureFluxRZ::validParams().

15 {
16  auto params = emptyInputParameters();
17  params.addRequiredParam<UserObjectName>("rhie_chow_user_object", "The rhie-chow user-object");
18  MooseEnum momentum_component("x=0 y=1 z=2");
19  params.addRequiredParam<MooseEnum>(
20  "momentum_component",
21  momentum_component,
22  "The component of the momentum equation that this kernel applies to.");
23  return params;
24 }
InputParameters emptyInputParameters()

Member Data Documentation

◆ _index

const unsigned int INSFVMomentumResidualObject::_index
protected

◆ _rc_uo

RhieChowInterpolatorBase& INSFVMomentumResidualObject::_rc_uo
protected

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