35 mooseAssert(flow_model_1phase,
"Incompatible flow model");
48 logError(
"Passive transport has not been implemented for this Component type.");
54 const std::string class_name =
"ADBoundaryFlux3EqnBC";
60 params.
set<std::vector<VariableName>>(
"rhoA") = {
THM::RHOA};
61 params.
set<std::vector<VariableName>>(
"rhouA") = {
THM::RHOUA};
62 params.
set<std::vector<VariableName>>(
"rhoEA") = {
THM::RHOEA};
67 for (
const auto & var : flow_model_1phase->solutionVariableNames())
69 params.
set<NonlinearVariableName>(
"variable") = var;
71 class_name,
genName(
name(), var,
"bnd_flux_3eqn_bc"), params);
std::string _connected_component_name
Name of the connected component.
Real _normal
Outward normal on this boundary.
const std::vector< BoundaryName > & getBoundaryNames() const
Gets the boundary names for this component.
void logError(Args &&... args) const
Logs an error.
THMProblem & getTHMProblem() const
Gets the THM problem.
Factory & _factory
The Factory associated with the MooseApp.
virtual void check() const
Check the component integrity.
virtual void addBoundaryCondition(const std::string &bc_name, const std::string &name, InputParameters ¶meters)
InputParameters getValidParams(const std::string &name) const
Base class for boundary components connected to FlowChannel1PhaseBase components.
static InputParameters validParams()
virtual void init() override
Initializes the component.
const UserObjectName _boundary_uo_name
Name of boundary user object name.
virtual bool supportsPassiveTransport() const
True if the component supports passive transport variables.
virtual void init() override
Initializes the component.
virtual void check() const override
Check the component integrity.
FlowBoundary1Phase(const InputParameters ¶ms)
std::vector< VariableName > _passives_times_area
Passive transport variables on the connected flow channel.
static InputParameters validParams()
virtual void addWeakBCs()
Creates the boundary condition objects for 1-phase flow.
std::shared_ptr< const FlowModel > _flow_model
Flow model.
Flow model for a single-component, single-phase fluid using the Euler equations.
std::string genName(const std::string &prefix, unsigned int id, const std::string &suffix="") const
Build a name from a prefix, number and possible suffix.
const bool & getImplicitTimeIntegrationFlag()
Gets the flag indicating whether an implicit time integration scheme is being used.
static const std::string RHOEA
static const std::string AREA_LINEAR
static const std::string RHOUA
static const std::string RHOA