https://mooseframework.inl.gov
WallTemperature1PhaseClosures.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 "FlowChannel1Phase.h"
12 #include "HeatTransfer1PhaseBase.h"
13 
14 registerMooseObject("ThermalHydraulicsApp", WallTemperature1PhaseClosures);
15 
18 {
20  params.addClassDescription("Adds wall temperature material for single-phase flow.");
21  return params;
22 }
23 
25  : Closures1PhaseBase(params)
26 {
27 }
28 
29 void
31 {
32 }
33 
34 void
36  const FlowChannelBase & /*flow_channel*/) const
37 {
38 }
39 
40 void
42 {
43  const FlowChannel1Phase & flow_channel_1phase =
44  dynamic_cast<const FlowChannel1Phase &>(flow_channel);
45 
46  const unsigned int n_ht_connections = flow_channel_1phase.getNumberOfHeatTransferConnections();
47  if ((n_ht_connections > 0) && (flow_channel.getTemperatureMode()))
48  {
49  for (unsigned int i = 0; i < n_ht_connections; i++)
50  addWallTemperatureFromAuxMaterial(flow_channel_1phase, i);
51 
52  if (flow_channel.getNumberOfHeatTransferConnections() > 1)
53  addAverageWallTemperatureMaterial(flow_channel_1phase);
54  }
55 }
56 
57 void
59  const HeatTransferBase & /*heat_transfer*/, const FlowChannelBase & /*flow_channel*/)
60 {
61 }
virtual void addMooseObjectsHeatTransfer(const HeatTransferBase &heat_transfer, const FlowChannelBase &flow_channel) override
Adds MOOSE objects associated with a heat transfer component.
unsigned int getNumberOfHeatTransferConnections() const
Gets the number of heat transfer connections.
static InputParameters validParams()
A base class for flow channels.
void addAverageWallTemperatureMaterial(const FlowChannel1Phase &flow_channel) const
Adds average wall temperature material.
WallTemperature1PhaseClosures(const InputParameters &params)
virtual void addMooseObjectsFlowChannel(const FlowChannelBase &flow_channel) override
Adds MOOSE objects associated with a flow channel component.
void addWallTemperatureFromAuxMaterial(const FlowChannelBase &flow_channel, unsigned int i=0) const
Adds a material for wall temperature from an aux variable.
Definition: ClosuresBase.C:64
Single-component, single-phase flow channel.
registerMooseObject("ThermalHydraulicsApp", WallTemperature1PhaseClosures)
Base class for heat transfer connections.
Adds wall temperature material for single-phase flow.
Base class for 1-phase closures.
void addClassDescription(const std::string &doc_string)
bool getTemperatureMode() const
Gets temperature mode flag.
virtual void checkFlowChannel(const FlowChannelBase &flow_channel) const override
Checks for errors associated with a flow channel component.
virtual void checkHeatTransfer(const HeatTransferBase &heat_transfer, const FlowChannelBase &flow_channel) const override
Checks for errors associated with a heat transfer component.