https://mooseframework.inl.gov
Loading...
Searching...
No Matches
SCMRZPinQPrimeAux.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 "SCMRZPinQPrimeAux.h"
11
13
15SCMRZPinQPrimeAux ::validParams()
16{
19 "Axial heat rate on pin surface for a 2D-RZ axi-symmetric fuel pin model");
20 return params;
21}
22
23SCMRZPinQPrimeAux ::SCMRZPinQPrimeAux(const InputParameters & parameters)
24 : DiffusionFluxAux(parameters)
25{
26 for (auto & b : blockIDs())
27 {
29 mooseError(this->name(), ": This kernel must be calculated on an -RZ Mesh");
30 }
31}
32
33Real
34SCMRZPinQPrimeAux ::computeValue()
35{
36 return DiffusionFluxAux::computeValue() * M_PI * 2.0 * abs(_q_point[_qp](0));
37}
registerMooseObject("SubChannelApp", SCMRZPinQPrimeAux)
SubProblem & _subproblem
virtual const std::set< SubdomainID > & blockIDs() const
virtual Real computeValue()
static InputParameters validParams()
void addClassDescription(const std::string &doc_string)
const std::string & name() const
void mooseError(Args &&... args) const
Computes linear heat rate in a 2D-RZ model of a fuel pin.
Moose::CoordinateSystemType getCoordSystem(SubdomainID sid) const