https://mooseframework.inl.gov
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Protected Attributes | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
ADPipeInnerWallTemperatureScalarKernel Class Reference

Inner wall path-integrated incompressible conjugate heat transfer kernel. More...

#include <ADPipeInnerWallTemperatureScalarKernel.h>

Inheritance diagram for ADPipeInnerWallTemperatureScalarKernel:
[legend]

Public Types

enum  ResidualTagType
 
typedef DataFileName DataFileParameterType
 

Public Member Functions

 ADPipeInnerWallTemperatureScalarKernel (const InputParameters &parameters)
 
virtual void reinit () override
 
virtual void computeResidual () override
 
virtual void computeJacobian () override
 
virtual void computeOffDiagJacobian (unsigned int jvar) override
 
virtual void computeOffDiagJacobianScalar (unsigned int jvar) override
 
virtual const MooseVariableScalar & variable () const override
 
virtual bool isActive ()
 
const VariableValue & uOld () const
 
virtual bool computesJacobian () const
 
virtual void computeResidualAndJacobian ()
 
virtual void computeNonlocalJacobian ()
 
virtual void computeNonlocalOffDiagJacobian (unsigned int)
 
virtual std::vector< const MooseVariableBase * > variables () const
 
const SubProblem & subProblem () const
 
virtual void prepareShapes (unsigned int var_num)
 
virtual std::set< std::string > additionalROVariables ()
 
virtual bool enabled () const
 
std::shared_ptr< MooseObject > getSharedPtr ()
 
std::shared_ptr< const MooseObject > getSharedPtr () const
 
bool isKokkosObject () const
 
MooseApp & getMooseApp () const
 
const std::string & type () const
 
const std::string & name () const
 
std::string typeAndName () const
 
MooseObjectParameterName uniqueParameterName (const std::string &parameter_name) const
 
MooseObjectName uniqueName () const
 
const InputParameters & parameters () const
 
const hit::Node * getHitNode () const
 
bool hasBase () const
 
const std::string & getBase () const
 
const T & getParam (const std::string &name) const
 
std::vector< std::pair< T1, T2 > > getParam (const std::string &param1, const std::string &param2) const
 
const T * queryParam (const std::string &name) const
 
const T & getRenamedParam (const std::string &old_name, const std::string &new_name) const
 
T getCheckedPointerParam (const std::string &name, const std::string &error_string="") const
 
bool isParamValid (const std::string &name) const
 
bool isParamSetByUser (const std::string &name) const
 
void connectControllableParams (const std::string &parameter, const std::string &object_type, const std::string &object_name, const std::string &object_parameter) const
 
void paramError (const std::string &param, Args... args) const
 
void paramWarning (const std::string &param, Args... args) const
 
void paramWarning (const std::string &param, Args... args) const
 
void paramInfo (const std::string &param, Args... args) const
 
std::string messagePrefix (const bool hit_prefix=true) const
 
std::string errorPrefix (const std::string &) const
 
void mooseError (Args &&... args) const
 
void mooseDocumentedError (const std::string &repo_name, const unsigned int issue_num, Args &&... args) const
 
void mooseErrorNonPrefixed (Args &&... args) const
 
void mooseWarning (Args &&... args) const
 
void mooseWarning (Args &&... args) const
 
void mooseWarningNonPrefixed (Args &&... args) const
 
void mooseWarningNonPrefixed (Args &&... args) const
 
void mooseDeprecated (Args &&... args) const
 
void mooseDeprecated (Args &&... args) const
 
void mooseDeprecatedNoTrace (Args &&... args) const
 
void mooseInfo (Args &&... args) const
 
void callMooseError (std::string msg, const bool with_prefix, const hit::Node *node=nullptr, const bool show_trace=true) const
 
std::string getDataFileName (const std::string &param) const
 
std::string getDataFileNameByName (const std::string &relative_path) const
 
std::string getDataFilePath (const std::string &relative_path) const
 
virtual void initialSetup ()
 
virtual void timestepSetup ()
 
virtual void jacobianSetup ()
 
virtual void residualSetup ()
 
virtual void subdomainSetup ()
 
virtual void customSetup (const ExecFlagType &)
 
const ExecFlagEnum & getExecuteOnEnum () const
 
const Function & getFunction (const std::string &name) const
 
const Function & getFunctionByName (const FunctionName &name) const
 
bool hasFunction (const std::string &param_name) const
 
bool hasFunctionByName (const FunctionName &name) const
 
Moose::Kokkos::Function getKokkosFunction (const std::string &name) const
 
const T & getKokkosFunction (const std::string &name) const
 
Moose::Kokkos::Function getKokkosFunctionByName (const FunctionName &name) const
 
const T & getKokkosFunctionByName (const FunctionName &name) const
 
bool hasKokkosFunction (const std::string &param_name) const
 
bool hasKokkosFunctionByName (const FunctionName &name) const
 
UserObjectName getUserObjectName (const std::string &param_name) const
 
const T & getUserObject (const std::string &param_name, bool is_dependency=true) const
 
const T & getUserObjectByName (const UserObjectName &object_name, bool is_dependency=true) const
 
const UserObjectBase & getUserObjectBase (const std::string &param_name, bool is_dependency=true) const
 
const UserObjectBase & getUserObjectBaseByName (const UserObjectName &object_name, bool is_dependency=true) const
 
bool isImplicit ()
 
Moose::StateArg determineState () const
 
bool isDefaultPostprocessorValue (const std::string &param_name, const unsigned int index=0) const
 
bool hasPostprocessor (const std::string &param_name, const unsigned int index=0) const
 
bool hasPostprocessorByName (const PostprocessorName &name) const
 
std::size_t coupledPostprocessors (const std::string &param_name) const
 
const PostprocessorName & getPostprocessorName (const std::string &param_name, const unsigned int index=0) const
 
const VectorPostprocessorValue & getVectorPostprocessorValue (const std::string &param_name, const std::string &vector_name) const
 
const VectorPostprocessorValue & getVectorPostprocessorValue (const std::string &param_name, const std::string &vector_name, bool needs_broadcast) const
 
const VectorPostprocessorValue & getVectorPostprocessorValueByName (const VectorPostprocessorName &name, const std::string &vector_name) const
 
