https://mooseframework.inl.gov
SCMMassFlowRateAux.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 "SCMMassFlowRateAux.h"
11 
12 registerMooseObject("SubChannelApp", SCMMassFlowRateAux);
13 registerMooseObjectRenamed("SubChannelApp",
14  MassFlowRateAux,
15  "06/30/2025 24:00",
17 
20 {
22  params.addClassDescription(
23  "Computes mass flow rate from specified mass flux and subchannel cross-sectional "
24  "area. Can read either PostprocessorValue or Real");
25  params.addRequiredCoupledVar("area", "Cross sectional area [m^2]");
26  params.addRequiredParam<PostprocessorName>(
27  "mass_flux", "The postprocessor or Real to use for the value of mass_flux");
28  return params;
29 }
30 
32  : AuxKernel(parameters),
33  _mass_flux(getPostprocessorValue("mass_flux")),
34  _area(coupledValue("area"))
35 {
36 }
37 
38 Real
40 {
41  return _mass_flux * _area[_qp];
42 }
Computes mass float rate from specified uniform mass flux and cross-sectional area.
static InputParameters validParams()
const PostprocessorValue & _mass_flux
Mass flux provided by postprocessor.
registerMooseObject("SubChannelApp", SCMMassFlowRateAux)
virtual Real computeValue() override
void addRequiredParam(const std::string &name, const std::string &doc_string)
void addRequiredCoupledVar(const std::string &name, const std::string &doc_string)
registerMooseObjectRenamed("SubChannelApp", MassFlowRateAux, "06/30/2025 24:00", SCMMassFlowRateAux)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void addClassDescription(const std::string &doc_string)
static InputParameters validParams()
SCMMassFlowRateAux(const InputParameters &parameters)
const VariableValue & _area
Cross-sectional area.