https://mooseframework.inl.gov
INSFVMomentumPressureFlux.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 "FVFluxKernel.h"
14 
20 {
21 public:
24 
25  // Pressure term so no RC data involved
26  void gatherRCData(const Elem &) override final {}
27  void gatherRCData(const FaceInfo &) override final {}
28 
29 protected:
30  virtual ADReal computeQpResidual() override;
31  virtual const Moose::FunctorBase<ADReal> & epsilon() const { return _unity_functor; }
32 
35 
38 };
const Moose::ConstantFunctor< ADReal > _unity_functor
A unity functor used in the epsilon virtual method.
void gatherRCData(const FaceInfo &) override final
Should be a non-empty implementation if the residual object is a FVFluxKernel and introduces residual...
virtual ADReal computeQpResidual() override
DualNumber< Real, DNDerivativeType, true > ADReal
void gatherRCData(const Elem &) override final
Should be a non-empty implementation if the residual object is a FVElementalKernel and introduces res...
A flux kernel using the divergence theorem for the pressure gradient term in the momentum equation...
static InputParameters validParams()
All objects that contribute to pressure-based (e.g.
virtual const Moose::FunctorBase< ADReal > & epsilon() const
const Moose::Functor< ADReal > & _p
The pressure.
INSFVMomentumPressureFlux(const InputParameters &params)