const VectorPostprocessorValue & getVectorPostprocessorValueByName (const VectorPostprocessorName &name, const std::string &vector_name, bool needs_broadcast) const
 
const VectorPostprocessorValue & getVectorPostprocessorValueOld (const std::string &param_name, const std::string &vector_name) const
 
const VectorPostprocessorValue & getVectorPostprocessorValueOld (const std::string &param_name, const std::string &vector_name, bool needs_broadcast) const
 
const VectorPostprocessorValue & getVectorPostprocessorValueOldByName (const VectorPostprocessorName &name, const std::string &vector_name) const
 
const VectorPostprocessorValue & getVectorPostprocessorValueOldByName (const VectorPostprocessorName &name, const std::string &vector_name, bool needs_broadcast) const
 
const ScatterVectorPostprocessorValue & getScatterVectorPostprocessorValue (const std::string &param_name, const std::string &vector_name) const
 
const ScatterVectorPostprocessorValue & getScatterVectorPostprocessorValueByName (const VectorPostprocessorName &name, const std::string &vector_name) const
 
const ScatterVectorPostprocessorValue & getScatterVectorPostprocessorValueOld (const std::string &param_name, const std::string &vector_name) const
 
const ScatterVectorPostprocessorValue & getScatterVectorPostprocessorValueOldByName (const VectorPostprocessorName &name, const std::string &vector_name) const
 
bool hasVectorPostprocessor (const std::string &param_name, const std::string &vector_name) const
 
bool hasVectorPostprocessor (const std::string &param_name) const
 
bool hasVectorPostprocessorByName (const VectorPostprocessorName &name, const std::string &vector_name) const
 
bool hasVectorPostprocessorByName (const VectorPostprocessorName &name) const
 
const VectorPostprocessorName & getVectorPostprocessorName (const std::string &param_name) const
 
void setRandomResetFrequency (ExecFlagType exec_flag)
 
unsigned long getRandomLong () const
 
Real getRandomReal () const
 
unsigned int getSeed (std::size_t id)
 
unsigned int getMasterSeed () const
 
bool isNodal () const
 
ExecFlagType getResetOnTime () const
 
void setRandomDataPointer (RandomData *random_data)
 
virtual void meshChanged ()
 
void useVectorTag (const TagName &tag_name, VectorTagsKey)
 
void useVectorTag (TagID tag_id, VectorTagsKey)
 
void useMatrixTag (const TagName &tag_name, MatrixTagsKey)
 
void useMatrixTag (TagID tag_id, MatrixTagsKey)
 
bool isVectorTagged ()
 
bool isMatrixTagged ()
 
bool hasVectorTags () const
 
const std::set< TagID > & getVectorTags (VectorTagsKey) const
 
const std::set< TagID > & getMatrixTags (MatrixTagsKey) const
 
const std::vector< MooseVariableScalar * > & getCoupledMooseScalarVars ()
 
const std::set< TagID > & getScalarVariableCoupleableVectorTags () const
 
const std::set< TagID > & getScalarVariableCoupleableMatrixTags () const
 
const Moose::Functor< Real > * defaultFunctor (const std::string &name)
 
const Moose::Functor< ADReal > * defaultFunctor (const std::string &name)
 
bool hasUserObject (const std::string &param_name) const
 
bool hasUserObject (const std::string &param_name) const
 
bool hasUserObject (const std::string &param_name) const
 
bool hasUserObject (const std::string &param_name) const
 
bool hasUserObjectByName (const UserObjectName &object_name) const
 
bool hasUserObjectByName (const UserObjectName &object_name) const
 
bool hasUserObjectByName (const UserObjectName &object_name) const
 
bool hasUserObjectByName (const UserObjectName &object_name) const
 
const PostprocessorValue & getPostprocessorValue (const std::string &param_name, const unsigned int index=0) const
 
const PostprocessorValue & getPostprocessorValue (const std::string &param_name, const unsigned int index=0) const
 
const PostprocessorValue & getPostprocessorValueOld (const std::string &param_name, const unsigned int index=0) const
 
const PostprocessorValue & getPostprocessorValueOld (const std::string &param_name, const unsigned int index=0) const
 
const PostprocessorValue & getPostprocessorValueOlder (const std::string &param_name, const unsigned int index=0) const
 
const PostprocessorValue & getPostprocessorValueOlder (const std::string &param_name, const unsigned int index=0) const
 
virtual const PostprocessorValue & getPostprocessorValueByName (const PostprocessorName &name) const
 
virtual const PostprocessorValue & getPostprocessorValueByName (const PostprocessorName &name) const
 
const PostprocessorValue & getPostprocessorValueOldByName (const PostprocessorName &name) const
 
const PostprocessorValue & getPostprocessorValueOldByName (const PostprocessorName &name) const
 
const PostprocessorValue & getPostprocessorValueOlderByName (const PostprocessorName &name) const
 
const PostprocessorValue & getPostprocessorValueOlderByName (const PostprocessorName &name) const
 
bool isVectorPostprocessorDistributed (const std::string &param_name) const
 
bool isVectorPostprocessorDistributed (const std::string &param_name) const
 
bool isVectorPostprocessorDistributedByName (const VectorPostprocessorName &name) const
 
bool isVectorPostprocessorDistributedByName (const VectorPostprocessorName &name) const
 
const Parallel::Communicator & comm () const
 
processor_id_type n_processors () const
 
processor_id_type processor_id () const
 

Static Public Member Functions

static InputParameters validParams ()
 
static void callMooseError (MooseApp *const app, const InputParameters &params, std::string msg, const bool with_prefix, const hit::Node *node, const bool show_trace=true)
 
static std::string deduceFunctorName (const std::string &name, const InputParameters &params)
 

Public Attributes

 usingCombinedWarningSolutionWarnings
 
const ConsoleStream _console
 

Static Public Attributes

static const std::string type_param
 
static const std::string name_param
 
static const std::string unique_name_param
 
static const std::string app_param
 
static const std::string moose_base_param
 
static const std::string kokkos_object_param
 

Protected Member Functions

virtual ADReal otherNodeTemperature () const override
 Temperature of the wall node on the other side of this layer's radial conduction path.
 
