NANDRAD Data Model Library
Version 2.0
NANDRAD
|
Defines the daily course of one or more physical quantities/setpoints.
The m_interpolation parameter defines how the tabulated data is interpreted.
If m_interpolation == IT_CONSTANT, then the following rules apply:
For example, a time point vector "0 6 18" defines three intervals: 0-6, 6-18, 18-24 and the data table must contain exactly 3 values.
If m_interpolation == IT_LINEAR, then the following rules apply:
Definition at line 54 of file NANDRAD_DailyCycle.h.
#include <NANDRAD_DailyCycle.h>
Classes | |
struct | valueData_t |
This structure holds the data for a single parameter stored in this DailyCycle. More... | |
Public Types | |
enum | interpolation_t { IT_Constant, IT_Linear, NUM_IT } |
Interpolation method for daily cycle data. More... | |
Public Member Functions | |
NANDRAD_READWRITE void | prepareCalculation () |
Checks for valid parametrization and generates m_valueNames, m_valueUnits and m_valueData. More... | |
Public Attributes | |
interpolation_t | m_interpolation = NUM_IT |
Value interpolation method. More... | |
std::vector< double > | m_timePoints |
Time points in [h], must be strictly monotonically increasing, first must be 0, last must be less than 24. More... | |
DataTable | m_values |
Actual values, key of m_values.m_values is physical quantity/setpoint/... More... | |
std::vector< valueData_t > | m_valueData |
Extracted data of all variables. More... | |
Interpolation method for daily cycle data.
Note that for constant values some ramping may be used to smoothen out the steps. If not set, IT_LINEAR is used.
Enumerator | |
---|---|
IT_Constant | Constant values in defined intervals. |
IT_Linear | Linear interpolation between values. |
Definition at line 61 of file NANDRAD_DailyCycle.h.
NANDRAD_READWRITE void NANDRAD::DailyCycle::prepareCalculation | ( | ) |
Checks for valid parametrization and generates m_valueNames, m_valueUnits and m_valueData.
interpolation_t NANDRAD::DailyCycle::m_interpolation = NUM_IT |
Value interpolation method.
Definition at line 101 of file NANDRAD_DailyCycle.h.
std::vector<double> NANDRAD::DailyCycle::m_timePoints |
Time points in [h], must be strictly monotonically increasing, first must be 0, last must be less than 24.
Definition at line 104 of file NANDRAD_DailyCycle.h.
DataTable NANDRAD::DailyCycle::m_values |
Actual values, key of m_values.m_values is physical quantity/setpoint/...
scheduled quantity, value is vector with values, same number of values as in m_timePoints.
Definition at line 109 of file NANDRAD_DailyCycle.h.
std::vector<valueData_t> NANDRAD::DailyCycle::m_valueData |
Extracted data of all variables.
Definition at line 114 of file NANDRAD_DailyCycle.h.