modelElectricalPowerController_inner

Diagram of ElectricalPowerController_inner

Extends from TransiEnt.Basics.Icons.SystemOperator.

Information

1. Purpose of model

This model is used for the control of the electrical power. Via the parameters MeritOrderPositionPtG etc. the merit order for the assignment of electrical surplus can be changed. A more detailed documentation can be find in the word document.

2. Level of detail, physical effects considered, and physical insight

(Description)

3. Limits of validity

(Description)

4. Interfaces

(none)

5. Nomenclature

(no elements)

6. Governing Equations

(no equations)

7. Remarks for Usage

(none)

8. Validation

(no validation or testing necessary)

9. References

(none)

10. Version History

Model created by Oliver Schülting (oliver.schuelting@tuhh.de), Nov 2020

Parameters

TypeNameDefaultDescription
Integern_PowerPlantNumberOfPowerplantsOverAllRegionsNumber of plants
IntegerRegionamount of regions
SI.Power[n_PowerPlant]P_min_const_PowerPlantminimum power of power plants; is >=0
SI.Power[n_PowerPlant]P_max_const_PowerPlantP_nom_PowerPlantminimum power of power plants; is >=0
SI.Power[n_PowerPlant]P_nom_PowerPlantnominal power of power plants
Integern_ElectricalStoragemax(NumberOfElectricalStoragesOverAllRegions, 1)amount of electrical storages, =1 if no storages
SI.Power[n_ElectricalStorage]P_nom_load_ElectricalStoragenominal loading power of electrical storages
SI.Power[n_ElectricalStorage]P_nom_unload_ElectricalStoragenominal unloading power of electrical storages
Integern_PtGmax(NumberOfPowerToGasPlantsOverAllRegions, 1)amount of PtG-plants
SI.Power[n_PtG]P_nom_load_PtGnominal power of PtG-plants
Integern_ElectricalHeaterRegionmaximum amount of electrical heater
Integern_ElectricalHeater2max(NumberOfElectricalHeatersOverAllRegions, 1)actual amount of electrical heater
SI.PowerP_threshold_residual_ElectricalStorage1e-3numerical value to avoid chattering
SI.PowerP_threshold_residual_ElectricalHeater1e-3numerical value to avoid chattering
SI.PowerP_threshold_residual_PtGP_nom_load_PtG[1]*1e-7numerical value to avoid chattering
SI.PowerP_threshold_residual_PowerPlant1e3numerical value to avoid chattering
BooleanuseDecentralizedPowerControltrueif 'false', regional residual loads are not considered for power control
Modelica.Units.SI.TimestartTime0start time for simulation
Modelica.Units.SI.TimeMinimumSwitchTimePowerPlants120Minimum time for power plants to be turned on or off (for numerical reasons)
IntegerMaximumDifferentTypesOfPowerPlants
IntegerNumberOfPowerplantsOverAllRegions
IntegerNumberOfPowerToGasPlantsOverAllRegions
IntegerNumberOfElectricalStoragesOverAllRegions
IntegerNumberOfElectricalHeatersOverAllRegions
Integer[n_PowerPlant]powerPlantTypeDefinitiontype of powerplant (supports only Gasturbine (1) and CCGT (2)); 1Dim; has to be the opposite as powerPlantMatrix[:,2]!
Integer[NumberOfPowerplantsOverAllRegions,2]powerPlantMatrixpowerplant: Column 1=Region, Column 2= TypeNumber ; 2Dim
MeritOrder Position
IntegerMeritOrderPositionElectricalStorage1Electric Storages
IntegerMeritOrderPositionPtG4Power-to-Gas
IntegerMeritOrderPositionElectricalHeater2Electric Heater (District Heating)

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealOutput[n_PowerPlant]P_set_PowerPlant
Modelica.Blocks.Interfaces.RealOutput[n_ElectricalStorage]P_set_Storage
Modelica.Blocks.Interfaces.RealOutput[n_PtG]P_set_PtG
Modelica.Blocks.Interfaces.RealInput[max(1, n_ElectricalStorage)]P_is_ElectricalStorage
Modelica.Blocks.Interfaces.RealInput[max(1, n_ElectricalStorage)]P_max_load_ElectricalStorage
Modelica.Blocks.Interfaces.RealInput[max(1, n_ElectricalStorage)]P_max_unload_ElectricalStorage
Modelica.Blocks.Interfaces.RealInput[n_ElectricalHeater]P_max_ElectricalHeater
Modelica.Blocks.Interfaces.RealOutput[n_ElectricalHeater]P_set_ElectricalHeater
Modelica.Blocks.Interfaces.RealInput[max(1, n_PtG)]P_is_PowerToGasPlant
Modelica.Blocks.Interfaces.RealInput[Region]P_renewable
Modelica.Blocks.Interfaces.RealOutput[Region]P_curtailment_Region
Modelica.Blocks.Interfaces.RealInput[Region]P_is_PowerPlant
Modelica.Blocks.Interfaces.RealInput[n_PowerPlant]P_max_input_PowerPlant
Modelica.Blocks.Interfaces.RealInput[Region]P_residual_Region
Modelica.Blocks.Interfaces.RealInput[max(1, n_PtG)]P_DAC
Modelica.Blocks.Interfaces.RealInputf_grid

