How to use adduvf.exe

I wasn´t even sure if the tool was meant to run with idf files from EnergyPlus, but it does! thanks

Now that it runs, I´m testing it on a very simple geometry.

Unfortunately, it gets stuck on a “bad vertex count for surface” and "bad subsurface “Window1"” errors:

When I look into the .idf everything seems ok.

Would you know why this happens?

IDF file

PS. for future reference, I added “C:\Radiance\bin” to the system variables following this https://docs.alfresco.com/4.2/tasks/fot-addpath.html (it was done for an older version of windows and not all the setting names are exactly accurate, but it´s quite helpful).

Sorry for the double-posting, as a new user I could only upload one image :sweat_smile:

Hmmm… Seems that eplus_adduvf was written with IDF version 7.x in mind, and your file is version 9.1. I don’t actually know what has changed, but the position and actual presence of vertex counts seems to be one of them.

I would need some help figuring out how things have changed in the last 2 versions and if there’s some way to support different versions in eplus_adduvf. Since the tool was written as a one-off during a contract I had with the eplus development group nearly 6 years ago, I have not touched the code in a long time.

I see, it´s a shame that the tool didn´t get more continuous support from the E+ development group.

I´ve asked on Unmethours to see if there is any way to downgrade an IDF file, although it seems a bit far-fetched.

Do you see any other way forward with this?
I´m happy to investigate the syntax differences between IDF 7.x -> IDF 9.x, but I´m afraid I´ve never looked into the code of a tool like this (nor do I grasp the size of the effort to adjust it).

PS: Somehow it feels that this conversation overlaps with this other, and both are different ways around the same problem. Perhaps a New feature request on Energyplus repository helps?

I can bring this conversation to the attention of the folks at DOE who instigated the initial contract to see if they’re interested in updating the tool. I don’t know what else to do at this point.

That´d be great - I´m sure there are more people that would find it helpful.

I dont know if there is something I could do on my side, if there is just let me know :slight_smile:

Hi @Greg_Ward,

there have been some updates on Unmethours (e+ forum) about how to solve the syntax problem. Apparently, it has to do with the elimination of one field in the surface objects in the IDF, for versions 9.x. That has shifted the position of the point coordinates by one place which I believe could be the reason why adduvf fails to recreate the last point.

There is a detailed explanation here:

I wonder how much it would simplify the update of the tool, or maybe not at all.

If this is the only change, then I can certainly update eplus_adduvf to accommodate. In place of the “Autocalculate” keyword, your file has nothing (just a comma to indicate a field goes there). Of course, I can work with either one. I just need some reassurance that this is the only change I need worry about. I will comment on the Unmet Hours thread thread referenced above.

I went ahead and updated eplus_adduvf to work with IDF version 9.x. It was pretty easy in the end. I don’t know how long it will take to get from CVS to your binary distribution, but you can try to short-cut the process if you have a compiler.

Thanks, that´s great news! :smiley: :clap:

I don´t know how to use a compiler myself, but I´m happy to wait for it to be rolled out.

Hi Rafael,

You can find the windows binaries compiled from the CVS here: https://github.com/sariths/radAux/raw/master/windows/cvsCompile23Jan2020.zip
I think if you replace the existing eplus_adduvf.exe in your Radiance bin directory with the one from the archive above, it should work.

Sarith

2 Likes

Thanks for posting up a Windows binary, Sarith! I have updated the NREL git repo with the source, but don’t have the build VMs back up and running yet so this is helpful.

Thanks for that Sarith!

I´ve downloaded the package to test eplus_adduvf.exe but I get two errors for missing .dlls. Is this normal?

Moving eplus_adduvf.exe to its native Radiance/bin folder doesn´t really help.

image

image

Hi Rafael,

The installation, at least the call to eplus_adduvf, appears to be working fine on my system. I had compiled this on a Windows 10, x64 machine.:
image
I think @Rob_Guglielmetti2 might have an idea regarding the compile settings that would work on all machines. I have uploaded my bin folder on to github. You could try renaming your existing bin folder (to bin2 or such) and see if it works with the binaries from my system.

Regards,
Sarith

Somehow I still get the same errors using your bin folder. If it helps I´m also running it on a Windows 10 Home, 64 bits with an Intel i7 and 64GB of RAM.

I´m not really sure if this makes any difference. Maybe Rob knows a way around.

Bummer, yeah this is always a PITA. It’s a library linking issue, and I’m really not well-versed in these kinds of portability issues. The CMake system generally “just works” when making packages, and installing from that. individual compiles can be tricky when sharing like we’re trying to do here. I am sorry the CMake updates and new packages are so old, updates are way overdue and that’s on me. In the meantime, @rafael.alonso are you certain you have temporarily replaced your bin directory with @sarith’s as he described? I feel like if you are calling his version of adduvf and those dlls are in your search path, it should work. But maybe not, heh.

I will try to make the CMake updates and new packages a priority…

Hi Rob.

I have tried once again to download and replace my bin folder with Sariths, but the same two errors persist.

Is there any specific folder where those dll files are supposed to be located?
I could always put them there manually (if that makes sense).

Hi Rafael,

I should be able to recreate this error on a different machine and hopefully post a resolution. I will let you know within a day or two.

Sarith

This executable should work: https://github.com/sariths/radAux/raw/master/windows/tempCompile/eplus_adduvf.exe .Replacing this executable with the one that already exists on your Radiance/bin directory will suffice. The bin directory that I am referring to is your original installation and not the one that I shared on 24th.

I was able to recreate your error on a couple of other machines, and compiled a new version of the executable after some troubleshooting. I tested the IDF that you posted, and the program seems to be working the way it should (the calculated view factors are towards the end of the idf): https://www.dropbox.com/s/8gmr1htpt8ywuhj/Revised.idf?dl=0

Regards,
Sarith

PS: If it still fails, (and you are up for more troubleshooting adventures,) please send me an email at sarith(at)sarith(dot)in.

Now it works, thanks! I´ve replaced the executable on my original bin folder and everything works well.

The Viewfactors are getting written on the idf and look coherent. The problem now comes with EnergyPlus, that doesn´t seem to recognise these view factors and keeps throwing the same error as if they were not there.

I´m investigating why this happens and I´ve opened a thread on unmethours. I´ll keep you posted once I get it solved.