|
@@ -43,7 +43,11 @@ inputs = [
|
|
|
{'type': "d11", 'value': [4.4E-3]},
|
|
|
{'type': "d22", 'value': [3.1E-3]},
|
|
|
{'type': "d33", 'value': [3.1E-3]},
|
|
|
- {'type': "angles", 'value': [90, 0, 0, 0, 0, 0]}
|
|
|
+ {'type': "angles", 'value': [90, 0, 0, 0, 0, 0]},
|
|
|
+ {'type': "outer_diameter", 'value': [0.250]},
|
|
|
+ {'type': "inner_diameter", 'value': [0.050]},
|
|
|
+ {'type': "thickness", 'value': [0.005]},
|
|
|
+ {'type': "omega", 'value': [1]}
|
|
|
]
|
|
|
|
|
|
outputs = [
|
|
@@ -65,14 +69,15 @@ def update():
|
|
|
materials = []
|
|
|
for i in range(0, len(inputs[0]['value'])):
|
|
|
material = {}
|
|
|
- for j in range(0, len(inputs) - 1):
|
|
|
+ for j in range(0, len(inputs) - 5):
|
|
|
material[inputs[j]['type']] = inputs[j]['value'][i]
|
|
|
materials.append(material)
|
|
|
success = False
|
|
|
while not success:
|
|
|
try:
|
|
|
outputs[0]['value'][0], outputs[1]['value'][0], outputs[2]['value'][0], outputs[3]['value'][
|
|
|
- 0], outputs[4]['value'][0], outputs[5]['value'][0], outputs[6]['value'][0] = gfk_plate.sim_rotor(materials, inputs[len(inputs) - 1]['value'])
|
|
|
+ 0], outputs[4]['value'][0], outputs[5]['value'][0], outputs[6]['value'][0] = gfk_plate.sim_rotor(
|
|
|
+ materials, inputs[len(inputs) - 5]['value'], inputs[len(inputs) - 4]['value'][0], inputs[len(inputs) - 3]['value'][0], inputs[len(inputs) - 2]['value'][0], inputs[len(inputs) - 1]['value'][0])
|
|
|
success = True
|
|
|
except PermissionError:
|
|
|
print("Catch Error")
|