https://mooseframework.inl.gov
Loading...
Searching...
No Matches
DelayControl.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 "THMControl.h"
13#include "LinearInterpolation.h"
14
25{
26public:
28
29 virtual void execute();
30
31protected:
35 void addFnPoint(const Real & t, const Real & val);
36
42 Real sampleFunction(const Real & t) const;
43
45 const Real & _initial_value;
47 const Real & _input;
49 Real _tau;
51 Real & _value;
53 std::deque<Real> & _input_time;
55 std::deque<Real> & _input_vals;
56
57public:
59};
Time delay control.
std::deque< Real > & _input_vals
Values of 'input' corresponding to _input_time.
virtual void execute()
std::deque< Real > & _input_time
Times when 'input' was sampled.
const Real & _input
Input data.
void addFnPoint(const Real &t, const Real &val)
Add a node to linear interpolation.
const Real & _initial_value
Initial value.
Real & _value
Output value.
Real sampleFunction(const Real &t) const
Linear interpolation.
static InputParameters validParams()
Real _tau
Time period.
const InputParameters & parameters() const