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
14template <bool is_ad>
16{
18
19public:
21 virtual bool isADObject() const override { return is_ad; };
23
24protected:
25 virtual GenericReal<is_ad> massFlowRate() const override { return Base::_u[0]; };
26 virtual GenericReal<is_ad> pressureDrop() const override { return _dPc[0]; };
27 virtual Real computeQpJacobian() override;
30};
31
IncompressibleMomentumSPScalarKernelTempl< true > ADIncompressibleMomentumSPScalarKernel
IncompressibleMomentumSPScalarKernelTempl< false > IncompressibleMomentumSPScalarKernel
Moose::GenericType< Real, is_ad > GenericReal
virtual GenericReal< is_ad > massFlowRate() const override
const VariableValue & _dPc
Coupled reference pressure drop from inlet to outlet of the path.
virtual GenericReal< is_ad > pressureDrop() const override
VariableValueTempl< false > VariableValue