https://mooseframework.inl.gov
INSFVMomentumAdvectionOutflowBC.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 "INSFVFluxBC.h"
14 
16 
23 {
24 public:
27 
29  void gatherRCData(const FaceInfo &) override;
30 
31 protected:
35  virtual const Moose::FunctorBase<ADReal> & epsFunctor() const { return _unity_functor; }
36 
38 
43  ADReal computeAdvectedQuantity(const Moose::FaceArg & boundary_face,
44  const Moose::StateArg & state);
45 
49  const Moose::Functor<ADReal> * const _v;
51  const Moose::Functor<ADReal> * const _w;
52 
54  const unsigned int _dim;
55 
58 
61 };
ADReal computeSegregatedContribution() override
Compute the contribution which goes into the residual of the segregated system.
const Moose::Functor< ADReal > & _u
x-velocity
A flux boundary condition that momentum residual objects that add boundary flux terms should inherit ...
Definition: INSFVFluxBC.h:19
const Moose::Functor< ADReal > & _rho
The density.
void gatherRCData(const FaceInfo &) override
Should be a non-empty implementation if the residual object is a FVFluxKernel and introduces residual...
void gatherRCData(const Elem &) override final
Should be a non-empty implementation if the residual object is a FVElementalKernel and introduces res...
Definition: INSFVFluxBC.h:26
DualNumber< Real, DNDerivativeType, true > ADReal
const Moose::Functor< ADReal > *const _v
y-velocity
virtual const Moose::FunctorBase< ADReal > & epsFunctor() const
A virtual method that can be overridden in PINSFV classes to return a non-unity porosity.
const Moose::Functor< ADReal > *const _w
z-velocity
const unsigned int _dim
the dimension of the simulation
const Moose::ConstantFunctor< ADReal > _unity_functor
A unity functor used in the epsFunctor virtual method.
ADReal computeAdvectedQuantity(const Moose::FaceArg &boundary_face, const Moose::StateArg &state)
Computes the advected quantity which is then used on gatherRCData and computeSegregatedContribution.
A class for finite volume fully developed outflow boundary conditions for the momentum equation It ad...
INSFVMomentumAdvectionOutflowBC(const InputParameters &params)
A parent class for INSFV fully developed flow boundary conditions.