Skip to content
This repository has been archived by the owner on Aug 11, 2023. It is now read-only.

Commit

Permalink
Merge pull request #2 from acrovato/adrien
Browse files Browse the repository at this point in the history
Version 1.0.1
  • Loading branch information
acrovato authored May 10, 2019
2 parents a8300b0 + 0387f90 commit dba7f31
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions shippable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ python:

branches:
only:
- master
- ci_shippable

before_install:
Expand Down
4 changes: 2 additions & 2 deletions wing.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def initData(self, filenames, span, twist, sweep, dihedral, offset):
# apply sweep (translation)
self.pts[i][:, 0] = self.pts[i][:, 0] + np.min(self.pts[i-1][:, 0]) + np.tan(sweep[i-1])*span[i-1]
# apply dihedral (translatation)
self.pts[i][:, 2] = self.pts[i][:, 2] + sum(np.tan(dihedral[0:i-1])*span[0:i-1])
self.pts[i][:, 2] = self.pts[i][:, 2] + sum(np.tan(dihedral[0:i])*span[0:i])
for i in range(0, self.n):
# apply offset
self.pts[i][:, 0] += offset[0] # x
Expand Down Expand Up @@ -215,7 +215,7 @@ def writeLines(self, fname):
file.write('// -- Airfoil {0:d}\n'.format(i))
for j in range(0, self.linaN[i].shape[0]-1):
file.write('Spline({0:d}) = {{'.format(self.linaN[i][j]))
for k in range(self.sptsNg[i][j], self.sptsNg[i][j+1]-1):
for k in range(self.sptsNg[i][j], self.sptsNg[i][j+1]):
file.write('{0:d}, '.format(k))
file.write('{0:d}'.format(self.sptsNg[i][j+1]))
file.write('};\n')
Expand Down

0 comments on commit dba7f31

Please sign in to comment.