modelSuperstructure

Representation of a certain region in terms of consumption and production of electrical power and gas

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

TypeNameDefaultDescription
IntegerRegion1Define Region Number
IntegerDifferentTypesOfPowerPlants0 to x
IntegerDifferentTypesOfCHPPlants0 or 1
IntegerDifferentTypesOfElectricalStorages0 to x
IntegerDifferentTypesOfPowerToGasPlants0 or 1
IntegerDifferentTypesOfElectricHeater0 or 1
IntegerDifferentTypesOfGasBoiler0 or 1
IntegerDifferentTypesOfGasStorage0 or 1
BooleanCHPPlantsInThisRegionif DifferentTypesOfCHPPlants > 0 then true else falsetrue, if CHP plants exist in region
BooleanElectricalHeaterInThisRegionif DifferentTypesOfElectricHeater > 0 then true else falsetrue, if electrical heater exist in region
BooleanPowerPlantsInThisRegionif DifferentTypesOfPowerPlants > 0 then true else falsetrue, if power plants exist in region
BooleanPowerToGasPlantsInThisRegionif DifferentTypesOfPowerToGasPlants > 0 then true else falsetrue, if power to gas plants exist in region
BooleanElectricalStoragesInThisRegionif DifferentTypesOfElectricalStorages > 0 then true else falsetrue, if electrical storages exist in region
BooleanGasBoilerInThisRegionif DifferentTypesOfGasBoiler > 0 then true else falsetrue, if gas boiler exist in region
BooleanGasStorageInThisRegionif DifferentTypesOfGasStorage > 0 then true else falsetrue, if gas storages exist in region
BooleanuseVariableHydrogenFractionfalse
TILMedia.VLEFluidTypes.BaseVLEFluidmedium_CO2simCenter.gasModel1CO2 model to be used
Modelica.Units.SI.MassFlowRatem_flow_small0.1small leakage mass flow for numerical stability
IntegerslackBoundaryPositionIndices [Region, MaxDifferentTypesOfPowerplants] of where the epp slack boundary is positioned
BooleanptGTypeIsMethanationif PowerToGasPlantsInThisRegion == false then false else not (powerToGasInstancesRecord.powerToGasType == Config.PowerToGasType(1) or powerToGasInstancesRecord.powerToGasType == Config.PowerToGasType(2) or powerToGasInstancesRecord.powerToGasType == Config.PowerToGasType(3))
BooleanCCSInPowerPlantsif PowerPlantsInThisRegion == false then false elseif max(powerPlantInstancesRecord.powerPlantRecord[:].CO2_Deposition_Rate) > 0 then true else false
SI.Pressurep_min_operating_PowerPlants1e5gas pressure threshold at which powerplants turn off
SI.Pressurep_min_operating_PowerPlants_backin2e5gas pressure threshold at which powerplants turn back on after turning off
SI.Pressurep_min_operating_localDemand1e5gas pressure threshold at which local consumers turn off
SI.Pressurep_min_operating_localDemand_backin2e5gas pressure threshold at which powerplants turn back on after turning off
StringlocalElectricDemand_pathToTable
ReallocalElectricDemand_constantMultiplier1.0Multiply output with constant factor
StringlocalGasDemand_pathToTable
ReallocalGasDemand_constantMultiplier1.0Multiply output with constant factor
StringlocalSolarthermalProduction_pathToTable
ReallocalSolarthermalProduction_constantMultiplier1.0Multiply output with constant factor
StringlocalTemperature_pathToTable
ReallocalTemperature_constantMultiplier1.0Multiply output with constant factor
StringlocalHeatDemand_pathToTable
ReallocalHeatDemand_constantMultiplier1.0Multiply output with constant factor
StringlocalBiogasProduction_pathToTable
ReallocalBiogasProduction_constantMultiplier1.0Multiply output with constant factor
StringlocalWindOffshoreProduction_pathToTable
ReallocalWindOffshoreProduction_constantMultiplier1.0Multiply output with constant factor
StringlocalBiomassProduction_pathToTable
ReallocalBiomassProduction_constantMultiplier1.0Multiply output with constant factor
StringlocalPhotovoltaicProduction_pathToTable
ReallocalPhotovoltaicProduction_constantMultiplier1.0Multiply output with constant factor
StringlocalWindOnshoreProduction_pathToTable
ReallocalWindOnshoreProduction_constantMultiplier1.0Multiply output with constant factor
IntegerconnectLocalDemand1
IntegerconnectlocalRenewableProduction2
IntegerconnectGasStorages3
IntegerconnectPowerToGasif GasStorageInThisRegion then 4 else 3
IntegerconnectPowerPlantsif GasStorageInThisRegion and PowerToGasPlantsInThisRegion then 5 elseif GasStorageInThisRegion or PowerToGasPlantsInThisRegion then 4 else 3
Fundamental Definitions
TILMedia.VLEFluidTypes.BaseVLEFluidmediumsimCenter.gasModel1Gas model to be used
TILMedia.VLEFluidTypes.BaseVLEFluidmedium_HydrogensimCenter.gasModel3Hydrogen model zo be used
PowerPlants/PtG
BooleanuseHydrogenFromPtGInPowerPlantsfalse
BooleanCO2NeededForPowerToGasif PowerToGasPlantsInThisRegion == false then false elseif ptGTypeIsMethanation then true else false
RealCO2StorageNeededif PowerToGasPlantsInThisRegion == false and CCSInPowerPlants == false then 0 elseif CO2NeededForPowerToGas or CCSInPowerPlants == true then 1 else 0
IntegerusageOfWasteHeatOfPtG1Waste heat usage of PtG
RealsplitHeatingDemand_heatingGrid1 - splitHeatingDemand_heatingGridFraction of table data values referring to the heating grid
RealsplitHeatingDemand_localHeating1Fraction of table data values referring to local heating
HeatingGrid
Modelica.Units.NonSI.Temperature_degCT_supply_max_districtHeating149
Modelica.Units.NonSI.Temperature_degCT_return_min_districtHeating49
GasGrid
Modelica.Units.SI.Pressurep_gasGrid_desiredsimCenter.p_amb_const + simCenter.p_eff_2desired gas grid pressure in region
Modelica.Units.SI.PressureDifferencep_gasGrid_desired_bandwidth0band width around p_gasGrid_desired in which the set value varies depending on the SOC of the gas storage
IntegerNeededGasPortsForJunctioninteger(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_noZeroMassFlowif 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}
BooleanuseOneGasPortOnlytrue
Integern_gasPortif useOneGasPortOnly then 1 else 6
BooleanuseImportExportBoundaryfalseuseOneGasPortOnly has to be turned on for this
RealjunctionVolume10676.7Central gas volume if useOneGasPortOnly
GasPortSplitter
Integern_gasPortOut_powerPlants1
Integern_gasPortOut_localDemand1
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.ElectricalStorageInstancesRecordelectricalStorageInstancesRecordConfig.Records.InstancesRecords.ElectricalStorageInstancesRecord()
Records › Gas Storages
Config.Records.InstancesRecords.GasStorageInstancesRecordgasStorageInstancesRecordConfig.Records.InstancesRecords.GasStorageInstancesRecord()
Records › Power Plants
IntegernPowerPlantspowerPlantInstancesRecord.nPowerPlants
Config.Records.InstancesRecords.PowerPlantInstancesRecordpowerPlantInstancesRecordConfig.Records.InstancesRecords.PowerPlantInstancesRecord()
Records › Local Demand
Config.Records.InstancesRecords.LocalDemandInstancesRecordlocalDemandInstancesRecordConfig.Records.InstancesRecords.LocalDemandInstancesRecord()
Records › Local Renewable Production
Config.Records.InstancesRecords.LocalRenewableProductionInstancesRecordlocalRenewableProductionInstancesRecordConfig.Records.InstancesRecords.LocalRenewableProductionInstancesRecord()
Records › CO2System
Config.Records.InstancesRecords.CO2SystemInstancesRecordcO2SystemInstancesRecordConfig.Records.InstancesRecords.CO2SystemInstancesRecord()
Records › Power To Gas
Config.Records.InstancesRecords.PowerToGasInstancesRecordpowerToGasInstancesRecordConfig.Records.InstancesRecords.PowerToGasInstancesRecord()
Records › Heating Grid
Config.Records.InstancesRecords.HeatingGridSystemStorageInstancesRecordheatingGridSystemStorageInstancesRecordConfig.Records.InstancesRecords.HeatingGridSystemStorageInstancesRecord()

