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
Nov 30, 2017
1 parent
da0ec49
commit 1293218
Showing
5 changed files
with
57 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
from gpkit import Model, parse_variables | ||
|
||
class CFRP(Model): | ||
""" Carbon Fiber Reinforced Plastic Material Properties | ||
Variables | ||
--------- | ||
rho 1.6 [g/m^3] density of CFRP | ||
tmin 0.012 [in] minimum gauge thickness | ||
tau 570 [MPa] torsional stress limit | ||
LaTex Strings | ||
------------- | ||
rho \\rho_{\\mathrm{CFRP}} | ||
tmin t_{\\mathrm{min-CFRP}} | ||
tau \\tau_{\\mathrm{CFRP}} | ||
""" | ||
def setup(self): | ||
exec parse_variables(CFRP.__doc__) | ||
|
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,21 @@ | ||
from gpkit import Model, parse_variables | ||
|
||
class Kevlar(Model): | ||
""" Kevlar Material Properties | ||
Variables | ||
--------- | ||
rho 0.049 [g/m^3] density of Kevlar | ||
tmin 0.012 [in] minimum gauge thickness | ||
tau 200 [MPa] torsional stress limit | ||
LaTex Strings | ||
------------- | ||
rho \\rho_{\\mathrm{Kevlar}} | ||
tmin t_{\\mathrm{min-Kevlar}} | ||
tau \\tau_{\\mathrm{Kevlar}} | ||
""" | ||
def setup(self): | ||
exec parse_variables(Kevlar.__doc__) | ||
|