Simple Characterization

src.General.Simple_User.simple_user.simple_user(in_var)[source]

Simple User streams characterization.

A simple user is a user that directly introduces the streams and its properties. This routine receives the user’s streams data from the platform and creates a standard stream data output to be used in other modules.

Parameters

in_var (dict) –

All necessary data to perform the characterization, with the following keys:

platform: dict

Data obtained from the platform

  • type_of_object: str

    ’sink’ or ‘source’

  • streamslist with dict

    Streams to be analyzed. Each stream with the following keys:

    • name: int

      stream ID []

    • supply_temperature: str

      stream’s supply/initial temperature [ºC]

    • target_temperature: str

      stream’s target/final temperature [ºC]

    • fluid: str:

      stream’s fluid []

    • capacity: float

      stream’s capacity [kW] - provide capacity or fluid_cp and flowrate

    • fluid_cp: float

      stream’s fluid cp [kJ/kg.K] - provide capacity or fluid_cp and flowrate

    • flowrate: float

      stream’s mass flowrate [kg/h] - provide capacity or fluid_cp and flowrate

    • daily_periods: float

      period of daily periods [h]

    • shutdown_periods: list

      period of days stream is not available [day]

    • saturday_on: int

      if available on saturdays - available (1); not available (0)

    • sunday_on: int

      if available on sundays - available (1); not available (0)

    • ref_system_fuel_type: str

      Fuel type associated

    • real_hourly_capacity: list, optional

      Real hourly data - for each hour of the year

    • real_daily_capacity: list, optional

      Real daily data - for each day of the year

    • real_monthly_capacity: dict, optional

      Real monthly data - for each month of the year

    • real_yearly_capacity: float, optional

      Real yearly data - single value

Returns

output – Streams data

  • streamslist

    List with dicts of all streams with the following keys:

    • idint

      stream ID []

    • namestr

      Stream name []

    • object_typestr

      DEFAULT = “stream” []

    • object_linked_id

      None: DEFAULT=NONE, since no equipment/process is associated

    • stream_typestr

      Stream designation []; inflow, outflow, excess_heat

    • supply_temperaturefloat

      Stream’s supply/initial temperature [ºC]

    • target_temperaturefloat

      Stream’s target/final temperature [ºC]

    • fluidstr

      Stream fluid name

    • flowratefloat

      Stream mass flowrate[kg/h]

    • schedulelist

      Hourly values between 0 and 1, according to the capacity ration on that hour

    • hourly_generation: list

      Stream’s hourly capacity [kWh]

    • capacityfloat

      Stream’s capacity [kW]

    • monthly_generationlist

      Stream’s monthly capacity [kWh]

    • fuelstr

      Associated equipment fuel name []

    • eff_equipmentfloat

      Associated equipment efficiency []

Return type

dict