Connectors

TypeNameDefaultDescription
TransiEnt.Basics.Interfaces.Electrical.ComplexPowerPortepp
TransiEnt.Basics.Interfaces.Gas.RealGasPortIn[n_gasPort]gasPortIn
Modelica.Blocks.Interfaces.RealInput[nPowerPlants]P_set_PowerPlant
TransiEnt.Basics.Interfaces.Electrical.ElectricPowerIn[DifferentTypesOfElectricalStorages]P_set_ElectricalStorage
Modelica.Blocks.Interfaces.RealInputP_set_curtailment
Modelica.Blocks.Interfaces.RealInputP_set_PtG
Modelica.Blocks.Interfaces.RealInputP_set_ElectricalHeater
Modelica.Blocks.Interfaces.RealOutput[DifferentTypesOfPowerPlants]P_PowerPlant_max
Modelica.Blocks.Interfaces.RealOutputP_PowerPlant_is
Modelica.Blocks.Interfaces.RealOutputP_DAC
Modelica.Blocks.Interfaces.RealOutputP_PowerToGasPlant_is
Modelica.Blocks.Interfaces.RealOutput[DifferentTypesOfElectricalStorages]P_max_load_storage
Modelica.Blocks.Interfaces.RealOutput[DifferentTypesOfElectricalStorages]P_max_unload_storage
Modelica.Blocks.Interfaces.RealOutput[DifferentTypesOfElectricalStorages]P_storage_is
Modelica.Blocks.Interfaces.RealOutputP_ElectricalHeater_max
Modelica.Blocks.Interfaces.RealOutputP_surplus_region
Modelica.Blocks.Interfaces.RealOutputP_renewable

Components

TypeNameDefaultDescription
TransiEnt.SimCentersimCenter
Config.ElectricalStorageSystem[DifferentTypesOfElectricalStorages]electricalStorageSystem
Config.GasStorageSystemgasStorageSystem
Modelica.Blocks.Sources.RealExpressionexpression_pGas_gasStorage
Controller.ControlGasStorage_oneWaycontrolGasStorage
Config.PowerPlantSystem[nPowerPlants]powerPlantSystem
Controller.ControlPowerPlantcontrolPowerPlant
Modelica.Blocks.Sources.RealExpression[n_gasPortOut_powerPlants]gasPressure
TransiEnt.Components.Gas.VolumesValvesFittings.Fittings.RealGasJunction_L2_nPorts_isothjunction1
Config.LocalDemandlocalDemand
TransiEnt.Basics.Tables.GenericDataTableDataTable_HeatDemand
Modelica.Blocks.Math.Gaingain_HeatingDemand_HeatingGrid
Modelica.Blocks.Math.Gaingain_HeatingDemand_LocalDemand
TransiEnt.Basics.Tables.GenericDataTableDataTable_Temperature
Modelica.Units.SI.TemperatureT_regionDataTable_Temperature.y1
TransiEnt.Components.Sensors.ElectricPowerComplexelectricPowerComplex_load
TransiEnt.Components.Electrical.Grid.IdealPhaseShiftercentralPhaseShifter
Config.LocalRenewableProductionlocalRenewableProduction
TransiEnt.Components.Sensors.ElectricPowerComplexelectricPowerComplex_localRenewableProduction
Config.CO2SystemcO2System
Controller.ControlCO2controlCO2
Config.PowerToGasSystempowerToGasSystem
Controller.ControlPowerToGascontrolPowerToGasStorage
Config.HeatingGridheatingGridSystem_Storage
Modelica.Blocks.Sources.RealExpressionexpression_pGas_pTG
Modelica.Blocks.Sources.RealExpression[max(simCenter.gasModel1.nc - 1, 1)]expression_H2gasFrac
Modelica.Blocks.Sources.RealExpressionrealExpression14
Modelica.Thermal.HeatTransfer.Sources.PrescribedTemperatureprescribedTemperature
TransiEnt.Consumer.Gas.GasConsumer_HFlow_NCVboundaryImportExportInRegion
Modelica.Blocks.Sources.RealExpressionZero
Modelica.Blocks.Math.MultiSumlocalSurplusPowerIntern
Modelica.Blocks.Math.MultiSumsum_P_Powerplants_is
Modelica.Blocks.Math.MultiSumsum_m_flow_powerPlant_is
Modelica.Blocks.Math.MultiSumsum_P_PtG_is
Modelica.Blocks.Math.MultiSumsum_m_flow_PtG_is
Modelica.Blocks.Math.MultiSumsum_E_electricalStorage_is
Modelica.Blocks.Math.MultiSumsum_P_electricalStorage_is
Modelica.Blocks.Math.MultiSumsum_m_gasStorage_is
Modelica.Blocks.Math.MultiSumsum_m_flow_gasStorage_is
Modelica.Blocks.Math.MultiSumsum_m_flow_CO2fromPowerplants
Modelica.Blocks.Math.MultiSumsum_m_flow_CO2toPtG
Modelica.Blocks.Math.MultiSumsum_P_CO2DAC_is
Modelica.Blocks.Math.MultiSumsum_P_heatingGrid_is
Modelica.Blocks.Math.MultiSumsum_m_flow_heatingGridGas_is
Records.Summarysummary

Contents

NameDescription
Config