20 params.
addRequiredParam<VariableName>(
"variable",
"Variable you want the value of");
22 params.
addClassDescription(
"Prints out a user selected value at a user selected axial height in " 23 "a matrix format to be used for post-processing");
34 _variable(getParam<VariableName>(
"variable")),
35 _height(getParam<
Real>(
"height"))
52 for (
unsigned int i_ch = 0; i_ch < n_channels; i_ch++)
62 for (
unsigned int iz = 0; iz < nz; iz++)
66 for (
unsigned int i_ch = 0; i_ch < n_channels; i_ch++)
72 _exit_value(i,
j) = val_soln(node_in) + (val_soln(node_out) - val_soln(node_in)) *
74 (z_grid[iz + 1] - z_grid[iz]);
83 myfile << std::setprecision(10) << std::fixed <<
_exit_value <<
"\n";
virtual const std::vector< Real > & getZGrid() const
Get axial location of layers.
Provide a simple RAII interface for linear lagrange solution variables.
Creates the mesh of subchannels in a quadrilateral lattice.
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
virtual const Real & getHeatedLength() const
Return heated length.
FEProblemBase * _problem_ptr
static InputParameters validParams()
QuadSubChannelNormalSliceValues(const InputParameters ¶ms)
registerMooseObject("SubChannelApp", QuadSubChannelNormalSliceValues)
static InputParameters validParams()
const QuadSubChannelMesh & _mesh
Eigen::MatrixXd _exit_value
matrix that holds the value of the variable the user wants to print
virtual const unsigned int & getNumOfAxialCells() const
Return the number of axial cells.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual const unsigned int & getNy() const
Number of subchannels in the -y direction.
virtual Node * getChannelNode(unsigned int i_chan, unsigned iz) const override
Get the subchannel mesh node for a given channel index and elevation index.
virtual const unsigned int & getNumOfChannels() const override
Return the number of channels per layer.
const VariableName & _variable
The name of the variable.
static const std::complex< double > j(0, 1)
Complex number "j" (also known as "i")
virtual const Real & getHeatedLengthExit() const
Return unheated length at exit.
Prints out a user selected variable value in matrix format at a specific plane.
virtual const unsigned int & getNx() const
Number of subchannels in the -x direction.
const Real & _height
The axial location where the plane is.
virtual void output() override
virtual const Real & getHeatedLengthEntry() const
Return unheated length at entry.