https://mooseframework.inl.gov
Loading...
Searching...
No Matches
IncompressibleEnergySPScalarKernel.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 "ADScalarKernel.h"
13#include "ScalarKernel.h"
14#include "FunctorInterface.h"
15
17
18template <bool is_ad>
20 : public std::conditional<is_ad, ADScalarKernel, ScalarKernel>::type,
21 public FunctorInterface
22{
23 using Base = typename std::conditional<is_ad, ADScalarKernel, ScalarKernel>::type;
24
25public:
27 virtual bool isADObject() const override { return is_ad; };
29
30protected:
31 virtual GenericReal<is_ad> computeQpResidual() override;
32 virtual Real computeQpJacobian() override;
44 const bool _is_implicit;
53};
54
IncompressibleEnergySPScalarKernelTempl< false > IncompressibleEnergySPScalarKernel
IncompressibleEnergySPScalarKernelTempl< true > ADIncompressibleEnergySPScalarKernel
Moose::GenericType< Real, is_ad > GenericReal
const VariableValue & _Tup
Coupled temperature of the upstream segment.
const VariableValue & _m
Coupled mass flow rate through the segment.
const VariableValue & _Tdown
Coupled temperature of the downstream segment.
const Moose::Functor< GenericReal< is_ad > > & _perimeter
Wetted perimeter of the segment.
const VariableValue & _Tw
Coupled temperature of the component wall.
const Moose::Functor< GenericReal< is_ad > > & _area
Flow area of the segment.
const Moose::Functor< GenericReal< is_ad > > & _length
Length of the segment.
const bool _is_implicit
Property state integration flag.
const SinglePhaseFluidProperties & _fp
Fluid properties object.
virtual GenericReal< is_ad > computeQpResidual() override
typename std::conditional< is_ad, ADScalarKernel, ScalarKernel >::type Base
const Moose::Functor< GenericReal< is_ad > > & _Pref
System reference pressure.
Common class for single phase fluid properties.
VariableValueTempl< false > VariableValue