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 "FlowBoundary.h" 11 : #include "FlowChannelBase.h" 12 : 13 : InputParameters 14 5380 : FlowBoundary::validParams() 15 : { 16 5380 : InputParameters params = Component1DBoundary::validParams(); 17 5380 : return params; 18 : } 19 : 20 2688 : FlowBoundary::FlowBoundary(const InputParameters & params) 21 2688 : : Component1DBoundary(params), _flow_model_id(THM::FM_INVALID) 22 : { 23 2688 : } 24 : 25 : void 26 2663 : FlowBoundary::init() 27 : { 28 2663 : Component1DBoundary::init(); 29 : 30 2663 : if (_connections.size() == 1) 31 2659 : if (hasComponentByName<FlowChannelBase>(_connected_component_name)) 32 : { 33 : const FlowChannelBase & comp = 34 2657 : getTHMProblem().getComponentByName<FlowChannelBase>(_connected_component_name); 35 : 36 : _fp_name = comp.getFluidPropertiesName(); 37 2657 : _flow_model_id = comp.getFlowModelID(); 38 5314 : _flow_model = comp.getFlowModel(); 39 : } 40 2663 : } 41 : 42 : void 43 2631 : FlowBoundary::check() const 44 : { 45 2631 : Component1DBoundary::check(); 46 : 47 2631 : checkComponentOfTypeExistsByName<FlowChannelBase>(_connected_component_name); 48 2631 : } 49 : 50 : const UserObjectName & 51 0 : FlowBoundary::getFluidPropertiesName() const 52 : { 53 0 : checkSetupStatus(INITIALIZED_PRIMARY); 54 : 55 0 : return _fp_name; 56 : }