37 const std::string class_name =
"ADJunctionParallelChannels1PhaseUserObject";
39 params.
set<
bool>(
"use_scalar_variables") =
false;
42 params.
set<std::vector<Real>>(
"normals") =
_normals;
46 params.
set<std::string>(
"component_name") =
name();
57 params.
set<Real>(
"K") =
_K;
60 params.
set<
bool>(
"apply_velocity_scaling") = getParam<bool>(
"apply_velocity_scaling");
registerMooseObject("ThermalHydraulicsApp", JunctionParallelChannels1Phase)
const ExecFlagType EXEC_INITIAL
const ExecFlagType EXEC_LINEAR
const ExecFlagType EXEC_NONLINEAR
std::vector< Real > _normals
Outward normals associated with connected components.
std::vector< RealVectorValue > _directions
Directions of connected components.
std::vector< BoundaryName > _boundary_names
Boundary names of connected components.
const std::vector< processor_id_type > & getConnectedProcessorIDs()
Gets the processor IDs of the connected 1D components.
subdomain_id_type _junction_subdomain_id
Junction subdomain ID.
THMProblem & getTHMProblem() const
Gets the THM problem.
Factory & _factory
The Factory associated with the MooseApp.
void connectObject(const InputParameters &obj_params, const std::string &obj_name, const std::string ¶m) const
Connects a controllable parameter of the component to a controllable parameter of a constituent objec...
virtual std::vector< std::shared_ptr< UserObject > > addUserObject(const std::string &user_object_name, const std::string &name, InputParameters ¶meters)
InputParameters getValidParams(const std::string &name) const
std::vector< UserObjectName > _numerical_flux_names
const std::string _junction_uo_name
Name of junction user object name, if any.
UserObjectName _fp_name
Fluid property user object name.
static const std::string RHOUA
static const std::string RHOA
static const std::string RHOEA
static const std::string AREA
Junction between 1-phase flow channels that are parallel.
JunctionParallelChannels1Phase(const InputParameters ¶ms)
virtual void buildVolumeJunctionUserObject() override
Builds user object for computing and storing the fluxes.
static InputParameters validParams()
Junction between 1-phase flow channels that has a non-zero volume.
const VariableName _rhovV_var_name
rho*v*V variable name for junction
const Real _volume
Volume of the junction.
const Real & _K
Form loss coefficient.
const VariableName _rhoEV_var_name
rho*E*V variable name for junction
const VariableName _rhoV_var_name
rho*V variable name for junction
static InputParameters validParams()
const VariableName _rhowV_var_name
rho*w*V variable name for junction
const VariableName _rhouV_var_name
rho*u*V variable name for junction
const Real & _A_ref
Reference area.
ExecFlagEnum getDefaultExecFlagEnum()