www.mooseframework.org
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ConvectiveHeatTransferSideIntegral Class Reference

Computes the total convective heat transfer across a boundary. More...

#include <ConvectiveHeatTransferSideIntegral.h>

Inheritance diagram for ConvectiveHeatTransferSideIntegral:
[legend]

Public Member Functions

 ConvectiveHeatTransferSideIntegral (const InputParameters &parameters)
 

Protected Member Functions

virtual Real computeQpIntegral () override
 

Protected Attributes

const VariableValue & _T_wall
 wall temperature variable More...
 
const VariableValue * _T_fluid
 fluid temperature variable More...
 
const MaterialProperty< Real > * _T_fluid_mat
 fluid temperature variable More...
 
const VariableValue * _hw
 the heat transfer coefficient variable More...
 
const MaterialProperty< Real > * _hw_mat
 the heat transfer coefficient material, either variable or matprop need to be provided More...
 

Detailed Description

Computes the total convective heat transfer across a boundary.

Definition at line 14 of file ConvectiveHeatTransferSideIntegral.h.

Constructor & Destructor Documentation

◆ ConvectiveHeatTransferSideIntegral()

ConvectiveHeatTransferSideIntegral::ConvectiveHeatTransferSideIntegral ( const InputParameters &  parameters)

Definition at line 21 of file ConvectiveHeatTransferSideIntegral.C.

23  : SideIntegralPostprocessor(parameters),
24  _T_wall(coupledValue("T_solid")),
25  _T_fluid(isCoupled("T_fluid_var") ? &coupledValue("T_fluid_var") : nullptr),
26  _T_fluid_mat(isParamValid("T_fluid") ? &getMaterialProperty<Real>("T_fluid") : nullptr),
27  _hw(isCoupled("htc_var") ? &coupledValue("htc_var") : nullptr),
28  _hw_mat(isParamValid("htc") ? &getMaterialProperty<Real>("htc") : nullptr)
29 {
30  if (isCoupled("htc_var") == isParamValid("htc"))
31  paramError("htc", "Either htc_var OR htc must be provided (exactly one, not both).");
32 
33  if (isCoupled("T_fluid_var") == isParamValid("T_fluid"))
34  paramError("T_fluid",
35  "Either ",
36  "T_fluid",
37  " OR ",
38  "T_fluid_var",
39  " must be provided (exactly one, not both).");
40 }

Member Function Documentation

◆ computeQpIntegral()

Real ConvectiveHeatTransferSideIntegral::computeQpIntegral ( )
overrideprotectedvirtual

Definition at line 43 of file ConvectiveHeatTransferSideIntegral.C.

44 {
45  Real hw;
46  if (_hw)
47  hw = (*_hw)[_qp];
48  else
49  hw = (*_hw_mat)[_qp];
50 
51  Real Tf;
52  if (_T_fluid)
53  Tf = (*_T_fluid)[_qp];
54  else
55  Tf = (*_T_fluid_mat)[_qp];
56 
57  return hw * (_T_wall[_qp] - Tf);
58 }

Member Data Documentation

◆ _hw

const VariableValue* ConvectiveHeatTransferSideIntegral::_hw
protected

the heat transfer coefficient variable

Definition at line 32 of file ConvectiveHeatTransferSideIntegral.h.

Referenced by computeQpIntegral().

◆ _hw_mat

const MaterialProperty<Real>* ConvectiveHeatTransferSideIntegral::_hw_mat
protected

the heat transfer coefficient material, either variable or matprop need to be provided

Definition at line 35 of file ConvectiveHeatTransferSideIntegral.h.

◆ _T_fluid

const VariableValue* ConvectiveHeatTransferSideIntegral::_T_fluid
protected

fluid temperature variable

Definition at line 26 of file ConvectiveHeatTransferSideIntegral.h.

Referenced by computeQpIntegral().

◆ _T_fluid_mat

const MaterialProperty<Real>* ConvectiveHeatTransferSideIntegral::_T_fluid_mat
protected

fluid temperature variable

Definition at line 29 of file ConvectiveHeatTransferSideIntegral.h.

◆ _T_wall

const VariableValue& ConvectiveHeatTransferSideIntegral::_T_wall
protected

wall temperature variable

Definition at line 23 of file ConvectiveHeatTransferSideIntegral.h.

Referenced by computeQpIntegral().


The documentation for this class was generated from the following files:
ConvectiveHeatTransferSideIntegral::_T_wall
const VariableValue & _T_wall
wall temperature variable
Definition: ConvectiveHeatTransferSideIntegral.h:23
ConvectiveHeatTransferSideIntegral::_hw
const VariableValue * _hw
the heat transfer coefficient variable
Definition: ConvectiveHeatTransferSideIntegral.h:32
ConvectiveHeatTransferSideIntegral::_hw_mat
const MaterialProperty< Real > * _hw_mat
the heat transfer coefficient material, either variable or matprop need to be provided
Definition: ConvectiveHeatTransferSideIntegral.h:35
ConvectiveHeatTransferSideIntegral::_T_fluid_mat
const MaterialProperty< Real > * _T_fluid_mat
fluid temperature variable
Definition: ConvectiveHeatTransferSideIntegral.h:29
ConvectiveHeatTransferSideIntegral::_T_fluid
const VariableValue * _T_fluid
fluid temperature variable
Definition: ConvectiveHeatTransferSideIntegral.h:26