separated storage class in three, one abstract
This commit is contained in:
parent
b1d42ee00b
commit
c77b2254f1
|
@ -58,7 +58,8 @@ class EnergyStorageSystem(ABC):
|
||||||
@property
|
@property
|
||||||
def storage_type(self):
|
def storage_type(self):
|
||||||
"""
|
"""
|
||||||
Get storage type from ['electricity', 'thermal', 'chemical', 'lithium_ion', 'sensible', 'latent']
|
Get storage type from ['electricity', 'thermal', 'chemical',
|
||||||
|
'lithium_ion', 'lead_acid', 'NiCd', 'sensible', 'latent']
|
||||||
:return: string
|
:return: string
|
||||||
"""
|
"""
|
||||||
return self._storage_type
|
return self._storage_type
|
||||||
|
|
|
@ -19,18 +19,18 @@ class ThermalStorageSystem(EnergyStorageSystem):
|
||||||
volume, height, layers, maximum_operating_temperature):
|
volume, height, layers, maximum_operating_temperature):
|
||||||
|
|
||||||
super().__init__(storage_id, name, model_name, manufacturer, storage_type, nominal_capacity, losses_ratio)
|
super().__init__(storage_id, name, model_name, manufacturer, storage_type, nominal_capacity, losses_ratio)
|
||||||
self._physical_volume = volume
|
self._volume = volume
|
||||||
self._height = height
|
self._height = height
|
||||||
self._layers = layers
|
self._layers = layers
|
||||||
self._maximum_operating_temperature = maximum_operating_temperature
|
self._maximum_operating_temperature = maximum_operating_temperature
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def physical_volume(self):
|
def volume(self):
|
||||||
"""
|
"""
|
||||||
Get the physical volume of the storage system in cubic meters
|
Get the physical volume of the storage system in cubic meters
|
||||||
:return: float
|
:return: float
|
||||||
"""
|
"""
|
||||||
return self._physical_volume
|
return self._volume
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def height(self):
|
def height(self):
|
||||||
|
@ -69,7 +69,7 @@ class ThermalStorageSystem(EnergyStorageSystem):
|
||||||
'storage type': self.storage_type,
|
'storage type': self.storage_type,
|
||||||
'nominal capacity [J]': self.nominal_capacity,
|
'nominal capacity [J]': self.nominal_capacity,
|
||||||
'losses-ratio [J/J]': self.losses_ratio,
|
'losses-ratio [J/J]': self.losses_ratio,
|
||||||
'physical volume [m3]': self.physical_volume,
|
'volume [m3]': self.volume,
|
||||||
'height [m]': self.height,
|
'height [m]': self.height,
|
||||||
'layers': _layers,
|
'layers': _layers,
|
||||||
'maximum operating temperature [Celsius]': self.maximum_operating_temperature
|
'maximum operating temperature [Celsius]': self.maximum_operating_temperature
|
||||||
|
|
Loading…
Reference in New Issue
Block a user