[esp-r] Re: simulation
Achim Geissler
achim.geissler at intergga.ch
Fri Nov 18 15:36:23 GMT 2016
Dear Artur,
very good!
In regard to output of res data, I would strongly advise to look at the text mode and automate your results extraction by creating appropriate scripts (below an example to extract all zone air temperatures). Also, you may want to look at the xml output feature. To use this, you need a file called input.xml in your cfg folder (or better, in the folder where you fire up bps – which should be the cfg folder to avoid issues). You can set this up via prj (I think). Otherwise, below is a rudimentary version. This will generate a file called out.dictionary after a simulation run in which all variables available for xml output are given. The output is on timestep basis as .csv file.
Good luck!
Best
Achim
=== res_zone_temperatures.sh ==
#!/bin/sh
# Results, extract zone db temperatures from all zones. Shell script called with two arguments, the
# results file name and the desired output file name.
#
RESFILE=$1
TEMPOUT=$2
echo " Extracting zone temperatures from ${RESFILE} to ${TEMPOUT} ..."
res -file $RESFILE -mode text >> /dev/null <<ZZZ
# confirm res file
c # Timestep reports
> # switch output to file
$TEMPOUT
File: $TEMPOUT # title for 3rd party graphic
^ # change delimiter
e # e comma, c tabulator
* # toggle time output format
a # no mark between days
g # performance metrics
b # temperatures
a # Zone db T
! # list data
> # switch display to screen ("flush")
- # exit perf metrics
- # exit tab output
- # Quit res analysis
ZZZ
unset RESFILE
unset TEMPOUT
=== input.xml ===
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<apply_style_sheet>false</apply_style_sheet>
<dump_all_data>false</dump_all_data>
<hierarchy>tree</hierarchy>
<link_style_sheet>false</link_style_sheet>
<output_dictionary>true</output_dictionary>
<report_startup_period_data>false</report_startup_period_data>
<use_resfilenameroot>true</use_resfilenameroot>
<use_zonenames>true</use_zonenames>
<use_surfacenames>true</use_surfacenames>
<save_to_disk>false</save_to_disk>
<time_step_averaging>false</time_step_averaging>
<!--Allow regexp-like wildcard matching for list of output variables-->
<enable_xml_wildcards>true</enable_xml_wildcards>
<!--List of data to appear in out.xml-->
<log_variable>total_fuel_use/electricity/all_end_uses/energy_content</log_variable>
<!--List of data to appear in out.csv-->
<step_variable>building/day_number/present</step_variable>
<step_variable>building/time/present</step_variable>
<step_variable>building/time_step</step_variable>
<!-- special materials -->
<!-- building -->
<step_variable>building/office/air_flow_model</step_variable>
<!-- plant -->
<!-- electrical -->
<!-- climate -->
<step_variable>climate/dry_bulb_temperature</step_variable>
<step_variable>climate/solar/diffuse_horizontal_radiation</step_variable>
<step_variable>climate/solar/direct_normal_radiation</step_variable>
</configuration>
Von: amisz22 [mailto:amisz22 at op.pl]
Gesendet: Freitag, 18. November 2016 10:37
An: Achim Geissler
Betreff: Re: [esp-r] Re: simulation
Wichtigkeit: Hoch
Dear Achim,
Thank you for taking your time and looking at my model. As per your suggestions I have corrected the data referring to material properties and it turned out that after inserting actual values for respective materials, simulation is possible to run for a whole year ( the simulation process no longer collapse).
However I have got one more question - is it possible to do the export of more than 11 columns of results? Currently I manage to export at once max. 11 columns of the results although the analysis I run have more than 11.
Currently, in order to get the full outcome I must open the resulting file several times and export the results one by one which is quite inconvenience.
Thank you again for your help.
Best regards,
Artur
W dniu 2016-11-16 17:11:47 użytkownik Achim Geissler <achim.geissler at intergga.ch> napisał:
Dear Artur,
I took a quick look at your model – you may want to update your material descriptions in your materials database with realistic values in regard to density and specific heat. All values are 1.0, it seems. This will likely lead to numerical problems sooner or later. The console gives many warnings in regard to physically impossible longwave radiation exchange values – this could be a consequence of the material values and could also at some point lead to a crash of the program.
Best
Achim
Von: amisz22 [mailto:amisz22 at op.p <mailto:amisz22 at op.pl> l]
Gesendet: Mittwoch, 16. November 2016 15:34
An: Achim Geissler
Betreff: Re: [esp-r] Re: simulation
Wichtigkeit: Hoch
Dear Achim,
Thank you for your answer and advise- much appreciated.
I have used same weather files while working on a different building simulation and it worked well. I have also used two different types of weather files- prepared by myself as well as the one available on ESP-r base. In both cases simulation works only from 1st of January until 1st of April. If you try to do it for a different period of time, e.g. from May to December, there are no results.
I have attached the building's model that I am struggling with, if you would find some time and could have a look into it, I would be thankful. Maybe you would find the reason of the issue described above.
Thank you in advance for your help.
Best regards,
Artur.
W dniu 2016-11-15 08:37:01 użytkownik Achim Geissler <achim.geissler at intergga.ch> napisał:
Dear Artur,
does the model which works use the same climate file? Have you tried increasing the simulation time span incrementally? Have you then tried simulating “around the problem time” with a short simulation period? The only issue that comes to mind here to me is some problem with climate data at a certain date (assuming all else does not change during the year?).
Possibly firing up the simulation via text mode and piping the output to a file can help. Sometimes messages are gathered here, that show what the issue is.
That is all I can think of, right now.
Good luck!
Best
Achim
Von: esp-r-bounces at lists.strath.ac.uk [mailto:esp-r-bounces at lists.strath.ac.uk] Im Auftrag von amisz22
Gesendet: Montag, 14. November 2016 20:36
An: esp-r at lists.strath.ac.uk
Betreff: [esp-r] simulation
Wichtigkeit: Hoch
Dear Users,
Could you please help me with solving the below issue:
I have created a building model (geometry and the building envelope) and tried to do some simulation. It worked properly when I did it for a period of 3 months ( 1st of Jan until 31st of March), but when I try to do it for a period of six month or longer, there is an error popping up and the simulation process never ends and so the results are not saved. However at the same time when I try to carry out simulation for a different type of building using the same laptop, it works correctly despite the period of time that I choose.
Do any of you know, what could be the reason of the issue described above?
Thank you in advance for your help.
Artur.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.strath.ac.uk/archives/esp-r/attachments/20161118/fe4461d7/attachment-0001.html
More information about the esp-r
mailing list