https://mooseframework.inl.gov
CopyPostprocessorValueControl.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 
12 registerMooseObject("ThermalHydraulicsApp", CopyPostprocessorValueControl);
13 
16 {
18  params.addRequiredParam<PostprocessorName>("postprocessor", "The name of the postprocessor.");
19  params.addClassDescription("Forwards the value of a postprocessor to a ControlData named with "
20  "the name of the postprocessor.");
21  return params;
22 }
23 
25  : THMControl(parameters),
26  _value(declareControlData<Real>(getParam<PostprocessorName>("postprocessor"))),
27  _pps_value(getPostprocessorValue("postprocessor"))
28 {
29 }
30 
31 void
33 {
35 }
registerMooseObject("ThermalHydraulicsApp", CopyPostprocessorValueControl)
void addRequiredParam(const std::string &name, const std::string &doc_string)
static InputParameters validParams()
Definition: THMControl.C:13
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
CopyPostprocessorValueControl(const InputParameters &parameters)
void addClassDescription(const std::string &doc_string)
This control takes a postprocessor and copies its value into a control data value.