https://mooseframework.inl.gov
Loading...
Searching...
No Matches
RealControlDataValuePostprocessor.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
11#include "THMProblem.h"
12
14
17{
19 params.addClassDescription("Outputs the value of a ControlData as a postprocessor");
20 params.addRequiredParam<std::string>("control_data_name",
21 "The name of the control data to output.");
22 return params;
23}
24
26 const InputParameters & parameters)
27 : GeneralPostprocessor(parameters), _control_data_name(getParam<std::string>("control_data_name"))
28{
29 THMProblem * thm_problem =
30 dynamic_cast<THMProblem *>(getCheckedPointerParam<FEProblemBase *>("_fe_problem_base"));
31 if (thm_problem)
32 {
33 _thm_problem = thm_problem;
35 }
36 else
38 ": Cannot use RealControlDataValuePostprocessor without the component system.");
39}
40
41void
45
46void
50
51Real
registerMooseObject("ThermalHydraulicsApp", RealControlDataValuePostprocessor)
const T & get() const
static InputParameters validParams()
void addRequiredParam(const std::string &name, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
const std::string & name() const
void mooseError(Args &&... args) const
Reads a control value data and prints it out.
const std::string & _control_data_name
The name of the control data value.
RealControlDataValuePostprocessor(const InputParameters &parameters)
const ControlData< Real > * _control_data_value
The value of the control data.
ControlData< T > * getControlData(const std::string &name)
Get control data of type T and name 'name', if it does not exist it will be created.
Definition Simulation.h:290
Specialization of FEProblem to run with component subsystem.
Definition THMProblem.h:19