https://mooseframework.inl.gov
TotalPowerBase.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 "TotalPowerBase.h"
11 
14 {
16  return params;
17 }
18 
20  : Component(parameters), _power_var_name(genName(name(), "power"))
21 {
22 }
23 
24 void
26 {
28 }
SCALAR
THMProblem & getTHMProblem() const
Gets the THM problem.
Definition: Component.C:135
FIRST
static InputParameters validParams()
Definition: Component.C:18
void addSimVariable(bool nl, const VariableName &name, libMesh::FEType fe_type, Real scaling_factor=1.0)
Queues a variable of type MooseVariableScalar to be added to the nonlinear or aux system...
Definition: Simulation.C:271
const std::string name
Definition: Setup.h:20
virtual void addVariables() override
Base class for THM components.
Definition: Component.h:27
static InputParameters validParams()
const VariableName _power_var_name
The scalar variable holding the value of power.
TotalPowerBase(const InputParameters &parameters)