The Gitlab server is succesfully updated to version 14.4.0

Many users are receiving emails regarding excessive amounts of log-in attempts, which are brute-force attempts to crack your password. We are working on a 2FA solution, so no action is needed yet. If you receive emails regarding "sign-in from new location", please check the IP address and if unknown, notify frza@dtu.dk immediately.

Commit 3ddd6d68 authored by Frederik Zahle's avatar Frederik Zahle
Browse files

fixed error in norm

parent d99cb462
......@@ -135,7 +135,7 @@ class SEAMBladeStructure(Component):
# Calculating thickness flapwise fatigue
tfat_flap = np.zeros(self.Nsections)
for i in range(self.Nsections):
norm = self.solve_tfat_flap(0.01, C[i], thick[i], Mext_flap[i], 1.)
norm = self.solve_tfat_flap(0.01, C[i], thick[i], Mfat_flap[i], 1.)
res = minimize(self.solve_tfat_flap, 0.01, args = (C[i], thick[i], Mfat_flap[i], norm), bounds=[(1.e-6, 0.5)], method = 'SLSQP', tol = 1.e-8)
tfat_flap[i] = res['x']
if not res['success']: print 'WARNING solve_tfat_flap', i, res
......@@ -143,7 +143,7 @@ class SEAMBladeStructure(Component):
# Calculating thickness edgewise fatigue
tfat_edge = np.zeros(self.Nsections)
for i in range(self.Nsections):
norm = self.solve_tfat_edge(0.01, C[i], thick[i], Mext_flap[i], 1.)
norm = self.solve_tfat_edge(0.01, C[i], thick[i], Mfat_flap[i], 1.)
res = minimize(self.solve_tfat_edge, 0.01, args = (C[i], thick[i], Mfat_edge[i], norm), bounds=[(1.e-6, 0.5)], method = 'SLSQP', tol = 1.e-8)
tfat_edge[i] = res['x']
if not res['success']: print 'WARNING solve_tfat_edge', i,res
......
......@@ -8,20 +8,20 @@ class SEAMRotorTestCase(unittest.TestCase):
def setUp(self):
pass
def tearDown(self):
pass
# add some tests here...
#def test_SEAMRotor(self):
#pass
if __name__ == "__main__":
# unittest.main()
top = SEAMBladeStructure()
top.Nsections = 21.
top.Nsections = 21
top.Neq = 1e7
top.WohlerExpFlap = 10.0
top.PMtarget = 1.0
......@@ -94,6 +94,3 @@ if __name__ == "__main__":
plt.grid()
plt.show()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment