synopsis: Running time profiles for processes author: David Baehrens <david.baehrens@energyxperts.net>
Bases: exceptions.Exception
No profile found with given name.
Bases: exceptions.Exception
Profile has no running time intervals.
Weekday names in order.
Bases: object
Daily intervals of running time during one week on selected weekdays.
Parameters: |
|
---|---|
Returns: | Weekly profile instance |
Return type: | einstein.modules.profiles.WeeklyProfile |
Add an running time interval to profile instance.
Parameters: |
|
---|---|
Returns: | nothing |
Remove all running time intervals from profile instance.
Returns: | nothing |
---|
Remove profile from data base.
Returns: | nothing |
---|---|
Raises einstein.modules.profiles.ProfileNotFoundError: | |
No profile with our name found in data base. |
Retrieve daily intervals and selected weekdays from data base.
Returns: | nothing |
---|---|
Raises: |
|
Store profile to data base.
Returns: | nothing |
---|
Convenience function to get all known profiles at once.
Weekday short names in order.
synopsis: Periodic yearly load profiles of process operation author: Hans Schweiger <hans.schweiger@energyxperts.net> author: David Baehrens <david.baehrens@energyxperts.net>
class that defines EINSTEIN schedules
Parameters: |
|
---|
Specific parameters for simplified schedules built as follows
f(t) = fmonth x fweek x fholiday
Parameters: |
|
---|
builds the yearly basic schedule for a simple schedule
calculates a weekly fav-vector that then is extended to a year
input: self.weekly output: fweek
save function for generic schedule if periodSchedule saves that one, else delete the periodSchedule if exists
Based on the basic schedule parameters (basic Q) assign a detailed default schedule
functions for setpars specific for detailed schedules
sets the schedule to zero without calculations
Bases: object
Generate the Schedules of the equipments.
Calculate the Schedules of the processes.
Generate the Schedules of the electrical equipment w. waste heat
Minimum time between consecutive cycles after random tolerance shift (hours)
Otains a fav-vector from a basic schedule
calculates the global values from a fav-vector
synopsis: Management of EINSTEIN version upgrades author: David Baehrens <david.baehrens@energyxperts.net>
Add a variable for the before fixed parameters delta process/supply temperature.
If no project IDs are given all projects are updated.
Parameters: | projectIds – list of ProjectIDs |
---|
Add a variable for the before fixed parameters delta process/supply temperature.
If no project IDs are given all projects are updated.
Parameters: | projectIds – list of ProjectIDs |
---|
Add the target temperatures for building heating and cooling as derived from the temperatures of the supply.
If no project IDs are given all projects are updated.
Parameters: | projectIds – list of ProjectIDs |
---|
Assume that the econmic data of old projects is fine as is. Otherwise all variable costs in old projects would be removed as the equipment would seem to have changed since the last TCA calculations.
If no project IDs are given all projects are updated.
Parameters: | projectIds – list of ProjectIDs |
---|
Replace the type “Concentrating collector” with “Parabolic trough collector” in the dbsolarthermal table.
Parameters: | projectIds – is ignored as it does not touch projects |
---|
Writes columns source_id and pID establishing the correct links formerly defined redundantly by entry of objectNames in table heat_exchanger and by pinchStreamName
All TCA data sets now keep track of their project id and alternative number. Set these values for all old TCA data sets.
If no project IDs are given all projects are updated.
Parameters: | projectIds – list of ProjectIDs |
---|
Correct COPex in projects created with older versions in order to compensate for the change of HPTDROP from 5 to 7 K in Version 3.0
In some cases QdotProc_c data have been assigned to 0.0 in old projects although it was not really a user input befor V2.9.00
Create processes that represent the heating, cooling and domestic hot water demand of a building.
Parameters: | projectIds – list of ProjectIDs |
---|
Move some economic parameters from the questionnaire to the cgeneraldata table, as they may be changed by the consistency check and questionnaire contains only data that is user input.
If no project IDs are given all projects are updated.
Parameters: | projectIds – list of ProjectIDs |
---|
Map the inflow and outflow properties of the processes of a project to corresponding streams.
If the process has in VInFlowDay, mInFlow, vInFlowCycle an explicit 0 then no inflow stream is created. If the process has in VoutFlow, mOutFlow, vOutFlowNom an explicit 0 then no outflow stream is created. In the other cases the values of the new streams are taken from the process.
Parameters: | projectIds (List) – a list of projectIds of projects to be converted. |
---|
The type of the HeatSourceLT column has changed, all old values were ignored anyway, so reset them for imported projects.
An update of the complete database is not needed as this is part of the database schema changes. If projectIds is None nothing is done.
Parameters: | projectIds – list of ProjectIDs |
---|
Shift the parameter TemperatureReCooling for air and water cooled compression chillers, as the simulation code has changed to a different reference point.
If no project IDs are given all projects are updated.
Parameters: | projectIds – list of ProjectIDs |
---|
Adapt chiller data for versions 2.1 and before in order to reflect the changes in the chiller module:
HCGTEfficiency -> copy into HCGTEffReal, if applies with partload correction.
Parameters: | projectIds – list of ProjectIDs |
---|
Replace default data with more precise default data.
If a projectId is given, nothing is done. This function is only sensible for updates of the whole database.
Parameter upgrades for compatibility with detailed schedules
Perform all defined upgrades to reach the specified version of EINSTEIN
Writes columns source_id and pID establishing the correct links formerly defined redundantly by entry of objectNames in table heat_exchanger and by pinchStreamName
Updates the key project data creation date -> remains None last modification date -> set to current date
Parameters: | projectIds – list of ProjectIDs |
---|
Adapt chiller data for versions 2.1 and before in order to reflect the changes in the chiller module:
HCGTEfficiency -> copy into HCGTEffReal, if applies with partload correction.
Parameters: | projectIds – list of ProjectIDs |
---|
Updates the key project data creation date -> remains None last modification date -> set to current date
Parameters: | projectIds – list of ProjectIDs |
---|