modelElectricalPowerController_outer

Controller for superstructure masks, currently supports only 2 types of power plants

Extends from TransiEnt.Basics.Icons.Controller (Icon for controller).

Information

1. Purpose of model

This model is intended to hand over variables from input to the inner controller and vice versa. The structure of the variables is changed in some cases to allow an easier control.

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
IntegerMaximumDifferentTypesOfPowerPlants
IntegerMaximumDifferentTypesOfElectricalStorages
IntegerMaximumDifferentTypesOfPtG
IntegerNumberOfPowerplantsOverAllRegions
IntegerNumberOfElectricalStoragesOverAllRegions
IntegerNumberOfPowerToGasPlantsOverAllRegions
IntegerNumberOfElectricalHeatersOverAllRegions
Integer[nRegions]DifferentTypesOfPowerPlants{powerPlantInstancesRecord[i].nPowerPlants for i in 1:nRegions}Amount of different power plant types
Integer[nRegions]DifferentTypesOfPowerToGasPlants{powerToGasInstancesRecord[i].nPowerToGasPlants for i in 1:nRegions}Amount of different power to gas plant types
Integer[nRegions]DifferentTypesOfGasStorage{gasStorageInstancesRecord[i].nGasStorages for i in 1:nRegions}Amount of different gas storage types
Modelica.Units.SI.Pressurep_min_operating_PowerPlants1e5gas pressure threshold at which powerplants turn off
Modelica.Units.SI.Pressurep_min_operating_PowerPlants_backin2e5gas pressure threshold at which powerplants turn back on after turning off
IntegernRegions3
Integer[max(1, NumberOfPowerplantsOverAllRegions),2]powerPlantMatrix
Integer[max(1, NumberOfElectricalStoragesOverAllRegions),2]electricalStorageMatrix
Integer[max(1, NumberOfPowerToGasPlantsOverAllRegions),2]ptGMatrix
Integer[max(1, NumberOfElectricalHeatersOverAllRegions),2]electricalHeaterMatrix
Modelica.Units.SI.Power[max(1, NumberOfPowerplantsOverAllRegions)]P_nom_PowerPlantnominal power of power plants
Modelica.Units.SI.Power[max(1, NumberOfPowerplantsOverAllRegions)]P_min_const_PowerPlantminimum power of power plants
Modelica.Units.SI.Power[max(1, NumberOfPowerplantsOverAllRegions)]P_max_const_PowerPlantminimum power of power plants
Modelica.Units.SI.Power[max(1, NumberOfElectricalStoragesOverAllRegions)]P_nom_load_ElectricalStorage_inputnominal loading power of electrical storages
Modelica.Units.SI.Power[max(1, NumberOfElectricalStoragesOverAllRegions)]P_nom_unload_ElectricalStorage_inputnominal unloading power of electrical storages
Modelica.Units.SI.Power[max(1, NumberOfPowerToGasPlantsOverAllRegions)]P_nom_load_PtG_inputnominal power of PtG-plants
General
Integer[nRegions]Region1:nRegionsDefine Region Numbers
GasGrid
Modelica.Units.SI.Pressure[nRegions]p_gasGrid_desiredfill(simCenter.p_amb_const + simCenter.p_eff_2, nRegions)desired gas grid pressure in region
Modelica.Units.SI.PressureDifference[nRegions]p_gasGrid_desired_bandwidthfill(0, nRegions)band width around p_gasGrid_desired in which the set value varies depending on the SOC of the gas storage
Technology Parametrization › Power To Gas
Boolean[nRegions]useHydrogenFromPtGInPowerPlantsfill(false, nRegions)Hydrogen from PtG is fed directly into powerplants
Integer[nRegions]usageOfWasteHeatOfPtGfill(1, nRegions)Waste heat usage of PtG: 1=No usage, 2=CO2 Desorption, 3=DistrictHeating(currently disabled)
.TransiEnt.SystemGeneration.Superstructure.Portfolios.Portfolio_Example.Records.InstancesRecords.PowerToGasInstancesRecordpowerToGasInstancesRecordpowerToGasInstancesRecordRegionInfoPtG system parametrization
Technology Parametrization › Powerplants
.TransiEnt.SystemGeneration.Superstructure.Portfolios.Portfolio_Example.Records.InstancesRecords.PowerPlantInstancesRecord[nRegions]powerPlantInstancesRecordpowerPlantInstancesRecordRegionInfoPower plant parametrization
Technology Parametrization › Gas Storages
.TransiEnt.SystemGeneration.Superstructure.Portfolios.Portfolio_Example.Records.InstancesRecords.GasStorageInstancesRecord[nRegions]gasStorageInstancesRecordgasStorageInstancesRecordRegionInfoGas Storage parametrization
MeritOrder Position
IntegerMeritOrderPositionElectricStorages1Electric Storages
IntegerMeritOrderPositionPowerToGas4Power-to-Gas
IntegerMeritOrderPositionElectricHeater2Electric Heater (District Heating)

Connectors

TypeNameDefaultDescription
MasterBusmasterBus

Components

TypeNameDefaultDescription
TransiEnt.SimCentersimCenter
Modelica.Blocks.Routing.RealPassThrough[nRegions,MaximumDifferentTypesOfPowerPlants]P_set_PowerPlant
Modelica.Blocks.Routing.RealPassThrough[nRegions,MaximumDifferentTypesOfElectricalStorages]P_set_ElectricalStorage
Modelica.Blocks.Routing.RealPassThrough[nRegions,max(1, MaximumDifferentTypesOfPtG)]P_set_PtG
Modelica.Blocks.Routing.RealPassThrough[nRegions]P_curtailment_Region
Modelica.Blocks.Routing.RealPassThrough[nRegions]P_set_ElectricalHeater
Modelica.Blocks.Routing.RealPassThrough[nRegions,MaximumDifferentTypesOfElectricalStorages]P_max_load_storage
Modelica.Blocks.Routing.RealPassThrough[nRegions,MaximumDifferentTypesOfElectricalStorages]P_max_unload_storage
Modelica.Blocks.Routing.RealPassThrough[nRegions,MaximumDifferentTypesOfElectricalStorages]P_storage_is
Modelica.Blocks.Routing.RealPassThrough[nRegions]P_ElectricalHeater_max
Modelica.Blocks.Routing.RealPassThrough[nRegions]P_PowerToGasPlant_is
Modelica.Blocks.Routing.RealPassThrough[nRegions]P_renewable
Modelica.Blocks.Routing.RealPassThrough[nRegions]P_PowerPlant_is
Modelica.Blocks.Routing.RealPassThrough[nRegions,MaximumDifferentTypesOfPowerPlants]P_PowerPlant_max
Modelica.Blocks.Routing.RealPassThrough[nRegions]P_residual_Region
Modelica.Blocks.Routing.RealPassThrough[nRegions]P_DAC
Modelica.Blocks.Sources.RealExpression[nRegions,MaximumDifferentTypesOfPowerPlants]P_set_PowerPlant_nonExistent
Modelica.Blocks.Sources.RealExpression[nRegions,MaximumDifferentTypesOfElectricalStorages]P_set_ElectricalStorage_nonExistent
Modelica.Blocks.Sources.RealExpression[nRegions,max(1, MaximumDifferentTypesOfPtG)]P_set_PtG_nonExistent
Modelica.Blocks.Sources.RealExpressionZero
Modelica.Blocks.Math.Gain[mod.n_PowerPlant]P_set_PowerPlants_mod
TransiEnt.SystemGeneration.Superstructure.Components.Controller.ElectricalPowerController_innermod
Modelica.Blocks.Math.Gain[mod.n_ElectricalStorage]P_set_ElectricalStorages_mod
RegionalController[nRegions]regionalController