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