Commit 2d3e92d7 authored by Bognár, Á.'s avatar Bognár, Á.
Browse files

Small bug fixes

Removing unnecessary print() from grid_2d func.
parent 3f97e6be
......@@ -59,7 +59,7 @@ def grid_2d(bbox_2d, d):
x2 = y2* a/b
y = max(y1, y2)
x = y * a/b
print('a={}; b={}; x={}; y={}; n={}'.format(a,b,x,y,n))
#print('a={}; b={}; x={}; y={}; n={}'.format(a,b,x,y,n))
xs = (bbox_2d.vertices_list[0][0], bbox_2d.vertices_list[2][0])
ys = (bbox_2d.vertices_list[0][1], bbox_2d.vertices_list[2][1])
xv = np.linspace(xs[0], xs[1], round(x+1, 0))
......
......@@ -30,24 +30,25 @@
from geomeppy.geom.transformations import align_face, invert_align_face
## DAYSIM bin folder path:
bin_dir=r'c:\DAYSIM\bin\\'
## navigate to the working folder and run
## Managing folder structure
cwd = os.getcwd()
for f in os.listdir():
if f.endswith('.idf'):
project_name = f[:-4]
## create folders if they don't exist yet
# create folders if they don't exist yet
for folder in ['res', 'tmp', 'wea', 'geo', 'pts', 'res\\vis']: # res: final results from Daysim with .ill and .dc files, tmp: Daysim poops temp files here, wea: converted wea file, geo: obj rad and pts files. Inputs, such as the idf and sketchup files are in the working directory
pathlib.Path(folder).mkdir(exist_ok=True)
```
%% Cell type:markdown id: tags:
## Reading IDF geometry with Geomeppy
**Set the correct path for the EnergyPlus .idd**For making this example easier to work, I uploaded an EnergyPlus.idd file to the repository, but under normal use the iddfile path should point to your EnergyPlus installation's .idd
**Set the correct path for the EnergyPlus .idd**
For making this example easier to work, I uploaded an EnergyPlus.idd file to the repository, but under normal use the iddfile path should point to your EnergyPlus installation's .idd
%% Cell type:code id: tags:
``` python
source_idf_name = r'{}.idf'.format(project_name)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment