https://mooseframework.inl.gov
Loading...
Searching...
No Matches
ADPipeOuterWallHeatFluxScalarKernel.C
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
11
12#include "ScalarCoupleable.h"
13
15
18{
20 params.addClassDescription("Assembles transport equation for the temperature of the "
21 "outer-surface radial node of a pipe wall, with a "
22 "prescribed heat flux applied to its outer surface.");
23 params.addCoupledVar("inner_wall_temperature",
24 {},
25 "Temperature of the inner-surface wall node, on the other side of this "
26 "layer's radial conduction path. Takes a scalar variable name");
27 params.addRequiredParam<MooseFunctorName>("heat_flux", "Applied heat flux functor [W/m^2]");
28 params.addRequiredParam<MooseFunctorName>(
29 "heated_perimeter", "Perimeter of this wall node over which the heat flux is applied [m]");
30
31 return params;
32}
33
35 const InputParameters & parameters)
36 : Base(parameters),
37 _Tin(ScalarCoupleable::adCoupledScalarValue("inner_wall_temperature")),
38 _heat_flux(this->template getFunctor<ADReal>("heat_flux")),
39 _heated_perimeter(this->template getFunctor<ADReal>("heated_perimeter"))
40{
41}
42
45{
46 const Moose::PointArg arg = {Point(1, 2, 3)};
48
49 // Prescribed heat flux applied to this node, positive into the wall
50 return _heat_flux(arg, state) * _heated_perimeter(arg, state);
51}
52
53Real
55{
56 mooseError("convectiveJacobian() should not be called in AD mode");
57 return 0;
58}
registerMooseObject("ThermalHydraulicsApp", ADPipeOuterWallHeatFluxScalarKernel)
DualNumber< Real, DNDerivativeType, true > ADReal
Outer wall path-integrated incompressible conjugate heat transfer kernel with an applied heat flux bo...
virtual Real convectiveJacobian() const override
Derivative of convectiveLinearHeatRate() with respect to this node's own temperature.
const Moose::Functor< ADReal > & _heat_flux
Applied heat flux functor.
const Moose::Functor< ADReal > & _heated_perimeter
Perimeter of this wall node over which the heat flux is applied.
virtual ADReal convectiveLinearHeatRate() const override
Heat flux exchanged with the fluid or ambient environment on this node's interface to the fluid/envir...
ADPipeOuterWallHeatFluxScalarKernel(const InputParameters &parameters)
Base class for path-integrated incompressible conjugate heat transfer kernels.
const bool _is_implicit
Property state integration flag.
void addRequiredParam(const std::string &name, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
void addCoupledVar(const std::string &name, const std::string &doc_string)
void mooseError(Args &&... args) const
StateArg oldState()
StateArg currentState()