16 params.
addRequiredParam<std::vector<Real>>(
"K",
"Form loss coefficients [-]");
18 params.
addParam<std::vector<Real>>(
"K_reverse",
"Reverse form loss coefficients [-]");
26 _k_coeffs(getParam<
std::vector<
Real>>(
"K")),
27 _kr_coeffs(isParamValid(
"K_reverse") ? getParam<
std::vector<
Real>>(
"K_reverse")
28 : getParam<
std::vector<
Real>>(
"K")),
29 _ref_area(getParam<
Real>(
"A_ref"))
31 checkSizeEqualsNumberOfConnections<Real>(
"K");
33 checkSizeEqualsNumberOfConnections<Real>(
"K_reverse");
bool isParamValid(const std::string &name) const
Base class for flow junctions.
static InputParameters validParams()
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
JunctionWithLossesBase(const InputParameters ¶meters)
static InputParameters validParams()