https://mooseframework.inl.gov
Loading...
Searching...
No Matches
FlowBoundary.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 "FlowBoundary.h"
11#include "FlowChannelBase.h"
12
19
21 : Component1DBoundary(params), _flow_model_id(THM::FM_INVALID)
22{
23}
24
25void
27{
29
30 if (_connections.size() == 1)
31 if (hasComponentByName<FlowChannelBase>(_connected_component_name))
32 {
33 const FlowChannelBase & comp =
35
39 }
40}
41
42void
44{
46
47 checkComponentOfTypeExistsByName<FlowChannelBase>(_connected_component_name);
48}
49
50const UserObjectName &
Base class for boundary components connected to 1D components.
std::string _connected_component_name
Name of the connected component.
virtual void check() const override
Check the component integrity.
static InputParameters validParams()
std::vector< Connection > _connections
Vector of connections of this component.
virtual void init()
Initializes the component.
Definition Component.h:405
THMProblem & getTHMProblem() const
Gets the THM problem.
Definition Component.C:135
@ INITIALIZED_PRIMARY
mesh set up, called primary init
Definition Component.h:41
void checkSetupStatus(const EComponentSetupStatus &status) const
Throws an error if the supplied setup status of this component has not been reached.
Definition Component.C:117
const UserObjectName & getFluidPropertiesName() const
Gets the name of fluid properties used in all flow connections.
UserObjectName _fp_name
Fluid property user object name.
std::shared_ptr< const FlowModel > _flow_model
Flow model.
static InputParameters validParams()
virtual void init() override
Initializes the component.
THM::FlowModelID _flow_model_id
Flow model ID.
virtual void check() const override
Check the component integrity.
FlowBoundary(const InputParameters &params)
A base class for flow channels.
const UserObjectName & getFluidPropertiesName() const
Gets the name of the fluid properties user object for this component.
virtual std::shared_ptr< const FlowModel > getFlowModel() const
virtual const THM::FlowModelID & getFlowModelID() const =0
Gets the flow model ID.
const T & getComponentByName(const std::string &name) const
Get component by its name.
Definition Simulation.h:504