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