trnslator.trnsys.trnbuild_idf¶
-
trnslator.trnsys.trnbuild_idf(idf_file, output_folder=None, template=None, dck=False, nonum=False, N=False, geo_floor=0.6, refarea=False, volume=False, capacitance=False, trnsidf_exe=None)[source]¶ This program sorts and renumbers the IDF file and writes a B18 file based on the geometric information of the IDF file and the template D18 file. In addition, an template DCK file can be generated.
Important
Where settings.trnsys_default_folder must be defined inside the configuration file of the package
Example
>>> # Exemple of setting kwargs to be unwrapped in the function >>> kwargs_dict = {'dck': True, 'geo_floor': 0.57} >>> # Exemple how to call the function >>> trnbuild_idf(idf_file,template=os.path.join( >>> settings.trnsys_default_folder, >>> r"Building\trnsIDF\NewFileTemplate.d18"
- Parameters
idf_file (str) – path/filename.idf to the T3D file “a SketchUp idf file”
output_folder (str, optional) – location where output files will be
template (str) – path/NewFileTemplate.d18
dck (bool) – If True, create a template DCK
nonum (bool, optional) – If True, no renumeration of surfaces
N (optional) – BatchJob Modus
geo_floor (float, optional) – generates GEOSURF values for distributing direct solar radiation where geo_floor % is directed to the floor, the rest to walls/windows. Default = 0.6
refarea (bool, optional) – If True, floor reference area of airnodes is updated
volume (bool, True) – If True, volume of airnodes is updated
capacitance (bool, True) – If True, capacitance of airnodes is updated
trnsidf_exe (str) – Path of the trnsidf.exe executable
- Returns
status
- Return type
- Raises
CalledProcessError – When could not run command with trnsidf.exe (to create BUI file from IDF (T3D) file