https://mooseframework.inl.gov
FunctorGapFluxModelConduction.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 #include "libmesh/utility.h"
12 
14 
17 {
19  params.addClassDescription(
20  "Gap flux model for varying gap conductance using a functor for temperature.");
21  params.addRequiredParam<MooseFunctorName>("temperature", "The name of the temperature functor");
22  params.addParam<MooseFunctorName>("gap_conductivity_multiplier",
23  1,
24  "Thermal conductivity multiplier. Multiplied by the constant "
25  "gap_conductivity to form the final conductivity");
26  return params;
27 }
28 
30  : GapFluxModelConductionBase(parameters),
31  _T(getFunctor<ADReal>("temperature")),
32  _gap_conductivity_multiplier(getFunctor<ADReal>("gap_conductivity_multiplier"))
33 {
34 }
35 
36 ADReal
38 {
39  const auto state = determineState();
41  _T(_primary_point, state),
44 }
Moose::ElemPointArg _primary_point
The primary quadrature point location.
Gap flux model for varying gap conductance using a functor for temperature.
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
Gap flux model for varying gap conductance.
Moose::StateArg determineState() const
FunctorGapFluxModelConduction(const InputParameters &parameters)
ADReal computeConductionFlux(const ADReal &secondary_T, const ADReal &primary_T, const ADReal &conductivity_multiplier) const
computes the conduction flux based on the input secondary and primary temperatures as well a gap cond...
DualNumber< Real, DNDerivativeType, true > ADReal
void addRequiredParam(const std::string &name, const std::string &doc_string)
virtual ADReal computeFlux() const override
Compute gap physics used cache information in GapFluxModelBase.
registerMooseObject("HeatTransferApp", FunctorGapFluxModelConduction)
static InputParameters validParams()
const Moose::Functor< ADReal > & _T
temperature functor for computing temperature along the secondary and primary surfaces ...
void addClassDescription(const std::string &doc_string)
const Moose::Functor< ADReal > & _gap_conductivity_multiplier
Thermal conductivity multiplier.
Moose::ElemPointArg _secondary_point
The secondary quadrature point location.