perryjohnson / spardesign

parametric analysis of biplane spars
1 stars 1 forks source link

mismatched layup files #19

Open perryjohnson opened 12 years ago

perryjohnson commented 12 years ago

The two scripts truegrid/writeTGscripts.py and main.py MUST read the same layup file! As of now, this layup file can either be:

One of these filenames needs to be entered into BOTH scripts in order for them to run properly.

Today, I accidentally had

data = rl.readLayupFile('truegrid/biplane_spar_layup_20120306.txt')

in truegrid/writeTGscripts.py, but still had

data = rl.readLayupFile('truegrid/monoplane_spar_layup.txt')

in main.py, so all of the trapezoidal transition elements were not properly assigned theta1 values. This was because when the script checked the middle coordinates of these elements to find out if it fell inside the bounds of the spar caps or the shear webs or the root buildup, it was using the bounds from the monoplane layup file, not the bounds from the biplane layup file.

perryjohnson commented 12 years ago

this can be fixed by unifying all the steps in the README file into one master script. main.py should be demoted, and a new main.py should be written to run all four scripts: