modelSuperstructure
Extends from TransiEnt.Basics.Icons.SuperstructureIcon.
Information
1. Purpose of model
The superstructure component provides a representation of a certain region in terms of consumption and production of power and gas. This representation is comprised of multiple elements that connect with the central electric and gas ports and either consume or generate gas or electrical power. Superstructures are to be used as arrays enclosed in superstructure portolio masks for maximum utilization.
See usage guide for more information.
2. Level of detail, physical effects considered, and physical insight
(no remarks)
3. Limits of validity
(no remarks)
4. Interfaces
Outputs:
- epp: complex electric power port
- gasPort: gas port
- P_renewable: output current renewable power
- P_max_unload_storage: output current electrical storage maximum unload power
- P_max_load_storage: output current electrical storage maximum load power
- P_storage_is: output current electrical storage power
- P_PowerToGasPlant_is: output current power to gas plants consumed power
- P_PowerPlant_max: output current powerplant relative potential power output
- P_PowerPlant_is: output current powerplant power in each region
- P_ElectricalHeater_max: output current potential of local heating grid power to heat
- P_DAC: output current direct air capture power consumption
Inputs:
- P_curtailment: input current curtailment of renewables setpoint
- P_set_ElectricalHeater: input local heating grid power to heat setpoint
- P_set_ElectricalStorage: input current electrical storage setpoint power
- P_set_PowerPlant: input current power plant setpoint power
- P_set_PtG: input current power to gas setpoint power
5. Nomenclature
(no remarks)
6. Governing Equations
(no remarks)
7. Remarks for Usage
(no remarks)
8. Validation
(no remarks)
9. References
(no remarks)
10. Version History
Model created by Oliver Schülting (oliver.schuelting@tuhh.de), Nov 2020
Model redesigned by Jon Babst (babst@xrg-simulation.de), 06.09.2021
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | Region | 1 | Define Region Number |
| Integer | DifferentTypesOfPowerPlants | 0 to x | |
| Integer | DifferentTypesOfCHPPlants | 0 or 1 | |
| Integer | DifferentTypesOfElectricalStorages | 0 to x | |
| Integer | DifferentTypesOfPowerToGasPlants | 0 or 1 | |
| Integer | DifferentTypesOfElectricHeater | 0 or 1 | |
| Integer | DifferentTypesOfGasBoiler | 0 or 1 | |
| Integer | DifferentTypesOfGasStorage | 0 or 1 | |
| Boolean | CHPPlantsInThisRegion | if DifferentTypesOfCHPPlants > 0 then true else false | true, if CHP plants exist in region |
| Boolean | ElectricalHeaterInThisRegion | if DifferentTypesOfElectricHeater > 0 then true else false | true, if electrical heater exist in region |
| Boolean | PowerPlantsInThisRegion | if DifferentTypesOfPowerPlants > 0 then true else false | true, if power plants exist in region |
| Boolean | PowerToGasPlantsInThisRegion | if DifferentTypesOfPowerToGasPlants > 0 then true else false | true, if power to gas plants exist in region |
| Boolean | ElectricalStoragesInThisRegion | if DifferentTypesOfElectricalStorages > 0 then true else false | true, if electrical storages exist in region |
| Boolean | GasBoilerInThisRegion | if DifferentTypesOfGasBoiler > 0 then true else false | true, if gas boiler exist in region |
| Boolean | GasStorageInThisRegion | if DifferentTypesOfGasStorage > 0 then true else false | true, if gas storages exist in region |
| Boolean | useVariableHydrogenFraction | false | |
| TILMedia.VLEFluidTypes.BaseVLEFluid | medium_CO2 | simCenter.gasModel1 | CO2 model to be used |
| Modelica.Units.SI.MassFlowRate | m_flow_small | 0.1 | small leakage mass flow for numerical stability |
| Integer | slackBoundaryPosition | Indices [Region, MaxDifferentTypesOfPowerplants] of where the epp slack boundary is positioned | |
| Boolean | ptGTypeIsMethanation | if PowerToGasPlantsInThisRegion == false then false else not (powerToGasInstancesRecord.powerToGasType == Config.PowerToGasType(1) or powerToGasInstancesRecord.powerToGasType == Config.PowerToGasType(2) or powerToGasInstancesRecord.powerToGasType == Config.PowerToGasType(3)) | |
| Boolean | CCSInPowerPlants | if PowerPlantsInThisRegion == false then false elseif max(powerPlantInstancesRecord.powerPlantRecord[:].CO2_Deposition_Rate) > 0 then true else false | |
| SI.Pressure | p_min_operating_PowerPlants | 1e5 | gas pressure threshold at which powerplants turn off |
| SI.Pressure | p_min_operating_PowerPlants_backin | 2e5 | gas pressure threshold at which powerplants turn back on after turning off |
| SI.Pressure | p_min_operating_localDemand | 1e5 | gas pressure threshold at which local consumers turn off |
| SI.Pressure | p_min_operating_localDemand_backin | 2e5 | gas pressure threshold at which powerplants turn back on after turning off |
| String | localElectricDemand_pathToTable | ||
| Real | localElectricDemand_constantMultiplier | 1.0 | Multiply output with constant factor |
| String | localGasDemand_pathToTable | ||
| Real | localGasDemand_constantMultiplier | 1.0 | Multiply output with constant factor |
| String | localSolarthermalProduction_pathToTable | ||
| Real | localSolarthermalProduction_constantMultiplier | 1.0 | Multiply output with constant factor |
| String | localTemperature_pathToTable | ||
| Real | localTemperature_constantMultiplier | 1.0 | Multiply output with constant factor |
| String | localHeatDemand_pathToTable | ||
| Real | localHeatDemand_constantMultiplier | 1.0 | Multiply output with constant factor |
| String | localBiogasProduction_pathToTable | ||
| Real | localBiogasProduction_constantMultiplier | 1.0 | Multiply output with constant factor |
| String | localWindOffshoreProduction_pathToTable | ||
| Real | localWindOffshoreProduction_constantMultiplier | 1.0 | Multiply output with constant factor |
| String | localBiomassProduction_pathToTable | ||
| Real | localBiomassProduction_constantMultiplier | 1.0 | Multiply output with constant factor |
| String | localPhotovoltaicProduction_pathToTable | ||
| Real | localPhotovoltaicProduction_constantMultiplier | 1.0 | Multiply output with constant factor |
| String | localWindOnshoreProduction_pathToTable | ||
| Real | localWindOnshoreProduction_constantMultiplier | 1.0 | Multiply output with constant factor |
| Integer | connectLocalDemand | 1 | |
| Integer | connectlocalRenewableProduction | 2 | |
| Integer | connectGasStorages | 3 | |
| Integer | connectPowerToGas | if GasStorageInThisRegion then 4 else 3 | |
| Integer | connectPowerPlants | if GasStorageInThisRegion and PowerToGasPlantsInThisRegion then 5 elseif GasStorageInThisRegion or PowerToGasPlantsInThisRegion then 4 else 3 | |
| Fundamental Definitions | |||
| TILMedia.VLEFluidTypes.BaseVLEFluid | medium | simCenter.gasModel1 | Gas model to be used |
| TILMedia.VLEFluidTypes.BaseVLEFluid | medium_Hydrogen | simCenter.gasModel3 | Hydrogen model zo be used |
| PowerPlants/PtG | |||
| Boolean | useHydrogenFromPtGInPowerPlants | false | |
| Boolean | CO2NeededForPowerToGas | if PowerToGasPlantsInThisRegion == false then false elseif ptGTypeIsMethanation then true else false | |
| Real | CO2StorageNeeded | if PowerToGasPlantsInThisRegion == false and CCSInPowerPlants == false then 0 elseif CO2NeededForPowerToGas or CCSInPowerPlants == true then 1 else 0 | |
| Integer | usageOfWasteHeatOfPtG | 1 | Waste heat usage of PtG |
| Real | splitHeatingDemand_heatingGrid | 1 - splitHeatingDemand_heatingGrid | Fraction of table data values referring to the heating grid |
| Real | splitHeatingDemand_localHeating | 1 | Fraction of table data values referring to local heating |
| HeatingGrid | |||
| Modelica.Units.NonSI.Temperature_degC | T_supply_max_districtHeating | 149 | |
| Modelica.Units.NonSI.Temperature_degC | T_return_min_districtHeating | 49 | |
| GasGrid | |||
| Modelica.Units.SI.Pressure | p_gasGrid_desired | simCenter.p_amb_const + simCenter.p_eff_2 | desired gas grid pressure in region |
| Modelica.Units.SI.PressureDifference | p_gasGrid_desired_bandwidth | 0 | band width around p_gasGrid_desired in which the set value varies depending on the SOC of the gas storage |
| Integer | NeededGasPortsForJunction | integer(3 + TransiEnt.Basics.Functions.boolean2integer(PowerToGasPlantsInThisRegion) + nPowerPlants + TransiEnt.Basics.Functions.boolean2integer(GasStorageInThisRegion) + TransiEnt.Basics.Functions.boolean2integer(ElectricalHeaterInThisRegion or CHPPlantsInThisRegion)) | |
| Modelica.Units.SI.MassFraction[max(simCenter.gasModel1.nc - 1, 1)] | xi_const_noZeroMassFlow | if simCenter.gasModel1.nc == 1 then {1} elseif simCenter.gasModel1.nc == 2 then {1} else {0.85883115, 0.06193993, 0.01007228, 0.00201834, 0.04370946, 0.02342884} | |
| Boolean | useOneGasPortOnly | true | |
| Integer | n_gasPort | if useOneGasPortOnly then 1 else 6 | |
| Boolean | useImportExportBoundary | false | useOneGasPortOnly has to be turned on for this |
| Real | junctionVolume | 10676.7 | Central gas volume if useOneGasPortOnly |
| GasPortSplitter | |||
| Integer | n_gasPortOut_powerPlants | 1 | |
| Integer | n_gasPortOut_localDemand | 1 | |
| Real[max(1, n_gasPortOut_powerPlants)] | splitRatio_powerPlants | {0.1} | |
| Real[max(1, n_gasPortOut_localDemand)] | splitRatio_localDemand | {0.1} | |
| Records › Electrical Storages | |||
| Config.Records.InstancesRecords.ElectricalStorageInstancesRecord | electricalStorageInstancesRecord | Config.Records.InstancesRecords.ElectricalStorageInstancesRecord() | |
| Records › Gas Storages | |||
| Config.Records.InstancesRecords.GasStorageInstancesRecord | gasStorageInstancesRecord | Config.Records.InstancesRecords.GasStorageInstancesRecord() | |
| Records › Power Plants | |||
| Integer | nPowerPlants | powerPlantInstancesRecord.nPowerPlants | |
| Config.Records.InstancesRecords.PowerPlantInstancesRecord | powerPlantInstancesRecord | Config.Records.InstancesRecords.PowerPlantInstancesRecord() | |
| Records › Local Demand | |||
| Config.Records.InstancesRecords.LocalDemandInstancesRecord | localDemandInstancesRecord | Config.Records.InstancesRecords.LocalDemandInstancesRecord() | |
| Records › Local Renewable Production | |||
| Config.Records.InstancesRecords.LocalRenewableProductionInstancesRecord | localRenewableProductionInstancesRecord | Config.Records.InstancesRecords.LocalRenewableProductionInstancesRecord() | |
| Records › CO2System | |||
| Config.Records.InstancesRecords.CO2SystemInstancesRecord | cO2SystemInstancesRecord | Config.Records.InstancesRecords.CO2SystemInstancesRecord() | |
| Records › Power To Gas | |||
| Config.Records.InstancesRecords.PowerToGasInstancesRecord | powerToGasInstancesRecord | Config.Records.InstancesRecords.PowerToGasInstancesRecord() | |
| Records › Heating Grid | |||
| Config.Records.InstancesRecords.HeatingGridSystemStorageInstancesRecord | heatingGridSystemStorageInstancesRecord | Config.Records.InstancesRecords.HeatingGridSystemStorageInstancesRecord() | |
Connectors
Components
Contents
| Name | Description |
|---|---|