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 "SCMRZPinQPrimeAux.h" 11 : 12 : registerMooseObject("SubChannelApp", SCMRZPinQPrimeAux); 13 : 14 : InputParameters 15 28 : SCMRZPinQPrimeAux ::validParams() 16 : { 17 28 : InputParameters params = DiffusionFluxAux::validParams(); 18 28 : params.addClassDescription( 19 : "Axial heat rate on pin surface for a 2D-RZ axi-symmetric fuel pin model"); 20 28 : return params; 21 0 : } 22 : 23 15 : SCMRZPinQPrimeAux ::SCMRZPinQPrimeAux(const InputParameters & parameters) 24 15 : : DiffusionFluxAux(parameters) 25 : { 26 15 : for (auto & b : blockIDs()) 27 : { 28 0 : if (_subproblem.getCoordSystem(b) != Moose::COORD_RZ) 29 0 : mooseError(this->name(), ": This kernel must be calculated on an -RZ Mesh"); 30 : } 31 15 : } 32 : 33 : Real 34 420 : SCMRZPinQPrimeAux ::computeValue() 35 : { 36 420 : return DiffusionFluxAux::computeValue() * M_PI * 2.0 * abs(_q_point[_qp](0)); 37 : }