virtual ADReal convectiveLinearHeatRate () const override
 Heat flux exchanged with the fluid or ambient environment on this node's interface to the fluid/environment.
 
virtual Real convectiveJacobian () const override
 Derivative of convectiveLinearHeatRate() with respect to this node's own temperature.
 
virtual ADReal computeQpResidual () override
 
virtual Real computeQpJacobian () override
 
std::string deduceFunctorName (const std::string &name) const
 
virtual void precalculateResidual ()
 
virtual void precalculateJacobian ()
 
virtual void precalculateOffDiagJacobian (unsigned int)
 
const MooseVariableFieldBase & getVariable (unsigned int jvar_num) const
 
void flagInvalidSolutionInternal (const InvalidSolutionID invalid_solution_id) const
 
InvalidSolutionID registerInvalidSolutionInternal (const std::string &message, const bool warning) const
 
virtual void addUserObjectDependencyHelper (const UserObjectBase &) const
 
virtual void addPostprocessorDependencyHelper (const PostprocessorName &) const
 
virtual void addVectorPostprocessorDependencyHelper (const VectorPostprocessorName &) const
 
T & declareRestartableData (const std::string &data_name, Args &&... args)
 
ManagedValue< T > declareManagedRestartableDataWithContext (const std::string &data_name, void *context, Args &&... args)
 
const T & getRestartableData (const std::string &data_name) const
 
T & declareRestartableDataWithContext (const std::string &data_name, void *context, Args &&... args)
 
T & declareRecoverableData (const std::string &data_name, Args &&... args)
 
T & declareRestartableDataWithObjectName (const std::string &data_name, const std::string &object_name, Args &&... args)
 
T & declareRestartableDataWithObjectNameWithContext (const std::string &data_name, const std::string &object_name, void *context, Args &&... args)
 
std::string restartableName (const std::string &data_name) const
 
void prepareVectorTag (Assembly &assembly, unsigned int ivar)
 
void prepareVectorTag (Assembly &assembly, unsigned int ivar, ResidualTagType tag_type)
 
void prepareVectorTag (Assembly &assembly, unsigned int ivar, ResidualTagType tag_type)
 
void prepareVectorTag (Assembly &assembly, unsigned int ivar, ResidualTagType tag_type)
 
void prepareVectorTag (Assembly &assembly, unsigned int ivar, ResidualTagType tag_type)
 
void prepareVectorTagNeighbor (Assembly &assembly, unsigned int ivar)
 
void prepareVectorTagLower (Assembly &assembly, unsigned int ivar)
 
void prepareMatrixTag (Assembly &assembly, unsigned int ivar, unsigned int jvar)
 
void prepareMatrixTag (Assembly &assembly, unsigned int ivar, unsigned int jvar, DenseMatrix< Number > &k) const
 
void prepareMatrixTagNonlocal (Assembly &assembly, unsigned int ivar, unsigned int jvar)
 
void prepareMatrixTagNeighbor (Assembly &assembly, unsigned int ivar, unsigned int jvar, Moose::DGJacobianType type)
 
void prepareMatrixTagNeighbor (Assembly &assembly, unsigned int ivar, unsigned int jvar, Moose::DGJacobianType type, DenseMatrix< Number > &k) const
 
void prepareMatrixTagLower (Assembly &assembly, unsigned int ivar, unsigned int jvar, Moose::ConstraintJacobianType type)
 
void accumulateTaggedLocalResidual ()
 
void assignTaggedLocalResidual ()
 
void accumulateTaggedLocalMatrix ()
 
void accumulateTaggedLocalMatrix (Assembly &assembly, unsigned int ivar, unsigned int jvar, const DenseMatrix< Number > &k)
 
void accumulateTaggedLocalMatrix (Assembly &assembly, unsigned int ivar, unsigned int jvar, Moose::DGJacobianType type, const DenseMatrix< Number > &k)
 
void accumulateTaggedNonlocalMatrix ()
 
void assignTaggedLocalMatrix ()
 
void addResiduals (Assembly &assembly, const Residuals &residuals, const Indices &dof_indices, Real scaling_factor)
 
void addResiduals (Assembly &assembly, const Residuals &residuals, const Indices &dof_indices, const std::vector< Real > &scaling_factors)
 
void addResiduals (Assembly &assembly, const DenseVector< T > &residuals, const Indices &dof_indices, Real scaling_factor)
 
void addResiduals (Assembly &assembly, const ADResidualsPacket &packet)
 
void addResidualsAndJacobian (Assembly &assembly, const Residuals &residuals, const Indices &dof_indices, Real scaling_factor)
 
void addResidualsAndJacobian (Assembly &assembly, const ADResidualsPacket &packet)
 
void addJacobian (Assembly &assembly, const Residuals &residuals, const Indices &dof_indices, Real scaling_factor)
 
void addJacobian (Assembly &assembly, const Residuals &residuals, const Indices &dof_indices, const std::vector< Real > &scaling_factors)
 
void addJacobian (Assembly &assembly, const ADResidualsPacket &packet)
 
void addJacobian (Assembly &assembly, const DenseMatrix< Real > &local_k, const std::vector< dof_id_type > &row_indices, const std::vector< dof_id_type > &column_indices, Real scaling_factor)
 
void addResidualsWithoutConstraints (Assembly &assembly, const Residuals &residuals, const Indices &dof_indices, Real scaling_factor)
 
void addResidualsAndJacobianWithoutConstraints (Assembly &assembly, const Residuals &residuals, const Indices &dof_indices, Real scaling_factor)
 
void addJacobianWithoutConstraints (Assembly &assembly, const Residuals &residuals, const Indices &dof_indices, Real scaling_factor)
 
void addJacobianElement (Assembly &assembly, Real value, dof_id_type row_index, dof_id_type column_index, Real scaling_factor)
 
void setResidual (SystemBase &sys, const T &residual, MooseVariableFE< T > &var)
 
void setResidual (SystemBase &sys, Real residual, dof_id_type dof_index)
 
void setResidual (SystemBase &sys, SetResidualFunctor set_residual_functor)
 
bool isCoupledScalar (const std::string &var_name, unsigned int i=0) const
 
unsigned int coupledScalarComponents (const std::string &var_name) const
 
unsigned int coupledScalar (const std::string &var_name, unsigned int comp=0) const
 
