Skip to content
Snippets Groups Projects
Commit 6e2f3d58 authored by Armin Co's avatar Armin Co
Browse files

Modell values

parent e86237e5
No related branches found
No related tags found
No related merge requests found
...@@ -13,9 +13,9 @@ SmartGridModel::SmartGridModel(HardwareControl &modell) ...@@ -13,9 +13,9 @@ SmartGridModel::SmartGridModel(HardwareControl &modell)
void SmartGridModel::update_wind() void SmartGridModel::update_wind()
{ {
auto base_wind = 9.0; auto base_wind = 500.0;
auto wind_by_sun = m_sun * 6.0; auto wind_by_sun = m_sun * 5.0;
auto random_wind = (((std::rand() * 1.0) / RAND_MAX) * 10.0) - 5.0; auto random_wind = (((std::rand() * 1.0) / RAND_MAX) * 100.0) - 50.0;
m_wind = base_wind + wind_by_sun + random_wind; m_wind = base_wind + wind_by_sun + random_wind;
} }
......
...@@ -101,7 +101,7 @@ private: ...@@ -101,7 +101,7 @@ private:
double calc_excess_power(); double calc_excess_power();
double m_solar_size{15}; ///< scale for solar power production double m_solar_size{15}; ///< scale for solar power production
double m_windpark_size{3.0}; ///< scale the power production by wind double m_windpark_size{1.50}; ///< scale the power production by wind
double m_village_size{10}; ///< scale how much power is used by the village double m_village_size{10}; ///< scale how much power is used by the village
int m_time{0}; int m_time{0};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment