21 params.
addRequiredParam<VariableName>(
"variable",
"Variable you want the value of");
22 params.
addRequiredParam<Real>(
"height",
"Axial location of normal slice [m]");
23 params.
addClassDescription(
"Prints out a user selected value at a user selected axial height in "
24 "a matrix format to be used for post-processing");
35 _variable(getParam<VariableName>(
"variable")),
36 _height(getParam<Real>(
"height"))
57 const unsigned int i = i_ch / nx;
58 const unsigned int j = i_ch - i * nx;
64 myfile << std::setprecision(10) << std::fixed <<
_exit_value <<
"\n";
registerMooseObject("SubChannelApp", QuadSubChannelNormalSliceValues)
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()
void paramError(const std::string ¶m, Args... args) const
FEProblemBase * _problem_ptr
Creates the mesh of subchannels in a quadrilateral lattice.
unsigned int getNumOfChannels() const override
Return the number of channels per layer.
const unsigned int & getNx() const
Number of subchannels in the -x direction.
const unsigned int & getNy() const
Number of subchannels in the -y direction.
Node * getChannelNode(unsigned int i_chan, unsigned int iz) const override
Get the subchannel mesh node for a given channel index and elevation index.
Prints out a user selected variable value in matrix format at a specific plane.
Real _weight
linear interpolation weight of the height within the axial cell
static InputParameters validParams()
Eigen::MatrixXd _exit_value
matrix that holds the value of the variable the user wants to print
const VariableName & _variable
The name of the variable.
const QuadSubChannelMesh & _mesh
virtual void output() override
const Real & _height
The axial location where the plane is.
QuadSubChannelNormalSliceValues(const InputParameters ¶ms)
unsigned int _iz
axial cell containing the height
Provide a simple RAII interface for linear lagrange solution variables.
virtual const std::vector< Real > & getZGrid() const
Get axial location of layers.
std::pair< unsigned int, Real > getAxialInterpolation(Real z) const
Get the axial cell containing height z and the linear interpolation weight within it.
processor_id_type processor_id() const