https://mooseframework.inl.gov
FlowBoundary1PhaseBase.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 
10 #include "FlowBoundary1PhaseBase.h"
11 #include "FlowChannel1PhaseBase.h"
12 
15 {
17  return params;
18 }
19 
21  : FlowBoundary(params), _boundary_uo_name(genName(name(), "boundary_uo"))
22 {
23 }
24 
25 void
27 {
29 
30  if (hasComponentByName<FlowChannel1PhaseBase>(_connected_component_name))
31  {
32  const auto & flow_channel =
34  _numerical_flux_name = flow_channel.getNumericalFluxUserObjectName();
35  }
36 }
FlowBoundary1PhaseBase(const InputParameters &params)
static InputParameters validParams()
static InputParameters validParams()
Definition: FlowBoundary.C:14
THMProblem & getTHMProblem() const
Gets the THM problem.
Definition: Component.C:135
Base class for components that connect to flow channel boundaries.
Definition: FlowBoundary.h:17
virtual void init() override
Initializes the component.
const std::string name
Definition: Setup.h:20
std::string _connected_component_name
Name of the connected component.
const T & getComponentByName(const std::string &name) const
Get component by its name.
Definition: Simulation.h:504
UserObjectName _numerical_flux_name
Numerical flux user object name.
Base class for single-phase flow channels.
virtual void init() override
Initializes the component.
Definition: FlowBoundary.C:26