![]() |
Documentation of UrbanFireXDT
Documentation of UrbanFireXDT
|
#include <components.h>

Public Member Functions | |
| ComponentBS (double maxE_kWh, double maxP_kW, double E_over_P_ratio, double discharge_rate_per_step, double efficiency_in, double efficiency_out, double initial_SoC) | |
| Default constructor if the battery should represent a large-scale or household-style battery system. | |
| ComponentBS (double maxE_kWh, double discharge_rate_per_step, double efficiency_in, double initial_SoC) | |
| Constructor to use if it is the battery of an EV. | |
| double | get_SOC () const |
| Returns the current state of charge of the battery. | |
| double | get_SOE () const |
| Returns the current amount of energy stored in the battery. Equivalent to ComponentBS::get_currentCharge_kWh(). | |
| double | get_currentCharge_kWh () const |
| Returns the charge of the battery (i.e. how much kWh are stored inside). Equivalent to ComponentBS::get_SOE(). | |
| double | get_currentLoad_kW () const |
| Returns the current load of the battery (from outside perspective). Positive values denotes battery charging, while negative values denote discharging. | |
| double | get_gridOnly_discharge_kW () const |
| Returns the amount of energy that is currently discharged, see ComponentBS::get_currentLoad_kW() if smaller 0.0, in kW that has been stored in the BS from the grid and not from surplus PV. With values from 0.0 to maxP. | |
| double | get_maxE_kWh () const |
| Returns the maximum available capacity of the battery. For the current state of energy / charge, see ComponentBS::get_SOC() and ComponentBS::get_SOE(). | |
| double | get_maxP_kW () const |
| Returns the maximum available capacity of the battery. For the current power, see ComponentBS::get_currentLoad_kW(). | |
| double | get_current_EFC () const |
| Returns the equivalent full cycles (EFC) | |
| double | get_cweek_EFC () const |
| Returns the equivalent full cycles (EFC) for the current week only. | |
| unsigned long | get_n_ts_empty () const |
| Returns the number of time steps where the battery is empty. | |
| unsigned long | get_n_ts_full () const |
| Returns the number of time steps where the battery is fully charged. | |
| double | get_cweek_withdrawn_E_kWh () const |
| Returns the total energy that is taken from the battery from the beginning of the current week until now. | |
| double | get_total_withdrawn_E_kWh () const |
| Returns the total energy that is taken from the battery from the beginning of the simulation run until now. | |
| double | get_cweek_withdrawn_E_gridOnly_kWh () const |
| Returns the total energy that is taken from the battery and that was initially charged from the grid (not PV!) from the beginning of the current week until now. | |
| double | get_total_withdrawn_E_gridOnly_kWh () const |
| Returns the total energy that is taken from the battery and that was initially charged from the grid (not PV!) from the beginning of the simulation run until now. | |
| void | set_chargeRequest (double requested_charge_kW) |
| void | set_grid_charged_amount (double grid_charged_kW) |
| Sets the amount that has been charged from the grid (and not from the PV) for the current step. Must be executed AFTER ComponentBS::calculateActions() has been called. This call is optional, but at maximum it must not be called more than once, before calculateActions() is called again! | |
| void | set_maxE_kWh (double value) |
| void | set_maxP_kW (double value) |
| void | set_maxP_by_EPRatio (double EP_ratio) |
| void | calculateActions () |
| void | resetWeeklyCounter () |
| Resets the internal, weekly counters. | |
| void | resetInternalState () |
| Resets the internal simulation state (like counters), but retains the structural state like attached sub-components. | |
Public Member Functions inherited from BaseComponent | |
| virtual | ~BaseComponent () |
Protected Member Functions | |
| void | set_SOE_without_computations (double new_SOE_kWh) |
| Changes the current SOE without updating other internal variables! Should only be used by class EVFSM for the pre-computation! | |
Friends | |
| class | EVFSM |
| ComponentBS::ComponentBS | ( | double | maxE_kWh, |
| double | maxP_kW, | ||
| double | E_over_P_ratio, | ||
| double | discharge_rate_per_step, | ||
| double | efficiency_in, | ||
| double | efficiency_out, | ||
| double | initial_SoC | ||
| ) |
Default constructor if the battery should represent a large-scale or household-style battery system.
| ComponentBS::ComponentBS | ( | double | maxE_kWh, |
| double | discharge_rate_per_step, | ||
| double | efficiency_in, | ||
| double | initial_SoC | ||
| ) |
Constructor to use if it is the battery of an EV.
| void ComponentBS::calculateActions | ( | ) |
|
inline |
Returns the equivalent full cycles (EFC)
|
inline |
Returns the charge of the battery (i.e. how much kWh are stored inside). Equivalent to ComponentBS::get_SOE().
|
inline |
Returns the current load of the battery (from outside perspective). Positive values denotes battery charging, while negative values denote discharging.
|
inline |
Returns the equivalent full cycles (EFC) for the current week only.
|
inline |
Returns the total energy that is taken from the battery and that was initially charged from the grid (not PV!) from the beginning of the current week until now.
|
inline |
Returns the total energy that is taken from the battery from the beginning of the current week until now.
|
inline |
Returns the amount of energy that is currently discharged, see ComponentBS::get_currentLoad_kW() if smaller 0.0, in kW that has been stored in the BS from the grid and not from surplus PV. With values from 0.0 to maxP.
|
inline |
Returns the maximum available capacity of the battery. For the current state of energy / charge, see ComponentBS::get_SOC() and ComponentBS::get_SOE().
|
inline |
Returns the maximum available capacity of the battery. For the current power, see ComponentBS::get_currentLoad_kW().
|
inline |
Returns the number of time steps where the battery is empty.
|
inline |
Returns the number of time steps where the battery is fully charged.
|
inline |
Returns the current state of charge of the battery.
|
inline |
Returns the current amount of energy stored in the battery. Equivalent to ComponentBS::get_currentCharge_kWh().
|
inline |
Returns the total energy that is taken from the battery and that was initially charged from the grid (not PV!) from the beginning of the simulation run until now.
|
inline |
Returns the total energy that is taken from the battery from the beginning of the simulation run until now.
|
virtual |
Resets the internal simulation state (like counters), but retains the structural state like attached sub-components.
Implements BaseComponent.
|
virtual |
Resets the internal, weekly counters.
Implements BaseComponent.
|
inline |
| void ComponentBS::set_grid_charged_amount | ( | double | grid_charged_kW | ) |
Sets the amount that has been charged from the grid (and not from the PV) for the current step. Must be executed AFTER ComponentBS::calculateActions() has been called. This call is optional, but at maximum it must not be called more than once, before calculateActions() is called again!
| void ComponentBS::set_maxE_kWh | ( | double | value | ) |
| void ComponentBS::set_maxP_by_EPRatio | ( | double | EP_ratio | ) |
| void ComponentBS::set_maxP_kW | ( | double | value | ) |
|
protected |
Changes the current SOE without updating other internal variables! Should only be used by class EVFSM for the pre-computation!
|
friend |