Created
March 12, 2020 15:28
-
-
Save natolambert/97829b701b9ca29684cc2b3054b2f250 to your computer and use it in GitHub Desktop.
Optimization Problem
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
def jumper(parameters): | |
rho = 2300 | |
E = 170e9 | |
T = 550e-6 | |
lamb = 13.75 | |
w = parameters["w"] | |
x_max = 5e-3 | |
N = parameters["N"] | |
L = parameters["L"] | |
k = 8 * (E * w ** 3 * T) / (N * L ** 3) | |
x = x_max | |
x_cant = x / (4 * N) | |
F_required = k * x | |
strain = (3 / 2) * (x_cant) * w / (L / 4) ** 2 | |
U_stored = 0.5 * k * x ** 2 | |
return {"Energy": (U_stored, 0.0), | |
"Strain": (strain, 0.0), | |
"Force": (F_required, 0.0)} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment