Line data Source code
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 : 10 : #include "WallTemperature1PhaseClosures.h" 11 : #include "FlowChannel1Phase.h" 12 : #include "HeatTransfer1PhaseBase.h" 13 : 14 : registerMooseObject("ThermalHydraulicsApp", WallTemperature1PhaseClosures); 15 : 16 : InputParameters 17 32 : WallTemperature1PhaseClosures::validParams() 18 : { 19 32 : InputParameters params = Closures1PhaseBase::validParams(); 20 32 : params.addClassDescription("Adds wall temperature material for single-phase flow."); 21 32 : return params; 22 0 : } 23 : 24 16 : WallTemperature1PhaseClosures::WallTemperature1PhaseClosures(const InputParameters & params) 25 16 : : Closures1PhaseBase(params) 26 : { 27 16 : } 28 : 29 : void 30 16 : WallTemperature1PhaseClosures::checkFlowChannel(const FlowChannelBase & /*flow_channel*/) const 31 : { 32 16 : } 33 : 34 : void 35 24 : WallTemperature1PhaseClosures::checkHeatTransfer(const HeatTransferBase & /*heat_transfer*/, 36 : const FlowChannelBase & /*flow_channel*/) const 37 : { 38 24 : } 39 : 40 : void 41 16 : WallTemperature1PhaseClosures::addMooseObjectsFlowChannel(const FlowChannelBase & flow_channel) 42 : { 43 : const FlowChannel1Phase & flow_channel_1phase = 44 16 : dynamic_cast<const FlowChannel1Phase &>(flow_channel); 45 : 46 : const unsigned int n_ht_connections = flow_channel_1phase.getNumberOfHeatTransferConnections(); 47 16 : if ((n_ht_connections > 0) && (flow_channel.getTemperatureMode())) 48 : { 49 40 : for (unsigned int i = 0; i < n_ht_connections; i++) 50 24 : addWallTemperatureFromAuxMaterial(flow_channel_1phase, i); 51 : 52 16 : if (flow_channel.getNumberOfHeatTransferConnections() > 1) 53 8 : addAverageWallTemperatureMaterial(flow_channel_1phase); 54 : } 55 16 : } 56 : 57 : void 58 24 : WallTemperature1PhaseClosures::addMooseObjectsHeatTransfer( 59 : const HeatTransferBase & /*heat_transfer*/, const FlowChannelBase & /*flow_channel*/) 60 : { 61 24 : }