https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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"
13
15
18{
20 params.addClassDescription("Adds wall temperature material for single-phase flow.");
21 return params;
22}
23
28
29void
33
34void
36 const FlowChannelBase & /*flow_channel*/) const
37{
38}
39
40void
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
57void
59 const HeatTransferBase & /*heat_transfer*/, const FlowChannelBase & /*flow_channel*/)
60{
61}
registerMooseObject("ThermalHydraulicsApp", WallTemperature1PhaseClosures)
Base class for 1-phase closures.
static InputParameters validParams()
void addAverageWallTemperatureMaterial(const FlowChannel1Phase &flow_channel) const
Adds average wall temperature material.
void addWallTemperatureFromAuxMaterial(const FlowChannelBase &flow_channel, unsigned int i=0) const
Adds a material for wall temperature from an aux variable.
Single-component, single-phase flow channel.
A base class for flow channels.
unsigned int getNumberOfHeatTransferConnections() const
Gets the number of heat transfer connections.
bool getTemperatureMode() const
Gets temperature mode flag.
Base class for heat transfer connections.
void addClassDescription(const std::string &doc_string)
Adds wall temperature material for single-phase flow.
virtual void checkFlowChannel(const FlowChannelBase &flow_channel) const override
Checks for errors associated with a flow channel component.
virtual void addMooseObjectsFlowChannel(const FlowChannelBase &flow_channel) override
Adds MOOSE objects associated with a flow channel component.
virtual void addMooseObjectsHeatTransfer(const HeatTransferBase &heat_transfer, const FlowChannelBase &flow_channel) override
Adds MOOSE objects associated with a heat transfer component.
virtual void checkHeatTransfer(const HeatTransferBase &heat_transfer, const FlowChannelBase &flow_channel) const override
Checks for errors associated with a heat transfer component.
WallTemperature1PhaseClosures(const InputParameters &params)