libMesh::Order coupledScalarOrder (const std::string &var_name, unsigned int comp=0) const
 
const VariableValue & coupledScalarValue (const std::string &var_name, unsigned int comp=0) const
 
const ADVariableValue & adCoupledScalarValue (const std::string &var_name, unsigned int comp=0) const
 
const GenericVariableValue< is_ad > & coupledGenericScalarValue (const std::string &var_name, unsigned int comp=0) const
 
const GenericVariableValue< false > & coupledGenericScalarValue (const std::string &var_name, const unsigned int comp) const
 
const GenericVariableValue< true > & coupledGenericScalarValue (const std::string &var_name, const unsigned int comp) const
 
const VariableValue & coupledVectorTagScalarValue (const std::string &var_name, const std::string &tag_param_name, unsigned int comp=0) const
 
const VariableValue & coupledMatrixTagScalarValue (const std::string &var_name, const std::string &tag_param_name, unsigned int comp=0) const
 
const VariableValue & coupledScalarValueOld (const std::string &var_name, unsigned int comp=0) const
 
const VariableValue & coupledScalarValueOlder (const std::string &var_name, unsigned int comp=0) const
 
const VariableValue & coupledScalarDot (const std::string &var_name, unsigned int comp=0) const
 
const ADVariableValue & adCoupledScalarDot (const std::string &var_name, unsigned int comp=0) const
 
const VariableValue & coupledScalarDotDot (const std::string &var_name, unsigned int comp=0) const
 
const VariableValue & coupledScalarDotOld (const std::string &var_name, unsigned int comp=0) const
 
const VariableValue & coupledScalarDotDotOld (const std::string &var_name, unsigned int comp=0) const
 
const VariableValue & coupledScalarDotDu (const std::string &var_name, unsigned int comp=0) const
 
