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"),
44 _system(_subproblem.getSystem(getParam<VariableName>(
"variable"))),
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.");
virtual MooseMesh & mesh()=0
bool absoluteFuzzyEqual(const T &var1, const T2 &var2, const T3 &tol=libMesh::TOLERANCE *libMesh::TOLERANCE)
registerMooseObject("SubChannelApp", SubChannelPointValue)
virtual Real getValue() const override
const unsigned int _var_number
static InputParameters validParams()
SubChannelPointValue(const InputParameters ¶ms)
std::vector< std::vector< Real > > _subchannel_position
x,y coordinates of the subchannel centroids
virtual const std::string & name() const
static InputParameters validParams()
const T & getConstMesh(const MooseMesh &mesh)
function to cast const mesh
Real _value
value we want to calculate
Calculates the value of a user selected variable at a user selected point in the assembly.
const SubChannelMesh & _mesh
geometric information
const int & _i_ch
subchannel index
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual void execute() override
void mooseError(Args &&... args) const
Base class for subchannel meshes.
virtual std::unique_ptr< libMesh::PointLocatorBase > getPointLocator() const
void ErrorVector unsigned int
const Elem & get(const ElemType type_in)
const Real & _height
axial location [m]