https://mooseframework.inl.gov
SCMFlatMassFlowRateAux.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://mooseframework.inl.gov
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #include "SCMFlatMassFlowRateAux.h"
11 #include "SCM.h"
12 
14 registerMooseObjectRenamed("SubChannelApp",
15  FlatMassFlowRateAux,
16  "06/30/2025 24:00",
18 
21 {
23  params.addRequiredParam<Real>("mass_flow", "Specified total mass flow at the inlet [kg/s]");
24  params.addClassDescription("Computes a uniform mass flow rate at the inlet");
25  return params;
26 }
27 
29  : AuxKernel(parameters),
30  _mass_flow(getParam<Real>("mass_flow")),
31  _subchannel_mesh(SCM::getConstMesh<SubChannelMesh>(_mesh))
32 {
33 }
34 
35 Real
37 {
38  unsigned int n_ch = _subchannel_mesh.getNumOfChannels();
39  return _mass_flow / n_ch;
40 }
const SubChannelMesh & _subchannel_mesh
Geometry information.
virtual const unsigned int & getNumOfChannels() const =0
Return the number of channels per layer.
registerMooseObjectRenamed("SubChannelApp", FlatMassFlowRateAux, "06/30/2025 24:00", SCMFlatMassFlowRateAux)
Computes a uniform mass flow rate at the inlet provided a total mass flow rate.
void addRequiredParam(const std::string &name, const std::string &doc_string)
const Real & _mass_flow
Specified mass flow.
const T & getConstMesh(const MooseMesh &mesh)
function to cast const mesh
Definition: SCM.h:21
SCMFlatMassFlowRateAux(const InputParameters &parameters)
static InputParameters validParams()
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void addClassDescription(const std::string &doc_string)
registerMooseObject("SubChannelApp", SCMFlatMassFlowRateAux)
static InputParameters validParams()
virtual Real computeValue() override
Base class for subchannel meshes.
Definition: SCM.h:16