modelGridConstructor
Extends from TransiEnt.SystemGeneration.GridConstructor.Base.PartialGridCell.
Information
1. Purpose of model
Represents a Grid Segment (e. g. street) with multiple consumers and associated technologies for heat and electricity production.
2. Level of detail, physical effects considered, and physical insight
(no remarks)
3. Limits of validity
(no remarks)
4. Interfaces
(no remarks)
5. Nomenclature
(no remarks)
6. Governing Equations
(no remarks)
7. Remarks for Usage
Some remarks about the structure of GridConstructor syntax:
1. Activate/Deactivate connectors of the Basic_Grid_Elements depending on the setting for el_in/el_out/gas_in/gas_out on Grid_constructor level:
if el_in = false all electric connectors are deactivated
if el_in = true but el_out = false then el_out of last Basic_Grid_Element is set to false --> Grid_Constructor represents the end of a beam of the electric grid
if gas_in = false all electric connectors are deactivated
if gas_in = true but gas_out = false then gas_out of last Basic_Grid_Element is set to false --> Grid_Constructor represents the end of a beam of the gas grid
2. Assign second_Consumer values
3. Deactivate pipe segments, in Basic_Grid_Elements in which none of the buildings is connected to the gas grid while gas_in is still activated
4.Assign load-profile triples from load-profile data tables to the buildings:
Starting from column start_c1/start_c2 in table Demand_Consumer_1/Demand_Consumer_2 consecutive load-profile triples are assigned to consecutive buildings in the upper/lower row
5. Assign a Systems model Systems_Consumer_1/Systems_Consumer_2 to the buildings in the upper/lower row and finalize the individual technology selection with the respective boolean parameter vectors
6. Parametrise the cable and gas pipe models with the respective parameter vectors
8. Validation
(no remarks)
9. References
(no remarks)
10. Version History
Model created by Michael Djukow, 2017
Modified by Anne Hagemeier, 2021
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | n_elements | 1 | |System layout|Number of basic grid elements |
| Integer | n_consumer | n_elements + TransiEnt.Basics.Functions.calc_true_booleans(second_Consumer, n_elements) | Number of consumers inside a GridConstructor |
| Connectors | |||
| Boolean | gas_in (from PartialGridCell) | true | Activate/Deactivate inlet gas connector |
| Boolean | gas_out (from PartialGridCell) | true | Activate/Deactivate outlet gas connector |
| Boolean | el_in (from PartialGridCell) | true | Activate/Deactivate inlet electric connector |
| Boolean | el_out (from PartialGridCell) | true | Activate/Deactivate outlet electric connector |
| Boolean | dhn_in_s (from PartialGridCell) | false | Activate/Deactivate inlet dhn connector for supply line |
| Boolean | dhn_out_s (from PartialGridCell) | false | Activate/Deactivate outlet dhn connector for supply line |
| Boolean | dhn_in_r (from PartialGridCell) | false | Activate/Deactivate inlet dhn connector for return line |
| Boolean | dhn_out_r (from PartialGridCell) | false | Activate/Deactivate outlet dhn connector for return line |
| Consumer | |||
| Integer | start_c1 | 1 | Number of column in table Demand_Consumer_1 from which the assignment of load-profile data starts |
| Integer | start_c2 | 1 | Number of column in table Demand_Consumer_2 from which the assignment of load-profile data starts |
| TransiEnt.SystemGeneration.GridConstructor.DataRecords.ConsumerParameters[30] | Scaling_factor_consumer_1 | {TransiEnt.SystemGeneration.GridConstructor.DataRecords.ConsumerParameters() for i in 1:30} | Consumer parameters and scaling factors in upper row |
| TransiEnt.SystemGeneration.GridConstructor.DataRecords.ConsumerParameters[30] | Scaling_factor_consumer_2 | {TransiEnt.SystemGeneration.GridConstructor.DataRecords.ConsumerParameters() for i in 1:30} | Consumer parameters and scaling factors lower row |
| System layout | |||
| Boolean | second_row | false | |System layout|Activate second row of consumers |
| Boolean[:] | second_Consumer | fill(false, n_elements) | Activate/deactivate buildings in second row |
| Systems | |||
| TransiEnt.SystemGeneration.GridConstructor.DataRecords.TechnologyMatrix[30] | Technologies_1 | {TransiEnt.SystemGeneration.GridConstructor.DataRecords.TechnologyMatrix() for i in 1:30} | Technologies in upper row |
| TransiEnt.SystemGeneration.GridConstructor.DataRecords.TechnologyMatrix[30] | Technologies_2 | {TransiEnt.SystemGeneration.GridConstructor.DataRecords.TechnologyMatrix() for i in 1:30} | Technologies in lower row |
| Boiler | |||
| TransiEnt.SystemGeneration.GridConstructor.DataRecords.BoilerParameters[30] | BoilerParameters_1 | {TransiEnt.SystemGeneration.GridConstructor.DataRecords.BoilerParameters() for i in 1:30} | Boiler parameters |
| TransiEnt.SystemGeneration.GridConstructor.DataRecords.BoilerParameters[30] | BoilerParameters_2 | {TransiEnt.SystemGeneration.GridConstructor.DataRecords.BoilerParameters() for i in 1:30} | Boiler parameters |
| PV | |||
| TransiEnt.SystemGeneration.GridConstructor.DataRecords.PVParameters[30] | PVParameters_1 | {TransiEnt.SystemGeneration.GridConstructor.DataRecords.PVParameters() for i in 1:30} | PV parameters |
| TransiEnt.SystemGeneration.GridConstructor.DataRecords.PVParameters[30] | PVParameters_2 | {TransiEnt.SystemGeneration.GridConstructor.DataRecords.PVParameters() for i in 1:30} | PV parameters |
| HeatPump | |||
| TransiEnt.SystemGeneration.GridConstructor.DataRecords.HeatPumpParameters[30] | HeatPumpParameters_1 | {TransiEnt.SystemGeneration.GridConstructor.DataRecords.HeatPumpParameters() for i in 1:30} | Heat pump parameters in upper row |
| TransiEnt.SystemGeneration.GridConstructor.DataRecords.HeatPumpParameters[30] | HeatPumpParameters_2 | {TransiEnt.SystemGeneration.GridConstructor.DataRecords.HeatPumpParameters() for i in 1:30} | Heat pump parameters lower row |
| Consumer › Electrical | |||
| Real[:] | cosphi | fill(simCenter.cosphi, n_elements) | Reactive power factor |
| CHP | |||
| TransiEnt.SystemGeneration.GridConstructor.DataRecords.CHPParameters[30] | CHPParameters_1 | {TransiEnt.SystemGeneration.GridConstructor.DataRecords.CHPParameters() for i in 1:30} | CHP parameters in upper row |
| TransiEnt.SystemGeneration.GridConstructor.DataRecords.CHPParameters[30] | CHPParameters_2 | {TransiEnt.SystemGeneration.GridConstructor.DataRecords.CHPParameters() for i in 1:30} | CHP parameters lower row |
| SolarThermal | |||
| TransiEnt.SystemGeneration.GridConstructor.DataRecords.SolarHeatingParameters[30] | SolarHeatingParameters_1 | {TransiEnt.SystemGeneration.GridConstructor.DataRecords.SolarHeatingParameters() for i in 1:30} | Solar heating parameters in upper row |
| TransiEnt.SystemGeneration.GridConstructor.DataRecords.SolarHeatingParameters[30] | SolarHeatingParameters_2 | {TransiEnt.SystemGeneration.GridConstructor.DataRecords.SolarHeatingParameters() for i in 1:30} | Solar heating parameters lower row |
| Cables and Piping | |||
| TransiEnt.SystemGeneration.GridConstructor.DataRecords.CablePipeParameters[30] | CablePipeParameters | {TransiEnt.SystemGeneration.GridConstructor.DataRecords.CablePipeParameters() for i in 1:30} | Parameters of cables and piping |
| PV › Location parameters | |||
| Real | lambda | simCenter.lambda | degree of longitude of location |
| Real | phi | simCenter.phi | degree of latitude of location |
| Real | timezone | simCenter.timezone | timezone of location (UTC+) - for Hamburg timezone=1 |
| SolarThermal › Location parameters | |||
| Real | latitude_ST | simCenter.phi | Degree of latitude of the local position, north posiive, 53,55 North for Hamburg |
| Real | longitude_standard_ST | simCenter.timezone*15 | needed for calculation of coordinated universal time (utc), 15 for central european time, 30 for central european summer time |
| Real | longitude_ST | simCenter.lambda | Degree of longitude of the local position, east positive, 10 East for Hamburg |
| DHN | |||
| TransiEnt.SystemGeneration.GridConstructor.DataRecords.DHNParameters[30] | DHNParameters_Main | {TransiEnt.SystemGeneration.GridConstructor.DataRecords.DHNParameters() for i in 1:30} | Parameters of main pipes |
| TransiEnt.SystemGeneration.GridConstructor.DataRecords.DHNParameters[30] | DHNParameters_Consumer_1 | {TransiEnt.SystemGeneration.GridConstructor.DataRecords.DHNParameters() for i in 1:30} | Parameters of house pipes for top Consumer |
| TransiEnt.SystemGeneration.GridConstructor.DataRecords.DHNParameters[30] | DHNParameters_Consumer_2 | {TransiEnt.SystemGeneration.GridConstructor.DataRecords.DHNParameters() for i in 1:30} | Parameters of house pipes for bottom Consumer |
| DHN › HeatTransfer | |||
| ClaRa.Basics.Units.ThermalConductivity[:] | dhn_lambda_insulation | fill(0.023, n_elements) | Thermal conductivity of insulation material |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| TransiEnt.Basics.Interfaces.Gas.RealGasPortIn | gasPortIn (from PartialGridCell) | ||
| TransiEnt.Basics.Interfaces.Gas.RealGasPortOut | gasPortOut (from PartialGridCell) | ||
| TransiEnt.Basics.Interfaces.Electrical.ApparentPowerPort | epp_p (from PartialGridCell) | ||
| TransiEnt.Basics.Interfaces.Electrical.ApparentPowerPort | epp_n (from PartialGridCell) | ||
| TransiEnt.Basics.Interfaces.Thermal.FluidPortIn | waterPortIn_supply (from PartialGridCell) | Inlet port | |
| TransiEnt.Basics.Interfaces.Thermal.FluidPortOut | waterPortOut_supply (from PartialGridCell) | Outlet port | |
| TransiEnt.Basics.Interfaces.Thermal.FluidPortOut | waterPortOut_return (from PartialGridCell) | Outlet port | |
| TransiEnt.Basics.Interfaces.Thermal.FluidPortIn | waterPortIn_return (from PartialGridCell) | Inlet port |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| TransiEnt.SimCenter | simCenter (from PartialGridCell) | ||
| SI.Temperature | T_source_ground | simCenter.T_ground | Temperature of ground as heat source |
| SI.Temperature | T_source_ambient | simCenter.ambientConditions.temperature.value + 273.15 | Temperature of ambient air as heat source |
| SI.Temperature | T_source_constant | 283.15 | Constant heat source temperature |
| SI.Temperature | T_source_other | 283.15 | Other heat source temperature |
| TransiEnt.SystemGeneration.GridConstructor.GridElement[n_elements] | Basic_Grid_Elements |
Contents
| Name | Description |
|---|---|