22 "Computes axial power rate (W/m) that goes into the subchannel cells " 23 "or is assigned to the fuel pins, in a triangular lattice arrangement");
25 "power",
"The postprocessor or Real to use for the total power of the subassembly [W]");
27 "filename",
"name of radial power profile .txt file (should be a single column) [UnitLess].");
28 params.
addParam<FunctionName>(
"axial_heat_rate",
30 "user provided normalized function of axial heat rate [Unitless]. " 31 "The integral over pin length should equal the heated length");
37 _power(getPostprocessorValue(
"power")),
39 _filename(getParam<
std::string>(
"filename")),
40 _axial_heat_rate(getFunction(
"axial_heat_rate"))
60 if (inFile.fail() && !inFile.eof())
64 mooseError(
name(),
": Radial profile file doesn't have correct size: ", n_pins);
78 auto fpin_power =
_power / sum;
96 for (
unsigned int iz = 1; iz < nz + 1; iz++)
100 auto z1 = z_grid[iz - 1];
101 Point p1(0, 0, z1 - unheated_length_entry);
102 Point p2(0, 0, z2 - unheated_length_entry);
109 for (
unsigned int i_pin = 0; i_pin < n_pins; i_pin++)
135 auto total_power = 0.0;
136 for (
unsigned int i_pin = 0; i_pin < n_pins; i_pin++)
146 _console <<
"###########################################" << std::endl;
147 _console <<
"Total power estimation by IC kernel before correction: " << total_power <<
" [W] " 155 auto heat_rate = 0.0;
158 Point p1(0, 0, unheated_length_entry);
virtual bool pinMeshExist() const override
Return if Pin Mesh exists or not.
virtual EChannelType getSubchannelType(unsigned int index) const override
Return the type of the subchannel for given subchannel index.
unsigned int _numberoflines
The number of lines associated with the radial power profile .txt file.
registerMooseObject("SubChannelApp", SCMTriPowerIC)
virtual const std::vector< Real > & getZGrid() const
Get axial location of layers.
virtual unsigned int getSubchannelIndexFromPoint(const Point &p) const override
Return a subchannel index for a given physical point p
Eigen::MatrixXd _ref_qprime
Average linear heat rate over the whole pin [W/m].
virtual const std::string & name() const
virtual void initialSetup() override
Eigen::MatrixXd _estimate_power
Matrix which will hold the total estimated power of each pin [W].
An abstract class for ICs for hexagonal fuel assemblies.
registerMooseObjectRenamed("SubChannelApp", TriPowerIC, "06/30/2025 24:00", SCMTriPowerIC)
Eigen::MatrixXd _pin_power_correction
The correction that will be applied to the estimated calculation [unitless].
SCMTriPowerIC(const InputParameters ¶ms)
virtual const Real & getHeatedLength() const
Return heated length.
bool absoluteFuzzyLessThan(const T &var1, const T2 &var2, const T3 &tol=libMesh::TOLERANCE *libMesh::TOLERANCE)
const PostprocessorValue & _power
The total power of the assembly.
virtual unsigned int getPinIndexFromPoint(const Point &p) const override
Return a pin index for a given physical point p
const Function & _axial_heat_rate
Real value(const Point &p) override
Eigen::MatrixXd _power_dis
matrix that holds the values of the relative pin power
virtual const unsigned int & getNumOfAxialCells() const
Return the number of axial cells.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
bool absoluteFuzzyLessEqual(const T &var1, const T2 &var2, const T3 &tol=libMesh::TOLERANCE *libMesh::TOLERANCE)
virtual const unsigned int & getNumOfPins() const override
Return the number of pins.
const TriSubChannelMesh & _mesh
bool absoluteFuzzyGreaterEqual(const T &var1, const T2 &var2, const T3 &tol=libMesh::TOLERANCE *libMesh::TOLERANCE)
void mooseError(Args &&... args) const
static InputParameters validParams()
const ConsoleStream _console
std::string _filename
The name of the radial power profile file.
virtual Real value(Real t, const Point &p) const
static InputParameters validParams()
virtual const std::vector< unsigned int > & getChannelPins(unsigned int i_chan) const override
Return a vector of pin indices for a given channel index.
Sets the axial heat rate for each pin according to a radial power distribution and a user defined axi...
bool absoluteFuzzyGreaterThan(const T &var1, const T2 &var2, const T3 &tol=libMesh::TOLERANCE *libMesh::TOLERANCE)
virtual const Real & getHeatedLengthEntry() const
Return unheated length at entry.
Eigen::MatrixXd _ref_power
Actual pin power [W].