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 
16 {
18  params.addClassDescription(
19  "Computes mass flow rate from specified mass flux and subchannel cross-sectional "
20  "area. Can read either PostprocessorValue or Real");
21  params.addRequiredCoupledVar("area", "Cross sectional area [m^2]");
22  params.addRequiredParam<PostprocessorName>(
23  "mass_flux", "The postprocessor or Real to use for the value of mass_flux");
24  return params;
25 }
26 
28  : AuxKernel(parameters),
29  _mass_flux(getPostprocessorValue("mass_flux")),
30  _area(coupledValue("area"))
31 {
32 }
33 
34 Real
36 {
37  return _mass_flux * _area[_qp];
38 }
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)
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.