| 348 | } |
| 349 | |
| 350 | boost::optional<openstudio::TimeSeries> SimFile::pathFlow(int nr) const { |
| 351 | int index = indexOf(m_pathNr, nr); |
| 352 | if (index == -1) { |
| 353 | return {}; |
| 354 | } |
| 355 | std::vector<double> flow(m_dateTimes.size()); |
| 356 | for (unsigned i = 0; i < m_dateTimes.size(); i++) { |
| 357 | flow[i] = m_F0[index][i] + m_F1[index][i]; |
| 358 | } |
| 359 | // Need to confirm that the total flow is F0+F1, since it also could be F0-F1 |
| 360 | openstudio::TimeSeries series = convertData(m_dateTimes, flow, "kg/s"); |
| 361 | return boost::optional<openstudio::TimeSeries>(series); |
| 362 | } |
| 363 | |
| 364 | boost::optional<openstudio::TimeSeries> SimFile::nodeTemperature(int nr) const { |
| 365 | int index = indexOf(m_nodeNr, nr); |
no test coverage detected