24 "Computes subchannel flow area in the square lattice subchannel arrangement");
36 Real standard_area, rod_area, additional_area;
49 rod_area = 0.25 * 0.25 * M_PI * pin_diameter * pin_diameter;
50 additional_area =
pitch * gap + gap * gap;
55 rod_area = 0.5 * 0.25 * M_PI * pin_diameter * pin_diameter;
56 additional_area =
pitch * gap;
61 rod_area = 0.25 * M_PI * pin_diameter * pin_diameter;
62 additional_area = 0.0;
66 auto subchannel_area = standard_area + additional_area - rod_area;
70 for (
const auto & i_blockage : index_blockage)
72 if (i == i_blockage && (p(2) >= z_blockage.front() && p(2) <= z_blockage.back()))
74 return reduction_blockage[index] * subchannel_area;
79 return subchannel_area;
registerMooseObjectRenamed("SubChannelApp", QuadFlowAreaIC, "06/30/2025 24:00", SCMQuadFlowAreaIC)
virtual const Real & getPinDiameter() const
Return Pin diameter.
An abstract class for ICs for quadrilateral subchannels.
This class calculates the cross-sectional flow area of the quadrilateral subchannel.
SCMQuadFlowAreaIC(const InputParameters ¶ms)
const QuadSubChannelMesh & _mesh
const Real & getGap() const
Returns the gap, not to be confused with the gap between pins, this refers to the gap next to the duc...
static InputParameters validParams()
unsigned int getSubchannelIndexFromPoint(const Point &p) const override
Return a subchannel index for a given physical point p
static const std::string pitch
const T & getConstMesh(const MooseMesh &mesh)
function to cast const mesh
static InputParameters validParams()
virtual const std::vector< Real > & getReductionBlockage() const
Get area reduction of blocked subchannels.
virtual const Real & getPitch() const override
Return the pitch between 2 subchannels.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual const std::vector< Real > & getZBlockage() const
Get axial location of blockage (in,out) [m].
virtual const std::vector< unsigned int > & getIndexBlockage() const
Get index of blocked subchannels.
Base class for subchannel meshes.
virtual EChannelType getSubchannelType(unsigned int index) const override
Return the type of the subchannel for given subchannel index.
Real value(const Point &p) override
registerMooseObject("SubChannelApp", SCMQuadFlowAreaIC)