https://mooseframework.inl.gov
Loading...
Searching...
No Matches
IncompressibleMomentumSPScalarKernel.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
13
17template <bool is_ad>
19{
21
22public:
24 virtual bool isADObject() const override { return is_ad; };
26
27protected:
28 virtual GenericReal<is_ad> massFlowRate() const override { return Base::_u[0]; };
29 virtual GenericReal<is_ad> pressureDrop() const override { return _dPc[0]; };
30 virtual Real computeQpJacobian() override;
33};
34
IncompressibleMomentumSPScalarKernelTempl< true > ADIncompressibleMomentumSPScalarKernel
IncompressibleMomentumSPScalarKernelTempl< false > IncompressibleMomentumSPScalarKernel
Moose::GenericType< VariableValue, is_ad > GenericVariableValue
Moose::GenericType< Real, is_ad > GenericReal
Path-integrated incompressible momentum kernel base class.
Regular path-integrated incompressible momentum kernel.
virtual GenericReal< is_ad > massFlowRate() const override
const GenericVariableValue< is_ad > & _dPc
Coupled reference pressure drop from inlet to outlet of the path.
virtual GenericReal< is_ad > pressureDrop() const override