25 params.
addRequiredParam<VariableName>(
"variable",
"Variable you want the value of");
29 "Prints out a user selected value of a specified subchannel at a user selected axial height");
36 _height(getParam<Real>(
"height")),
37 _i_ch(getParam<unsigned
int>(
"index")),
38 _variable(getParam<VariableName>(
"variable")),
44 if (
_i_ch >= n_channels)
45 paramError(
"index",
"is out of range; valid subchannel indices are 0 to ", n_channels - 1,
".");
49 if (MooseUtils::absoluteFuzzyLessThan(
_height, z_grid.front()) ||
50 MooseUtils::absoluteFuzzyGreaterThan(
_height, z_grid.back()))
53 " is outside the axial extent of the mesh, ",
registerMooseObject("SubChannelApp", SubChannelPointValue)
void ErrorVector unsigned int
virtual const MooseVariableFieldBase & getVariable(const THREAD_ID tid, const std::string &var_name, Moose::VarKindType expected_var_type=Moose::VarKindType::VAR_ANY, Moose::VarFieldType expected_var_field_type=Moose::VarFieldType::VAR_FIELD_ANY) const override
static InputParameters validParams()
void paramError(const std::string ¶m, Args... args) const
Provide a simple RAII interface for linear lagrange solution variables.
Base class for subchannel meshes.
virtual unsigned int getNumOfChannels() const =0
Return the number of channels per layer.
virtual const std::vector< Real > & getZGrid() const
Get axial location of layers.
std::pair< unsigned int, Real > getAxialInterpolation(Real z) const
Get the axial cell containing height z and the linear interpolation weight within it.
virtual Node * getChannelNode(unsigned int i_chan, unsigned int iz) const =0
Get the subchannel mesh node for a given channel index and elevation index.
Calculates the value of a user selected variable at a user selected point in the assembly.
static InputParameters validParams()
SubChannelPointValue(const InputParameters ¶ms)
Real _weight
linear interpolation weight of the height within the axial cell
unsigned int _iz
axial cell containing the height
virtual void finalize() override
const unsigned int & _i_ch
subchannel index
virtual void execute() override
const Real & _height
axial location [m]
virtual Real getValue() const override
Real _value
value we want to calculate
const VariableName & _variable
name of variable
const SubChannelMesh & _mesh
geometric information
void broadcast(T &data, const unsigned int root_id=0, const bool identical_sizes=false) const
FEProblemBase & _fe_problem
const Parallel::Communicator & _communicator
processor_id_type processor_id() const