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
16
20template <bool is_ad>
22 : public std::conditional<is_ad, ADScalarKernel, ScalarKernel>::type
23{
24 using Base = typename std::conditional<is_ad, ADScalarKernel, ScalarKernel>::type;
25
26public:
28 virtual bool isADObject() const override { return is_ad; };
30
31protected:
32 virtual GenericReal<is_ad> computeQpResidual() override;
33 virtual Real computeQpJacobian() override;
45 const bool _is_implicit;
54};
55
IncompressibleEnergySPScalarKernelTempl< false > IncompressibleEnergySPScalarKernel
IncompressibleEnergySPScalarKernelTempl< true > ADIncompressibleEnergySPScalarKernel
Moose::GenericType< VariableValue, is_ad > GenericVariableValue
Moose::GenericType< Real, is_ad > GenericReal
Path-integrated incompressible energy kernel.
const GenericVariableValue< is_ad > & _Tdown
Coupled temperature of the downstream segment.
const GenericVariableValue< is_ad > & _m
Coupled mass flow rate through the segment.
const GenericVariableValue< is_ad > & _Tw
Coupled temperature of the component wall.
const Moose::Functor< GenericReal< is_ad > > & _perimeter
Wetted perimeter of the segment.
const Moose::Functor< GenericReal< is_ad > > & _area
Flow area of the segment.
const Moose::Functor< GenericReal< is_ad > > & _length
Length of the segment.
const GenericVariableValue< is_ad > & _Tup
Coupled temperature of the upstream 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.