-
Notifications
You must be signed in to change notification settings - Fork 11
/
cfrp.py
40 lines (31 loc) · 1.12 KB
/
cfrp.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
from gpkit import Model, parse_variables
class CFRPFabric(Model):
""" Carbon Fiber Reinforced Plastic Fabric Material Properties
Variables
---------
rho 1.6 [g/cm^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(CFRPFabric.__doc__)
class CFRPUD(Model):
""" Carbon Fiber Reinforced Plastic Unidirectional Material Properties
Variables
---------
rho 1.6 [g/m^3] density of CFRP
E 2e7 [psi] Youngs Modulus of CFRP
sigma 1700 [MPa] maximum stress limit of CFRP
LaTex Strings
-------------
rho \\rho_{\\mathrm{CFRP}}
tmin t_{\\mathrm{min-CFRP}}
sigma \\sigma_{\\mathrm{CFRP}}
"""
def setup(self):
exec parse_variables(CFRPUD.__doc__)