Components

TypeNameDefaultDescription
TransiEnt.SimCentersimCenter
TransiEnt.ModelStatisticsmodelStatistics
Integer[n_ElectricalStorage]regionOfElectricalStorage
Integer[n_PtG]regionOfPtGPlant
Integer[n_ElectricalHeater]regionOfElectricalHeater
Integer[n_PowerPlant]regionOfPowerPlant
SI.Power[n_PowerPlant]P_max_sorted_sum_PowerPlant
SI.Power[n_PowerPlant]P_max_mod_sorted_sum_PowerPlant
SI.Power[n_ElectricalHeater]P_max_sorted_sum_ElectricalHeater
SI.Power[n_ElectricalHeater]P_max_mod_sorted_sum_ElectricalHeater
SI.Power[n_ElectricalHeater]P_max_mod_ElectricalHeater
SI.Power[n_ElectricalHeater]P_residual_single_ElectricalHeater
SI.Power[n_ElectricalHeater]P_residual_single_mod_ElectricalHeater
SI.Power[n_ElectricalHeater]P_residual_single_decentral_ElectricalHeater
Modelica.Units.SI.PowerP_total
Modelica.Units.SI.PowerP_total_set
Modelica.Units.SI.PowerP_total_is
Modelica.Units.SI.PowerP_total_PowerPlant
Modelica.Units.SI.PowerP_total_PowerPlant_is
Modelica.Units.SI.PowerP_total_ElectricalStorage
Modelica.Units.SI.PowerP_total_ElectricalHeater
Modelica.Units.SI.PowerP_total_PtG
Modelica.Units.SI.PowerP_total_RE
Modelica.Units.SI.PowerP_total_RE_curtailed
Modelica.Units.SI.PowerP_curtailment
Modelica.Units.SI.PowerP_excess
Modelica.Units.SI.Power[n_PowerPlant]P_max_PowerPlant
Modelica.Units.SI.Power[n_PowerPlant]P_min_PowerPlant
Modelica.Units.SI.Power[n_PowerPlant,2]P_set_decentral_PowerPlant_Type
Modelica.Units.SI.Power[n_PowerPlant,2]P_max_PowerPlant_Type
Modelica.Units.SI.Power[n_PowerPlant,2]P_set_mod_PowerPlant_type_sum
SI.Power[n_ElectricalStorage]P_max_unload_sorted_ElectricalStorage
SI.Power[n_ElectricalStorage]P_max_unload_sorted_sum_ElectricalStorage
SI.Power[n_ElectricalStorage]P_max_load_sorted_ElectricalStorage
SI.Power[n_ElectricalStorage]P_max_load_sorted_sum_ElectricalStorage
SI.Power[n_ElectricalStorage]P_sum_sorted_ElectricalStorage
Modelica.Units.SI.Power[n_PtG]P_max_load_sorted_PtG
Modelica.Units.SI.Power[n_PtG]P_max_load_sorted_sum_PtG
Modelica.Units.SI.PowerP_residual_PtG
Modelica.Units.SI.Power[3]P_residual_single
Modelica.Units.SI.Power[3]P_is
Modelica.Units.SI.PowerP_residual_ElectricalStorage
Modelica.Units.SI.PowerP_residual_ElectricalHeater
Modelica.Units.SI.PowerP_residual_PowerPlants
Modelica.Units.SI.Power[n_PtG]P_is_sorted_sum_PowerToGasPlant
SI.Power[n_PtG]P_residual_single_mod_PtG
SI.Power[n_PtG]P_residual_single_decentral_PtG
SI.Power[n_PowerPlant]P_residual_single_mod_PowerPlant
SI.Power[n_PowerPlant]P_residual_single_decentral_PowerPlant
SI.PowerP_residual_PowerPlants_type1
SI.PowerP_residual_PowerPlants_type2
SI.PowerP_residual_PowerPlants_mod_type1
SI.PowerP_residual_PowerPlants_mod_type2
Modelica.Units.SI.PowerP_residual_total_with_SRL
Modelica.Units.SI.Power[3]P_threshold_residual
SI.Power[Region]P_excess_Region_PowerPlant
SI.Power[Region,max(1, MaximumDifferentTypesOfPowerPlants)]P_excess_Region_PowerPlant_2Dim
SI.Power[Region]P_decentral_ElectrialStorage_Region
SI.Power[Region]P_decentral_PtG_Region
SI.Power[Region,3]P_residual_Region_decentralControl
SI.Power[Region]P_residual_Region_decentralControl_PowerPlant
SI.Power[Region]P_residual_Region_decentralControl_potentialcurtailment
SI.Power[Region]P_decentral_ElectricHeater_Region
SI.Power[Region,3]P_decentral_Region
SI.Power[n_PowerPlant]P_set_decentral_PowerPlant
SI.Power[n_PowerPlant]P_set_mod_PowerPlant
SI.Power[n_PowerPlant,2]P_set_decentral_sum_PowerPlant_type
SI.Power[n_PowerPlant]P_min_mod_PowerPlant
SI.Power[n_PowerPlant]P_max_mod_PowerPlant
SI.Power[Region,max(1, MaximumDifferentTypesOfPowerPlants)]P_set_decentral_powerPlant_Region
SI.Power[n_PtG]P_set_decentral_PtG
SI.Power[n_PtG]P_set_decentral_sum_PtG
SI.Power[n_PtG]P_set_mod_PtG
SI.Power[n_ElectricalStorage]P_residual_single_mod_ElectricalStorage
SI.Power[n_ElectricalStorage]P_residual_single_decentral_ElectricalStorage
SI.Power[n_ElectricalStorage]P_set_decentral_sum_ElectricalStorage
SI.Power[n_ElectricalStorage]P_set_decentral_ElectricalStorage
SI.Power[n_ElectricalStorage]P_set_mod_ElectricalStorage
SI.Power[n_ElectricalStorage]P_max_unload_sorted_mod_ElectricalStorage
SI.Power[n_ElectricalStorage]P_max_load_sorted_mod_ElectricalStorage
SI.Power[n_ElectricalHeater]P_set_decentral_ElectricalHeater
SI.Power[n_ElectricalHeater]P_set_decentral_sum_ElectricalHeater
SI.Power[n_ElectricalHeater]P_set_mod_ElectricalHeater
SI.Power[n_PowerPlant]P_set_PowerPlant_
Real[3]Counter_P_residual_single
Real[n_PowerPlant]Counter_PowerPlant_OnTime
Real[n_PowerPlant]Counter_PowerPlant_OffTime
Boolean[n_ElectricalStorage]hysteresis_ElectricalStorage
Boolean[n_PowerPlant]hysteresis_PowerPlant1
Boolean[n_PowerPlant]hysteresis_PowerPlant2
Boolean[n_PowerPlant]hysteresis_PowerPlant3
Boolean[n_PowerPlant]hysteresis_PowerPlant4
SI.PowerP_residual_total
TransiEnt.Basics.Blocks.LimPIDPI_SRL
Modelica.Blocks.Sources.RealExpressionrealExpression1