https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
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
31void
registerMooseObject("ThermalHydraulicsApp", CopyPostprocessorValueControl)
This control takes a postprocessor and copies its value into a control data value.
CopyPostprocessorValueControl(const InputParameters &parameters)
void addRequiredParam(const std::string &name, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
static InputParameters validParams()
Definition THMControl.C:13