https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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{
24public:
27
29 void gatherRCData(const FaceInfo &) override;
30
31protected:
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
52
54 const unsigned int _dim;
55
58
61};
DualNumber< Real, DNDerivativeType, true > ADReal
A flux boundary condition that momentum residual objects that add boundary flux terms should inherit ...
Definition INSFVFluxBC.h:20
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
A parent class for INSFV fully developed flow boundary conditions.
A class for finite volume fully developed outflow boundary conditions for the momentum equation It ad...
const Moose::Functor< ADReal > *const _w
z-velocity
const unsigned int _dim
the dimension of the simulation
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 > & _rho
The density.
const Moose::Functor< ADReal > & _u
x-velocity
ADReal computeAdvectedQuantity(const Moose::FaceArg &boundary_face, const Moose::StateArg &state)
Computes the advected quantity which is then used on gatherRCData and computeSegregatedContribution.
const Moose::Functor< ADReal > *const _v
y-velocity
void gatherRCData(const FaceInfo &) override
Should be a non-empty implementation if the residual object is a FVFluxKernel and introduces residual...
const Moose::ConstantFunctor< ADReal > _unity_functor
A unity functor used in the epsFunctor virtual method.
ADReal computeSegregatedContribution() override
Compute the contribution which goes into the residual of the segregated system.