https://mooseframework.inl.gov
PINSFVFunctorBC.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://mooseframework.inl.gov
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #pragma once
11 
12 #include "FVFluxBC.h"
13 #include "INSFVFlowBC.h"
15 
21 {
22 public:
24  PINSFVFunctorBC(const InputParameters & params);
25 
26  void gatherRCData(const Elem &) override final {}
27  void gatherRCData(const FaceInfo &) override final;
28 
29 protected:
30  virtual ADReal computeQpResidual() override;
31 
45  const MooseEnum _eqn;
48  const unsigned int _index;
49 
52 
54  bool _computing_rc_data = false;
55 
57  ADReal _a = 0;
58 };
const unsigned int _index
If computing the boundary fluxes for the momentum equation, this denotes the component of the momentu...
const Moose::Functor< ADReal > *const _sup_vel_z
The z component of the superficial velocity.
ADReal _a
Local variable to hold this object&#39;s contribution to the Rhie-Chow &#39;a&#39; coefficient.
const Moose::Functor< ADReal > & _eps
The porosity.
Moose::FV::InterpMethod _advected_interp_method
The interpolation method to use for the advected quantity.
const Moose::Functor< ADReal > & _rho
The density.
PINSFVFunctorBC(const InputParameters &params)
DualNumber< Real, DNDerivativeType, true > ADReal
const Moose::Functor< ADReal > & _sup_vel_x
The x component of the superficial velocity.
All objects that contribute to pressure-based (e.g.
virtual ADReal computeQpResidual() override
const Moose::Functor< ADReal > *const _sup_vel_y
The y component of the superficial velocity.
Evaluates boundary mass or momentum fluxes through functor evaluation of the superficial velocities...
const Moose::Functor< ADReal > & _pressure
The pressure.
const MooseEnum _eqn
Denotes the equation we&#39;re computing the boundary fluxes for. Options are either "mass" or "momentum"...
bool _computing_rc_data
Whether we are computing Rhie-Chow data.
void gatherRCData(const Elem &) override final
Should be a non-empty implementation if the residual object is a FVElementalKernel and introduces res...
A parent class for INSFV flow boundary conditions.
Definition: INSFVFlowBC.h:17
static InputParameters validParams()