const VariableValue & coupledScalarDotDotDu (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableValue kokkosCoupledVectorTagScalarValueByName (const std::string &var_name, const std::string &tag_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableValue kokkosCoupledVectorTagScalarValue (const std::string &var_name, const std::string &tag_param_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableValue kokkosCoupledScalarValue (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableValue kokkosCoupledScalarValueOld (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableValue kokkosCoupledScalarValueOlder (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableValue kokkosCoupledScalarDot (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::Scalar< const Real > kokkosCoupledScalarDotDu (const std::string &var_name, unsigned int comp=0) const
 
const MooseVariableScalar * getScalarVar (const std::string &var_name, unsigned int comp) const
 
const Moose::Functor< T > & getFunctor (const std::string &name)
 
const Moose::Functor< T > & getFunctor (const std::string &name, THREAD_ID tid)
 
const Moose::Functor< T > & getFunctor (const std::string &name, SubProblem &subproblem)
 
const Moose::Functor< T > & getFunctor (const std::string &name, SubProblem &subproblem, THREAD_ID tid)
 
bool isFunctor (const std::string &name) const
 
bool isFunctor (const std::string &name, const SubProblem &subproblem) const
 
Moose::ElemArg makeElemArg (const Elem *elem, bool correct_skewnewss=false) const
 
void checkFunctorSupportsSideIntegration (const std::string &name, bool qp_integration)
 
const Moose::Functor< T > & getFunctorByName (const std::string &name)
 

Protected Attributes

const ADVariableValue & _m
 Coupled mass flow rate through the pipe.
 
const ADVariableValue & _Tout
 Coupled temperature of the outer-surface wall node.
 
const ADVariableValue & _Tf
 Coupled fluid temperature adjacent to this wall node.
 
const ADVariableValue & _Tfup
 Coupled fluid temperature adjacent to the upstream wall node.
 
const ADVariableValue & _Tfdown
 Coupled fluid temperature adjacent to the downstream wall node.
 
const Moose::Functor< ADReal > & _wetted_perimeter
 Wetted perimeter of the fluid flow channel adjacent to this wall node.
 
const Moose::Functor< ADReal > & _h
 Heat transfer coefficient from functor material.
 
const ThermalSolidProperties & _sp
 Solid properties object for the pipe wall.
 
const ADVariableValue & _Tup
 Coupled wall temperature of the upstream node (same radial layer)
 
const ADVariableValue & _Tdown
 Coupled wall temperature of the downstream node (same radial layer)
 
const bool _is_implicit
 Property state integration flag.
 
const Moose::Functor< ADReal > & _area
 Cross-sectional area of this wall layer.
 
const Moose::Functor< ADReal > & _interface_perimeter
 Perimeter of the interface between the inner and outer wall nodes.
 
const Moose::Functor< ADReal > & _wall_thickness
 Radial conduction-path distance between the inner and outer wall nodes.
 
const Moose::Functor< ADReal > & _length
 Axial length of this node's control volume.
 
const Moose::Functor< ADReal > & _upstream_spacing
 Axial distance from this node to the upstream node.
 
const Moose::Functor< ADReal > & _downstream_spacing
 Axial distance from this node to the downstream node.
 
const Moose::Functor< ADReal > & _upstream_area
 Cross-sectional area of the upstream node's wall layer.
 
const Moose::Functor< ADReal > & _downstream_area
 Cross-sectional area of the downstream node's wall layer.
 
const ADVariableValue & _u
 
std::vector< ADReal > _residuals
 
MooseVariableScalar & _var
 
unsigned int _i
 
unsigned int _j
 
SubProblem & _subproblem
 
FEProblemBase & _fe_problem
 
SystemBase & _sys
 
THREAD_ID _tid
 
Assembly & _assembly
 
MooseMesh & _mesh
 
const bool & _enabled
 
MooseApp & _app
 
Factory & _factory
 
ActionFactory & _action_factory
 
const std::string & _type
 
const std::string & _name
 
const InputParameters & _pars
 
const ExecFlagEnum & _execute_enum
 
const ExecFlagType & _current_execute_flag
 
const InputParameters & _ti_params
 
FEProblemBase & _ti_feproblem
 
Real & _t
 
const Real & _t_old
 
int & _t_step
 
Real & _dt
 
Real & _dt_old
 
bool _is_transient
 
MooseApp & _restartable_app
 
const std::string _restartable_system_name
 
const THREAD_ID _restartable_tid
 
const bool _restartable_read_only
 
FEProblemBase & _mci_feproblem
 
DenseVector< Number > _local_re
 
DenseMatrix< Number > _local_ke
 
DenseMatrix< Number > _nonlocal_ke
 
FEProblemBase & _sc_fe_problem
 
const THREAD_ID _sc_tid
 
const Real & _real_zero
 
const VariableValue & _scalar_zero
 
const Point & _point_zero
 
const Parallel::Communicator & _communicator
 

Private Types

using Base = ADPipeWallTemperatureScalarKernelBase
 

Private Member Functions

const Moose::Functor< T > * defaultFunctor (const std::string &name)
 
const Moose::Functor< Real > * defaultFunctor (const std::string &name)
 
const Moose::Functor< ADReal > * defaultFunctor (const std::string &name)
 
const Moose::Functor< T > & getFunctorByName (const std::string &name, SubProblem &subproblem, THREAD_ID tid)
 
void computeADJacobian ()
 
bool suppressInfo () const
 
const Moose::FunctionBase * getKokkosFunctionByNameHelper (const FunctionName &name) const
 
const UserObjectBase & getUserObjectFromFEProblem (const UserObjectName &object_name, const THREAD_ID tid=0) const
 
const T & castUserObject (const UserObjectBase &uo_base, const std::string &param_name="") const
 
void mooseObjectError (const std::string &param_name, std::stringstream &oss) const
 
const std::string & userObjectType (const UserObjectBase &uo) const
 
const std::string & userObjectName (const UserObjectBase &uo) const
 
const PostprocessorName & getPostprocessorNameInternal (const std::string &param_name, const unsigned int index, const bool allow_default_value=true) const
 
bool isDefaultPostprocessorValueByName (const PostprocessorName &name) const
 
PostprocessorValue getDefaultPostprocessorValueByName (const PostprocessorName &name) const
 
void checkParam (const std::string &param_name, const unsigned int index=std::numeric_limits< unsigned int >::max()) const
 
bool postprocessorsAdded () const
 
const VectorPostprocessorValue & getVectorPostprocessorByNameHelper (const VectorPostprocessorName &name, const std::string &vector_name, bool broadcast, std::size_t t_index) const
 
const VectorPostprocessorContext< VectorPostprocessorValue > & getVectorPostprocessorContextByNameHelper (const VectorPostprocessorName &name, const std::string &vector_name) const
 
bool vectorPostprocessorsAdded () const
 
RestartableDataValue & registerRestartableDataOnApp (std::unique_ptr< RestartableDataValue > data, THREAD_ID tid) const
 
void registerRestartableNameWithFilterOnApp (const std::string &name, Moose::RESTARTABLE_FILTER filter)
 
RestartableData< T > & declareRestartableDataHelper (const std::string &data_name, void *context, Args &&... args) const
 
void prepareVectorTagInternal (Assembly &assembly, unsigned int ivar, const std::set< TagID > &vector_tags, const std::set< TagID > &absolute_value_vector_tags)
 
void checkForNans () const
 
const VariableValue * getDefaultValue (const std::string &var_name) const
 
const ADVariableValue * getADDefaultValue (const std::string &var_name) const
 
void checkVar (const std::string &var_name) const
 
void validateExecutionerType (const std::string &name, const std::string &fn_name) const
 
Moose::Kokkos::Variable kokkosCoupledVectorTagScalarVariable (const std::string &var_name, const std::string &tag_name, unsigned int comp) const
 
virtual bool isADObject () const override
 
const PostprocessorValue & getPostprocessorValueInternal (const std::string &param_name, unsigned int index, std::size_t t_index) const
 
const PostprocessorValue & getPostprocessorValueInternal (const std::string &param_name, unsigned int index, std::size_t t_index) const
 
const PostprocessorValue & getPostprocessorValueByNameInternal (const PostprocessorName &name, std::size_t t_index) const
 
const PostprocessorValue & getPostprocessorValueByNameInternal (const PostprocessorName &name, std::size_t t_index) const
 
void possiblyCheckHasVectorPostprocessor (const std::string &param_name, const std::string &vector_name) const
 
void possiblyCheckHasVectorPostprocessor (const std::string &param_name, const std::string &vector_name) const
 
void possiblyCheckHasVectorPostprocessorByName (const VectorPostprocessorName &name, const std::string &vector_name) const
 
void possiblyCheckHasVectorPostprocessorByName (const VectorPostprocessorName &name, const std::string &vector_name) const
 

Static Private Member Functions

static const hit::Node * getHitNode (const InputParameters &params)
 
static std::string messagePrefix (const InputParameters &params, const bool hit_prefix)
 

Private Attributes

bool _jacobian_already_computed
 
const ParallelParamObject & _parent
 
const MooseBase & _si_moose_base
 
const FEProblemBase * _si_problem
 
ExecFlagEnum _empty_execute_enum
 
const MooseObject & _fni_object
 
const InputParameters & _fni_params
 
FEProblemBase & _fni_feproblem
 
const THREAD_ID _fni_tid
 
const MooseObject & _uoi_moose_object
 
const FEProblemBase & _uoi_feproblem
 
const THREAD_ID _uoi_tid
 
const std::string _ti_name
 
const MooseObject & _ppi_moose_object
 
const InputParameters & _ppi_params
 
const FEProblemBase & _ppi_feproblem
 
std::map< PostprocessorName, std::unique_ptr< PostprocessorValue > > _default_values
 
const bool _broadcast_by_default
 
const MooseObject & _vpi_moose_object
 
const FEProblemBase & _vpi_feproblem
 
const THREAD_ID _vpi_tid
 
RandomData * _random_data
 
MooseRandom * _generator
 
FEProblemBase & _ri_problem
 
const std::string _ri_name
 
unsigned int _master_seed
 
bool _is_nodal
 
ExecFlagType _reset_on
 
const Node *const & _curr_node
 
const Elem *const & _curr_element
 
const RestartableDataMapName _metaname
 
std::string _restartable_name
 
std::set< TagID > _vector_tags
 
std::set< TagID > _abs_vector_tags
 
std::set< TagID > _matrix_tags
 
std::set< TagID > _non_ref_vector_tags
 
std::set< TagID > _non_ref_abs_vector_tags
 
std::set< TagID > _ref_vector_tags
 
std::set< TagID > _ref_abs_vector_tags
 
const MooseObject & _moose_object
 
const InputParameters & _tag_params
 
std::vector< DenseVector< Number > * > _re_blocks
 
std::vector< DenseVector< Number > * > _absre_blocks
 
std::vector< DenseMatrix< Number > * > _ke_blocks
 
std::vector< Real > _absolute_residuals
 
const InputParameters & _sc_parameters
 
const std::string & _sc_name
 
const bool _sc_is_implicit
 
std::unordered_map< std::string, std::vector< MooseVariableScalar * > > _coupled_scalar_vars
 
std::unordered_map< std::string, std::unique_ptr< VariableValue > > _default_value
 
std::unordered_map< std::string, std::unique_ptr< ADVariableValue > > _dual_default_value
 
std::vector< MooseVariableScalar * > _coupled_moose_scalar_vars
 
std::unordered_map< std::string, std::vector< MooseVariableFieldBase * > > _sc_coupled_vars
 
std::set< TagID > _sc_coupleable_vector_tags
 
std::set< TagID > _sc_coupleable_matrix_tags
 
const InputParameters & _fi_params
 
const std::string _fi_name
 
SubProblem *const _fi_subproblem
 
const THREAD_ID _fi_tid
 
std::vector< std::unique_ptr< Moose::Functor< Real > > > _default_real_functors
 
std::vector< std::unique_ptr< Moose::Functor< ADReal > > > _default_ad_real_functors
 

Detailed Description

Inner wall path-integrated incompressible conjugate heat transfer kernel.

Definition at line 17 of file ADPipeInnerWallTemperatureScalarKernel.h.

Member Typedef Documentation

◆ Base

Definition at line 19 of file ADPipeInnerWallTemperatureScalarKernel.h.

Constructor & Destructor Documentation

◆ ADPipeInnerWallTemperatureScalarKernel()

ADPipeInnerWallTemperatureScalarKernel::ADPipeInnerWallTemperatureScalarKernel ( const InputParameters &  parameters)

Definition at line 56 of file ADPipeInnerWallTemperatureScalarKernel.C.

60 _Tout(ScalarCoupleable::adCoupledScalarValue("outer_wall_temperature")),
61 _Tf(ScalarCoupleable::adCoupledScalarValue("fluid_temperature")),
62 _Tfup(ScalarCoupleable::adCoupledScalarValue("upstream_fluid_temperature")),
63 _Tfdown(ScalarCoupleable::adCoupledScalarValue("downstream_fluid_temperature")),
64 _wetted_perimeter(this->template getFunctor<ADReal>("wetted_perimeter")),
65 _h(this->template getFunctor<ADReal>("heat_transfer_coefficient"))
66{
67}
const ADVariableValue & _Tfdown
Coupled fluid temperature adjacent to the downstream wall node.
const Moose::Functor< ADReal > & _h
Heat transfer coefficient from functor material.
const ADVariableValue & _Tfup
Coupled fluid temperature adjacent to the upstream wall node.
const ADVariableValue & _m
Coupled mass flow rate through the pipe.
const Moose::Functor< ADReal > & _wetted_perimeter
Wetted perimeter of the fluid flow channel adjacent to this wall node.
const ADVariableValue & _Tout
Coupled temperature of the outer-surface wall node.
const ADVariableValue & _Tf
Coupled fluid temperature adjacent to this wall node.
const InputParameters & parameters() const
const ADVariableValue & adCoupledScalarValue(const std::string &var_name, unsigned int comp=0) const

Member Function Documentation

◆ computeQpJacobian()

Real ADPipeWallTemperatureScalarKernelBase::computeQpJacobian ( )
overrideprotectedvirtualinherited

Reimplemented from ADScalarKernel.

Definition at line 117 of file ADPipeWallTemperatureScalarKernelBase.C.

118{
119 mooseError("computeQpJacobian() should not be called in AD mode");
120 return 0;
121}
void mooseError(Args &&... args) const

◆ computeQpResidual()

ADReal ADPipeWallTemperatureScalarKernelBase::computeQpResidual ( )
overrideprotectedvirtualinherited

Implements ADScalarKernel.

Definition at line 80 of file ADPipeWallTemperatureScalarKernelBase.C.

81{
82 const Moose::PointArg arg = {Point(1, 2, 3)};
83 const int i = 0;
84 const auto state = _is_implicit ? Moose::currentState() : Moose::oldState();
85
86 const auto A = _area(arg, state);
87 const auto k = _sp.k_from_T(Base::_u[i]);
88 const auto cp = _sp.cp_from_T(Base::_u[i]);
89 const auto rho = _sp.rho_from_T(Base::_u[i]);
90
91 // Neighbor wall-layer cross-sectional areas and conductivities, used below to build a
92 // harmonic-mean face conductance for axial conduction between control volumes whose
93 // cross-section may differ (two half-length resistances in series)
94 const auto A_up = _upstream_area(arg, state);
95 const auto k_up = _sp.k_from_T(_Tup[i]);
96 const auto A_down = _downstream_area(arg, state);
97 const auto k_down = _sp.k_from_T(_Tdown[i]);
98
99 const auto G_up = 1.0 / (_upstream_spacing(arg, state) / (2.0 * k * A) +
100 _upstream_spacing(arg, state) / (2.0 * k_up * A_up));
101 const auto G_down = 1.0 / (_downstream_spacing(arg, state) / (2.0 * k * A) +
102 _downstream_spacing(arg, state) / (2.0 * k_down * A_down));
103
104 // Radial conduction from the node on the other side of this layer
105 const auto q_radial = k * _interface_perimeter(arg, state) *
106 (otherNodeTemperature() - Base::_u[i]) / _wall_thickness(arg, state);
107 // Axial conduction from the upstream/downstream nodes of this layer
108 const auto q_axial =
109 (G_up * (_Tup[i] - Base::_u[i]) + G_down * (_Tdown[i] - Base::_u[i])) / _length(arg, state);
110 // Heat exchanged with the fluid or ambient environment on this node's non-radial side
111 const auto q_convective = convectiveLinearHeatRate();
112
113 return -(q_radial + q_axial + q_convective) / (rho * cp * A);
114}
const double rho
const ADVariableValue & _Tdown
Coupled wall temperature of the downstream node (same radial layer)
virtual ADReal otherNodeTemperature() const =0
Temperature of the wall node on the other side of this layer's radial conduction path.
const Moose::Functor< ADReal > & _length
Axial length of this node's control volume.
virtual ADReal convectiveLinearHeatRate() const =0
Heat flux exchanged with the fluid or ambient environment on this node's interface to the fluid/envir...
const ThermalSolidProperties & _sp
Solid properties object for the pipe wall.
const Moose::Functor< ADReal > & _upstream_area
Cross-sectional area of the upstream node's wall layer.
const Moose::Functor< ADReal > & _downstream_spacing
Axial distance from this node to the downstream node.
const Moose::Functor< ADReal > & _interface_perimeter
Perimeter of the interface between the inner and outer wall nodes.
const Moose::Functor< ADReal > & _wall_thickness
Radial conduction-path distance between the inner and outer wall nodes.
const Moose::Functor< ADReal > & _downstream_area
Cross-sectional area of the downstream node's wall layer.
const bool _is_implicit
Property state integration flag.
const ADVariableValue & _Tup
Coupled wall temperature of the upstream node (same radial layer)
const Moose::Functor< ADReal > & _area
Cross-sectional area of this wall layer.
const Moose::Functor< ADReal > & _upstream_spacing
Axial distance from this node to the upstream node.
const ADVariableValue & _u
StateArg oldState()
StateArg currentState()

◆ convectiveJacobian()

Real ADPipeInnerWallTemperatureScalarKernel::convectiveJacobian ( ) const
overrideprotectedvirtual

Derivative of convectiveLinearHeatRate() with respect to this node's own temperature.

Implements ADPipeWallTemperatureScalarKernelBase.

Definition at line 88 of file ADPipeInnerWallTemperatureScalarKernel.C.

89{
90 mooseError("convectiveJacobian() should not be called in AD mode");
91 return 0;
92}

◆ convectiveLinearHeatRate()

ADReal ADPipeInnerWallTemperatureScalarKernel::convectiveLinearHeatRate ( ) const
overrideprotectedvirtual

Heat flux exchanged with the fluid or ambient environment on this node's interface to the fluid/environment.

Implements ADPipeWallTemperatureScalarKernelBase.

Definition at line 70 of file ADPipeInnerWallTemperatureScalarKernel.C.

71{
72 const Moose::PointArg arg = {Point(1, 2, 3)};
73 const int i = 0;
74 const auto state = Base::_is_implicit ? Moose::currentState() : Moose::oldState();
75 // Upwind the segment inlet temperature on the flow direction
76 const auto Tin = 1.0 / 2.0 * (1 - _m[i] / sqrt(_m[i] * _m[i] + 1.0e-08)) * _Tfdown[i] +
77 1.0 / 2.0 * (1 + _m[i] / sqrt(_m[i] * _m[i] + 1.0e-08)) * _Tfup[i];
78
79 // Bulk fluid temperature seen by the wall: segment average or fluid node temperature
80 const bool node_bulk = getParam<bool>("use_fluid_node_temp");
81 const auto Tbulk = node_bulk ? ADReal(_Tf[i]) : ADReal((_Tf[i] + Tin) / 2.0);
82
83 // Convective heat transfer with the fluid
84 return _h(arg, state) * _wetted_perimeter(arg, state) * (Tbulk - Base::_u[i]);
85}
DualNumber< Real, DNDerivativeType, true > ADReal
CTSub CT_OPERATOR_BINARY CTMul CTCompareLess CTCompareGreater CTCompareEqual _arg template * sqrt(_arg)) *_arg.template D< dtag >()) CT_SIMPLE_UNARY_FUNCTION(tanh

◆ otherNodeTemperature()

virtual ADReal ADPipeInnerWallTemperatureScalarKernel::otherNodeTemperature ( ) const
inlineoverrideprotectedvirtual

Temperature of the wall node on the other side of this layer's radial conduction path.

Implements ADPipeWallTemperatureScalarKernelBase.

Definition at line 26 of file ADPipeInnerWallTemperatureScalarKernel.h.

26{ return _Tout[0]; }

◆ validParams()

InputParameters ADPipeInnerWallTemperatureScalarKernel::validParams ( )
static

Definition at line 17 of file ADPipeInnerWallTemperatureScalarKernel.C.

18{
20 params.addClassDescription("Assembles transport equation for the temperature of the "
21 "inner-surface radial node of a pipe wall.");
22 params.addCoupledVar("mass_flow_rate",
23 {},
24 "Mass flow rate in component. Takes a "
25 "scalar variable name");
26 params.addCoupledVar("outer_wall_temperature",
27 {},
28 "Temperature of the outer-surface wall node, on the other side of this "
29 "layer's radial conduction path. Takes a scalar variable name");
30 params.addCoupledVar("fluid_temperature",
31 {},
32 "Fluid temperature adjacent to this wall node. Takes a scalar variable "
33 "name");
34 params.addCoupledVar(
35 "upstream_fluid_temperature",
36 {},
37 "Fluid temperature adjacent to the upstream wall node. Takes a scalar variable "
38 "name");
39 params.addCoupledVar(
40 "downstream_fluid_temperature",
41 {},
42 "Fluid temperature adjacent to the downstream wall node. Takes a scalar variable "
43 "name");
44 params.addRequiredParam<MooseFunctorName>(
45 "wetted_perimeter", "Wetted perimeter of the fluid flow channel adjacent to this node [m]");
46 params.addRequiredParam<MooseFunctorName>("heat_transfer_coefficient",
47 "Heat transfer coefficient of the fluid [W/(m^2-K)]");
48 params.addParam<bool>(
49 "use_fluid_node_temp",
50 true,
51 "Whether to use fluid node temperature for wall heat transfer or a segment-averaged value.");
52
53 return params;
54}
void addRequiredParam(const std::string &name, const std::string &doc_string)
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
void addCoupledVar(const std::string &name, const std::string &doc_string)

Member Data Documentation

◆ _area

const Moose::Functor<ADReal>& ADPipeWallTemperatureScalarKernelBase::_area
protectedinherited

Cross-sectional area of this wall layer.

Definition at line 47 of file ADPipeWallTemperatureScalarKernelBase.h.

Referenced by ADPipeWallTemperatureScalarKernelBase::computeQpResidual().

◆ _downstream_area

const Moose::Functor<ADReal>& ADPipeWallTemperatureScalarKernelBase::_downstream_area
protectedinherited

Cross-sectional area of the downstream node's wall layer.

Definition at line 61 of file ADPipeWallTemperatureScalarKernelBase.h.

Referenced by ADPipeWallTemperatureScalarKernelBase::computeQpResidual().

◆ _downstream_spacing

const Moose::Functor<ADReal>& ADPipeWallTemperatureScalarKernelBase::_downstream_spacing
protectedinherited

Axial distance from this node to the downstream node.

Definition at line 57 of file ADPipeWallTemperatureScalarKernelBase.h.

Referenced by ADPipeWallTemperatureScalarKernelBase::computeQpResidual().

◆ _h

const Moose::Functor<ADReal>& ADPipeInnerWallTemperatureScalarKernel::_h
protected

Heat transfer coefficient from functor material.

Definition at line 43 of file ADPipeInnerWallTemperatureScalarKernel.h.

Referenced by convectiveLinearHeatRate().

◆ _interface_perimeter

const Moose::Functor<ADReal>& ADPipeWallTemperatureScalarKernelBase::_interface_perimeter
protectedinherited

Perimeter of the interface between the inner and outer wall nodes.

Definition at line 49 of file ADPipeWallTemperatureScalarKernelBase.h.

Referenced by ADPipeWallTemperatureScalarKernelBase::computeQpResidual().

◆ _is_implicit

const bool ADPipeWallTemperatureScalarKernelBase::_is_implicit
protectedinherited

◆ _length

const Moose::Functor<ADReal>& ADPipeWallTemperatureScalarKernelBase::_length
protectedinherited

Axial length of this node's control volume.

Definition at line 53 of file ADPipeWallTemperatureScalarKernelBase.h.

Referenced by ADPipeWallTemperatureScalarKernelBase::computeQpResidual().

◆ _m

const ADVariableValue& ADPipeInnerWallTemperatureScalarKernel::_m
protected

Coupled mass flow rate through the pipe.

Definition at line 31 of file ADPipeInnerWallTemperatureScalarKernel.h.

Referenced by convectiveLinearHeatRate().

◆ _sp

const ThermalSolidProperties& ADPipeWallTemperatureScalarKernelBase::_sp
protectedinherited

Solid properties object for the pipe wall.

Definition at line 39 of file ADPipeWallTemperatureScalarKernelBase.h.

Referenced by ADPipeWallTemperatureScalarKernelBase::computeQpResidual().

◆ _Tdown

const ADVariableValue& ADPipeWallTemperatureScalarKernelBase::_Tdown
protectedinherited

Coupled wall temperature of the downstream node (same radial layer)

Definition at line 43 of file ADPipeWallTemperatureScalarKernelBase.h.

Referenced by ADPipeWallTemperatureScalarKernelBase::computeQpResidual().

◆ _Tf

const ADVariableValue& ADPipeInnerWallTemperatureScalarKernel::_Tf
protected

Coupled fluid temperature adjacent to this wall node.

Definition at line 35 of file ADPipeInnerWallTemperatureScalarKernel.h.

Referenced by convectiveLinearHeatRate().

◆ _Tfdown

const ADVariableValue& ADPipeInnerWallTemperatureScalarKernel::_Tfdown
protected

Coupled fluid temperature adjacent to the downstream wall node.

Definition at line 39 of file ADPipeInnerWallTemperatureScalarKernel.h.

Referenced by convectiveLinearHeatRate().

◆ _Tfup

const ADVariableValue& ADPipeInnerWallTemperatureScalarKernel::_Tfup
protected

Coupled fluid temperature adjacent to the upstream wall node.

Definition at line 37 of file ADPipeInnerWallTemperatureScalarKernel.h.

Referenced by convectiveLinearHeatRate().

◆ _Tout

const ADVariableValue& ADPipeInnerWallTemperatureScalarKernel::_Tout
protected

Coupled temperature of the outer-surface wall node.

Definition at line 33 of file ADPipeInnerWallTemperatureScalarKernel.h.

Referenced by otherNodeTemperature().

◆ _Tup

const ADVariableValue& ADPipeWallTemperatureScalarKernelBase::_Tup
protectedinherited

Coupled wall temperature of the upstream node (same radial layer)

Definition at line 41 of file ADPipeWallTemperatureScalarKernelBase.h.

Referenced by ADPipeWallTemperatureScalarKernelBase::computeQpResidual().

◆ _upstream_area

const Moose::Functor<ADReal>& ADPipeWallTemperatureScalarKernelBase::_upstream_area
protectedinherited

Cross-sectional area of the upstream node's wall layer.

Definition at line 59 of file ADPipeWallTemperatureScalarKernelBase.h.

Referenced by ADPipeWallTemperatureScalarKernelBase::computeQpResidual().

◆ _upstream_spacing

const Moose::Functor<ADReal>& ADPipeWallTemperatureScalarKernelBase::_upstream_spacing
protectedinherited

Axial distance from this node to the upstream node.

Definition at line 55 of file ADPipeWallTemperatureScalarKernelBase.h.

Referenced by ADPipeWallTemperatureScalarKernelBase::computeQpResidual().

◆ _wall_thickness

const Moose::Functor<ADReal>& ADPipeWallTemperatureScalarKernelBase::_wall_thickness
protectedinherited

Radial conduction-path distance between the inner and outer wall nodes.

Definition at line 51 of file ADPipeWallTemperatureScalarKernelBase.h.

Referenced by ADPipeWallTemperatureScalarKernelBase::computeQpResidual().

◆ _wetted_perimeter

const Moose::Functor<ADReal>& ADPipeInnerWallTemperatureScalarKernel::_wetted_perimeter
protected

Wetted perimeter of the fluid flow channel adjacent to this wall node.

Definition at line 41 of file ADPipeInnerWallTemperatureScalarKernel.h.

Referenced by convectiveLinearHeatRate().


The documentation for this class was generated from the following files: