Documentation of UrbanFireXDT
Documentation of UrbanFireXDT
Loading...
Searching...
No Matches
simulation_logic.h
Go to the documentation of this file.
1/*
2 * simulation_logic.h
3 *
4 * This contains all functions required for running the
5 * simulation, once it is created and the desired expansion
6 * scenario is introduced.
7 *
8 */
9
10#pragma once
11
12#include <iostream>
13#include <vector>
14
15#include "units.h"
16
17namespace simulation {
18
32 bool oneStep(const unsigned long ts,
33 const double totalBatteryCapacity_kWh,
34 CUControllerThreadGroupManager* thread_manager = NULL,
35 const char* output_prefix = "",
36 std::vector<ControlUnit*>* subsection = NULL);
37
50 bool runSimulationForOneParamSetting(CUControllerThreadGroupManager* thread_manager = NULL, std::vector<ControlUnit*>* subsection = NULL, const char* output_prefix = "");
51
59 bool runSimulationForAllVariations(const unsigned long scenario_id, CUControllerThreadGroupManager* thread_manager = NULL);
60
69 bool runSimulationFAVsAndSAC(float expansion_matrix_rel_freq[16][16], unsigned long expansion_matrix_abs_freq[16][16], const unsigned long scenario_id);
70
83 bool runCompleteSimulation(float expansion_matrix_rel_freq[16][16], unsigned long expansion_matrix_abs_freq[16][16], const unsigned long scenario_id);
84
85}
Definition worker_threads.hpp:33
Definition simulation_logic.h:17
bool oneStep(const unsigned long ts, const double totalBatteryCapacity_kWh, CUControllerThreadGroupManager *thread_manager=NULL, const char *output_prefix="", std::vector< ControlUnit * > *subsection=NULL)
Definition simulation_logic.cpp:111
bool runSimulationFAVsAndSAC(float expansion_matrix_rel_freq[16][16], unsigned long expansion_matrix_abs_freq[16][16], const unsigned long scenario_id)
Runs the complete simulation for all parameter variations and add sim. added components to the CUs.
Definition simulation_logic.cpp:419
bool runSimulationForAllVariations(const unsigned long scenario_id, CUControllerThreadGroupManager *thread_manager=NULL)
Definition simulation_logic.cpp:261
bool runSimulationForOneParamSetting(CUControllerThreadGroupManager *thread_manager=NULL, std::vector< ControlUnit * > *subsection=NULL, const char *output_prefix="")
Definition simulation_logic.cpp:34
bool runCompleteSimulation(float expansion_matrix_rel_freq[16][16], unsigned long expansion_matrix_abs_freq[16][16], const unsigned long scenario_id)
Definition simulation_logic.cpp:471