Thank you for new version of LB tools, which are so good to work with.
Recently, I am tried to translate HB model into DF model and simulate it with URBANopt.
However, I observed that AFN object strings that I supplied to HB model became inactive when translated to DF model. Going through the documentation of DF, I found that only AFN Crack object is available.
Is there anyway I can supply the relevant EnergyPlus strings to DF model to activate them for simulation?
Very good question. I didn’t really build in a pathway for the AFN with the URBANopt component but it’s something that I can add if you badly need it. It just might take some time for it to become a priority since, as far as I know, you are the first person to ask for this.
In the meantime, if you’re just looking to run a bunch of EnergyPlus simulations for your Dragonfly urban model, you can set all of these E+ simulations to use the AFN by translating the Dragonfly Model to Honeybee using the DF Model To Honeybee component. Then, you can trigger all of those Honeybee Models to use the AFN with the HB Airflow Network and simulate the models with the HB Model To OSM component.
Or you could use that component to just translate the Honeybee Models to OSM and simulate them in parallel using the HB Run OSM component.
After your clarification, it sounds like this is probably a very different type of question from what the topic title says. Am I correct that you are basically just asking “how can you apply additional IDF strings to each building IDF that is exported with the URBANopt component?”
So your question isn’t necessarily specific to the AFN. The AFN just happens to be what you have IDF strings for, which you want to inject before simulation.
If my understanding is correct, then you can just use the Inject IDF measure to inject your IDF strings into the files exported and simulated with the URBANopt component. You can see an example of this here in this post:
Note that, if you need to inject different IDF strings for each Building IDF file exported by the URBANopt component, you should use the DF Load Mapper Measure component to load the “Inject IDF” measure instead of the HB Load Measure component. Loading the measure as a “Mapper” allows you to pass lists of input arguments into the component such that each dragonfly Building gets different inputs when it is exported to IDF for simulation.