https://mooseframework.inl.gov
Loading...
Searching...
No Matches
thermal_hydraulics
src
components
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
12
InputParameters
13
TotalPowerBase::validParams
()
14
{
15
InputParameters
params =
Component::validParams
();
16
return
params;
17
}
18
19
TotalPowerBase::TotalPowerBase
(
const
InputParameters
& parameters)
20
:
Component
(parameters), _power_var_name(genName(
name
(),
"power"
))
21
{
22
}
23
24
void
25
TotalPowerBase::addVariables
()
26
{
27
getTHMProblem
().
addSimVariable
(
false
,
_power_var_name
,
libMesh::FEType
(FIRST, SCALAR));
28
}
name
const std::string name
Definition
Setup.h:21
TotalPowerBase.h
Component
Base class for THM components.
Definition
Component.h:32
Component::getTHMProblem
THMProblem & getTHMProblem() const
Gets the THM problem.
Definition
Component.C:135
Component::validParams
static InputParameters validParams()
Definition
Component.C:18
Simulation::addSimVariable
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
TotalPowerBase::_power_var_name
const VariableName _power_var_name
The scalar variable holding the value of power.
Definition
TotalPowerBase.h:27
TotalPowerBase::TotalPowerBase
TotalPowerBase(const InputParameters ¶meters)
Definition
TotalPowerBase.C:19
TotalPowerBase::addVariables
virtual void addVariables() override
Definition
TotalPowerBase.C:25
TotalPowerBase::validParams
static InputParameters validParams()
Definition
TotalPowerBase.C:13
libMesh::FEType
InputParameters
Generated on Fri Aug 21 2026 13:41:58 for https://mooseframework.inl.gov by
1.9.8