[esp-r] Re: Getting the value for Lumens in a zone

Achim Geissler achim.geissler at intergga.ch
Sun Mar 12 19:39:44 GMT 2017


Hi Dimitris,

as far as I know, there is no guide readily available, no. The steps are basically the following:

In cetc/h3kmodule.f90 add the parameter definitions … just follow  the general structure of variables given. You will need to give the type (somewhere close to the beginning of the file) 

   !Used by casual.F
   Type(ReportVariable) :: rvXX, rvYY (whatever name you fancy, the “rv” is “report variable” ...)

   ...

and also the definitions similar to

      rvInsolationTotal%VariableName = 'building/*/insolation/total'
      rvInsolationTotal%MetaType = 'units'
      rvInsolationTotal%VariableType = '(W)'
      rvInsolationTotal%Description = 'Solar gains admitted through glazing'
      Call AddVariable(rvInsolationTotal)

somewhere later on in the file. The “*” in above example allows for zone naming. Likely, you will want to have a second “*” for the lighting zone in a given zone. Then, in casual.F (probably necessary, because the variables of interest are not available via a program-wide common, I think), you will need to call “Addtoreport” like so:

        call AddToReport(
     &     rvBldZnLightPow%Identifier,
     &     Cas_Lights(iZone),
     &     cZone_Chars)

where of course the “rvXX” is the name you chose in step 1. Cas_Lights is the value and cZone_Chars is the zone name. If you also have the lighting zone, simply add the appropriate variable after cZone_Chars. Probably it is best to place this close to where the “final value” per time step is available. The procedure is actually quite straightforward and there are many examples in the code from which to learn.

Recompile (depending on your development environment, make sure the relevant object files actually have been created newly - make does not always accept the .f90 and attached module as changed!), rerun and check out.dictionary … the new variables should be available.

Good luck!

Best
Achim


> On 12 Mar 2017, at 18:54, Dimitris Jim Sfakianakis <dsfakianakis at gmail.com> wrote:
> 
> Hi Achim,
> 
> I found selum() and zelum() in casual.F, however, I don't know what is the process of including additional variables in the h3k reports. Is there a guide available that can guide me through the process?
> 
> Kind regards,
> 
> Dimitris
> 
> 
> On Fri, Feb 17, 2017 at 12:06 PM, Achim Geissler <achim.geissler at intergga.ch <mailto:achim.geissler at intergga.ch>> wrote:
> Hi Jim,
> 
> most likely selum() and zelum(), one is per sensor, the other per zone as far as I recall / can see by a quick peek. Subroutine intlum(). However, at least selum() is reported by trace, so I am not entirely sure they are what you are looking for. 
> 
> Best
> Achim
> 
> 
>> On 16 Feb 2017, at 23:01, Dimitris Jim Sfakianakis <dsfakianakis at gmail.com <mailto:dsfakianakis at gmail.com>> wrote:
>> 
>> Hi Achim,
>> 
>> Thank you for the response, really appreciate it. Do you happen to remember what the variable for the lumens is? I am pretty sure it won't be difficult to locate but it'd help a lot if you happene to remember it.
>> 
>> Thanks!
>> 
>> 
>> On Feb 14, 2017 8:55 AM, "Achim Geissler" <achim.geissler at intergga.ch <mailto:achim.geissler at intergga.ch>> wrote:
>> Dear Jim,
>> 
>>  
>> 
>> it has been a while, but as far as I recall that data really is not transported to any results listings. If you are prepared to compile ESP-r, you could probably pipe the desired variables out via h3k output quite easily (esrubld/casual.F).
>> 
>>  
>> 
>> Best
>> 
>> Achim
>> 
>>  
>> 
>>  
>> 
>>  
>> 
>> Von: esp-r-bounces at lists.strath.ac.uk <mailto:esp-r-bounces at lists.strath.ac.uk> [mailto:esp-r-bounces at lists.strath.ac.uk <mailto:esp-r-bounces at lists.strath.ac.uk>] Im Auftrag von Dimitris "Jim" Sfakianakis
>> Gesendet: Montag, 13. Februar 2017 21:29
>> An: esp-r at lists.strath.ac.uk <mailto:esp-r at lists.strath.ac.uk>
>> Betreff: [esp-r] Getting the value for Lumens in a zone
>> 
>>  
>> 
>> Hi group,
>> 
>>  
>> 
>> I have been working on a project with lighting control. I set up a casual gains control file in order to represent optimal lighting control in my model.
>> 
>>  
>> 
>> Is there a way to pull the value for the Lumens in a zone at each time step, after the simulation?
>> 
>>  
>> 
>> I checked in the "results analysis" and "trace facilities" but couldn't locate the associated parameter.
>> 
>>  
>> 
>> Your help is greatly appreciated!
>> 
>> 
>> 
>> Kind regards,
>> 
>>  
>> 
>> Jim
>> 
>>  
>> 
>> e: dsfakianakis at gmail.com <mailto:dsfakianakis at gmail.com>
>>  
>> 
>> 
>> _______________________________________________
>> esp-r mailing list
>> esp-r at lists.strath.ac.uk <mailto:esp-r at lists.strath.ac.uk>
>> http://lists.strath.ac.uk/mailman/listinfo/esp-r <http://lists.strath.ac.uk/mailman/listinfo/esp-r>
>> 
> 
> achim.geissler at intergga.ch <mailto:achim.geissler at intergga.ch>
> 
> 
> 
> 
> 
> _______________________________________________
> esp-r mailing list
> esp-r at lists.strath.ac.uk <mailto:esp-r at lists.strath.ac.uk>
> http://lists.strath.ac.uk/mailman/listinfo/esp-r <http://lists.strath.ac.uk/mailman/listinfo/esp-r>
> 
> _______________________________________________
> esp-r mailing list
> esp-r at lists.strath.ac.uk
> http://lists.strath.ac.uk/mailman/listinfo/esp-r

achim.geissler at intergga.ch




-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.strath.ac.uk/archives/esp-r/attachments/20170312/39aafe18/attachment-0001.html 


More information about the esp-r mailing list