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 "TotalPowerBase.h" 11 : 12 : InputParameters 13 568 : TotalPowerBase::validParams() 14 : { 15 568 : InputParameters params = Component::validParams(); 16 568 : return params; 17 : } 18 : 19 284 : TotalPowerBase::TotalPowerBase(const InputParameters & parameters) 20 568 : : Component(parameters), _power_var_name(genName(name(), "power")) 21 : { 22 284 : } 23 : 24 : void 25 262 : TotalPowerBase::addVariables() 26 : { 27 262 : getTHMProblem().addSimVariable(false, _power_var_name, libMesh::FEType(FIRST, SCALAR)); 28 262 : }