17 #include "libmesh/system.h" 27 "Returns the surface temperature of a specific fuel pin at a user defined height. Applies a " 28 "linear reconstruction for the temperature.");
37 _height(getParam<
Real>(
"height")),
38 _i_pin(getParam<
int>(
"index")),
44 " : The SCMPinSurfaceTemperature post processor calculates temperature on pins. A Pin " 45 "Mesh should be defined.");
67 for (
unsigned int iz = 0; iz < nz; iz++)
73 _value = Tpin_soln(node_in) + (Tpin_soln(node_out) - Tpin_soln(node_in)) *
74 (
_height - z_grid[iz]) / (z_grid[iz + 1] - z_grid[iz]);
Returns the surface temperature of a specific fuel pin at a user defined height.
const int & _i_pin
pin index
virtual const std::vector< Real > & getZGrid() const
Get axial location of layers.
virtual Node * getPinNode(unsigned int i_pin, unsigned int iz) const =0
Get the pin mesh node for a given pin index and elevation index.
Provide a simple RAII interface for linear lagrange solution variables.
registerMooseObject("SubChannelApp", SCMPinSurfaceTemperature)
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()
FEProblemBase & _fe_problem
const std::string & name() const
virtual const Real & getHeatedLength() const
Return heated length.
const T & getConstMesh(const MooseMesh &mesh)
function to cast const mesh
bool pinMeshExist() const
Return if Pin Mesh exists or not.
virtual unsigned int getNumOfAxialCells() const
Return the number of axial cells.
virtual void execute() override
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const Real & _height
axial location [m]
Real _value
value we want to calculate
void mooseError(Args &&... args) const
const SubChannelMesh & _mesh
geometric information
Base class for subchannel meshes.
virtual const Real & getHeatedLengthExit() const
Return unheated length at exit.
processor_id_type processor_id() const
static InputParameters validParams()
void ErrorVector unsigned int
virtual const Real & getHeatedLengthEntry() const
Return unheated length at entry.
SCMPinSurfaceTemperature(const InputParameters ¶ms)
virtual Real getValue() const override