https://mooseframework.inl.gov
Loading...
Searching...
No Matches
INSFVMomentumGravity.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 "FVElementalKernel.h"
14
19{
20public:
23
24 void gatherRCData(const Elem &) override {}
25 void gatherRCData(const FaceInfo &) override {}
26
27protected:
28 ADReal computeQpResidual() override;
29
31 const RealVectorValue _gravity;
32
35};
DualNumber< Real, DNDerivativeType, true > ADReal
Imposes a gravitational force on the momentum equation in Rhie-Chow (incompressible) contexts.
void gatherRCData(const Elem &) override
Should be a non-empty implementation if the residual object is a FVElementalKernel and introduces res...
const RealVectorValue _gravity
The gravity vector.
ADReal computeQpResidual() override
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...
static InputParameters validParams()
All objects that contribute to pressure-based (e.g.