Line data Source code
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", 16 : SCMMassFlowRateAux); 17 : 18 : InputParameters 19 862 : SCMMassFlowRateAux::validParams() 20 : { 21 862 : InputParameters params = AuxKernel::validParams(); 22 862 : params.addClassDescription( 23 : "Computes mass flow rate from specified mass flux and subchannel cross-sectional " 24 : "area. Can read either PostprocessorValue or Real"); 25 1724 : params.addRequiredCoupledVar("area", "Cross sectional area [m^2]"); 26 1724 : params.addRequiredParam<PostprocessorName>( 27 : "mass_flux", "The postprocessor or Real to use for the value of mass_flux"); 28 862 : return params; 29 0 : } 30 : 31 467 : SCMMassFlowRateAux::SCMMassFlowRateAux(const InputParameters & parameters) 32 : : AuxKernel(parameters), 33 467 : _mass_flux(getPostprocessorValue("mass_flux")), 34 934 : _area(coupledValue("area")) 35 : { 36 467 : } 37 : 38 : Real 39 9242 : SCMMassFlowRateAux::computeValue() 40 : { 41 9242 : return _mass_flux * _area[_qp]; 42 : }