Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
mjburton
committed
Apr 29, 2018
1 parent
d057fc5
commit 9bf7a98
Showing
7 changed files
with
57 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
" box spar " | ||
from gpkit import parse_variables, SignomialsEnabled | ||
from gpkitmodels.GP.aircraft.wing.boxspar import BoxSpar as BoxSparGP | ||
|
||
#pylint: disable=exec-used, undefined-variable, unused-argument, invalid-name | ||
|
||
class BoxSpar(BoxSparGP): | ||
""" Box Spar Model | ||
Variables of length N-1 | ||
----------------------- | ||
J [m^4] spar x polar moment of inertia | ||
""" | ||
|
||
def setup(self, N, surface): | ||
exec parse_variables(BoxSpar.__doc__) | ||
self.boxspar = BoxSparGP.setup(self, N=N, surface=surface) | ||
|
||
cave = self.cave | ||
tau = self.tau | ||
w = self.w | ||
tshear = self.tshear | ||
|
||
with SignomialsEnabled(): | ||
constraints = [J <= cave*tau*w*tshear/3*(cave*tau + w)] | ||
|
||
return self.boxspar, constraints |