Skip to content

supplySystem.py

Prageeth Jayathissa edited this page May 8, 2017 · 1 revision

Model of different Supply systems. File utilises a builder pattern methodology. New Supply Systems can be introduced by adding new classes.

my_supply = supplySystem.SupplyDirector()

Initialises the heating / cooling systems manager

my_supply.setBuilder(my_supplySystem(Load, T_out, heatingSupplyTemperature, coolingSupplyTemperature, has_heating_demand, has_cooling_demand))

Set the Supply System type, with input parameters. A list of Supply Sytem types can be found below

Input

  • Load: Energy demand of the room [W]
  • T_out: Outdoor air temperature [C]
  • heatingSupplyTemperature: Supply Temperature of the Emission System [C]
  • coolingSupplyTemperature: Supply Temperature of the Emission System [C]
  • has_heating_demand: Boolean
  • has_cooling_demand: Boolean

Builder Options

my_supplySystem can be replaced with the following names

OilBoilerOld

  • Old oil boiler with fuel efficiency of 63 percent

OilBoilerMed

  • An oil boiler with a fuel efficiency of 82 percent

OilBoilerNew

  • New oil boiler with fuel efficiency of 98 percent

HeatPumpAir

HeatPumpWater

  • An ground-water heat pump.
  • Outside temperature is the ground resevoir temperature of 7 degC in winter and 12degC in summer
  • COP based off a regression analysis of manufacturers data

ElectricHeating

  • Resitive electric heatier with 100% conversion efficiency

CHP

  • Combined Heat Pump
  • 60% conversion to thermal heat
  • 33% conversion to electricity

DirectHeater

  • 100% energy to electricity conversion. Used in tests and debugging

DirectCooler

  • 100% energy to electricity conversion. Used in tests and debugging

my_supply_output = my_supply.calcSystem()

Calculates the output of the chosen supply system

Return

  • my_supply_output.electricityIn: Electricity required for heating / cooling
  • my_supply_output.fossilsIn: Fossil fuel consumption for heating
  • my_supply_output.electricityOut: Electricity generated through heating (used in combined heat and power)
Clone this wiki locally