Skip to content

Commit

Permalink
add new variable W to eliminate need of Wcent in future
Browse files Browse the repository at this point in the history
  • Loading branch information
mjburton committed Nov 3, 2017
1 parent f672dd4 commit 78ea57f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions gpkitmodels/GP/aircraft/wing/chord_spar_loading.py
Expand Up @@ -29,6 +29,7 @@ def setup(self, static, Wcent):
sigmacfrp = Variable("\\sigma_{CFRP}", 1700e6, "Pa", "CFRP max stress")
taucfrp = Variable("\\tau_{CFRP}", 450e6, "Pa", "CFRP fabric stress")
kappa = Variable("\\kappa", 0.2, "-", "max tip deflection ratio")
W = Variable("W", "lbf", "loading weight")

with Vectorize(static.N-1):
Mr = Variable("M_r", "N*m", "wing section root moment")
Expand All @@ -41,12 +42,13 @@ def setup(self, static, Wcent):
constraints = [
# dimensionalize moment of inertia and young's modulus
beam["dx"] == static["d\\eta"],
W == Wcent,
beam["\\bar{EI}"] <= (8*static["E"]*static["I"]/Nmax
/ Wcent/static["b"]**2),
Mr == (beam["\\bar{M}"][:-1]*Wcent*Nmax*static["b"]/4),
/ W/static["b"]**2),
Mr == (beam["\\bar{M}"][:-1]*W*Nmax*static["b"]/4),
sigmacfrp >= Mr/static["S_y"],
beam["\\bar{\\delta}"][-1] <= kappa,
taucfrp >= (beam["\\bar{S}"][-1]*Wcent*Nmax/4/static["t_{shear}"]
taucfrp >= (beam["\\bar{S}"][-1]*W*Nmax/4/static["t_{shear}"]
/ static["c_{ave}"]/static["\\tau"])
]

Expand Down

0 comments on commit 78ea57f

Please sign in to comment.