https://mooseframework.inl.gov
Loading...
Searching...
No Matches
HeatSourceFromTotalPower.h
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#pragma once
11
12#include "HeatSourceBase.h"
13
18{
19public:
21
22 virtual void addMooseObjects() override;
23
24protected:
25 virtual void init() override;
26 virtual void check() const override;
27
29 VariableName _power_var_name;
31 const Real & _power_fraction;
33 const bool _has_psf;
35 FunctionName _power_shape_func;
36
37public:
39};
Base class for heat source components.
Heat generation from total power.
virtual void init() override
Initializes the component.
FunctionName _power_shape_func
The name of the power shape function.
static InputParameters validParams()
virtual void addMooseObjects() override
const bool _has_psf
true if power shape function is being used
const Real & _power_fraction
The fraction of the power that goes into the heat structure.
virtual void check() const override
Check the component integrity.
VariableName _power_var_name
The name of the variable that represents total power.
const InputParameters & parameters() const