16#include "libmesh/system.h"
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<
int>(
"index")),
38 _var_number(_subproblem
40 parameters.get<VariableName>(
"variable"),
41 Moose::VarKindType::VAR_ANY,
42 Moose::VarFieldType::VAR_FIELD_STANDARD)
44 _system(_subproblem.getSystem(getParam<VariableName>(
"variable"))),
56 if (MooseUtils::absoluteFuzzyEqual(
_value, 0.0))
59 pl->enable_out_of_mesh_mode();
60 auto * elem = (*pl)(
_point);
61 auto elem_id = elem ? elem->id() : DofObject::invalid_id;
63 if (elem_id == DofObject::invalid_id)
64 mooseError(
name(),
" height: No element located at given height.");
registerMooseObject("SubChannelApp", SubChannelPointValue)
void ErrorVector unsigned int
static InputParameters validParams()
const std::string & name() const
void mooseError(Args &&... args) const
virtual std::unique_ptr< libMesh::PointLocatorBase > getPointLocator() const
Base class for subchannel meshes.
std::vector< std::vector< Real > > _subchannel_position
x,y coordinates of the subchannel centroids
Calculates the value of a user selected variable at a user selected point in the assembly.
static InputParameters validParams()
SubChannelPointValue(const InputParameters ¶ms)
virtual void execute() override
const Real & _height
axial location [m]
virtual Real getValue() const override
Real _value
value we want to calculate
const unsigned int _var_number
const int & _i_ch
subchannel index
const SubChannelMesh & _mesh
geometric information
virtual MooseMesh & mesh()=0