https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
13
16{
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
34Real
registerMooseObject("SubChannelApp", SCMMassFlowRateAux)
static InputParameters validParams()
void addRequiredCoupledVar(const std::string &name, const std::string &doc_string)
void addRequiredParam(const std::string &name, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
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.
const VariableValue & _area
Cross-sectional area.
SCMMassFlowRateAux(const InputParameters &parameters)
virtual Real computeValue() override