Tetrapod Project
|
Variables | |
int | Ttot = 2 |
int | amax = 4 |
int | Vrob = 1 |
int | dtot = 2 |
tuple | Tr_poly_coeffs = (-dtot -Ttot*Vrob, (2/3)*amax*Ttot, -4/3 + (8/9 - 4/15)*amax) |
Tr_list = poly.Polynomial(Tr_poly_coeffs).roots() | |
Tr = Tr_list[isreal(Tr_list)*(Tr_list>=0)][0] | |
int | Th = Ttot - 2*Tr |
int | a = -(2/3)*amax/(Tr**3) |
tuple | b = (4/3)*amax/Tr |
int | c = -Vrob |
tuple | coeffs = (c, 0, b, 0, a) |
t1 = np.linspace(0, Tr, 50) | |
t2 = np.linspace(Tr, Tr + Th, 100) | |
t3 = np.linspace(Tr + Th, Ttot, 50) | |
f = poly.Polynomial(coeffs) | |
f_int = f.integ() | |
x1 = f(t1) | |
x2 = np.array([f(Tr)]*t2.shape[0]) | |
x3 = f(-t3 + Ttot) | |
t = np.concatenate((t1, t2, t3)) | |
x = np.concatenate((x1, x2, x3)) | |
int calculate_polynomials.Ttot = 2 |
Definition at line 8 of file calculate_polynomials.py.
int calculate_polynomials.amax = 4 |
Definition at line 9 of file calculate_polynomials.py.
int calculate_polynomials.Vrob = 1 |
Definition at line 10 of file calculate_polynomials.py.
int calculate_polynomials.dtot = 2 |
Definition at line 11 of file calculate_polynomials.py.
tuple calculate_polynomials.Tr_poly_coeffs = (-dtot -Ttot*Vrob, (2/3)*amax*Ttot, -4/3 + (8/9 - 4/15)*amax) |
Definition at line 13 of file calculate_polynomials.py.
calculate_polynomials.Tr_list = poly.Polynomial(Tr_poly_coeffs).roots() |
Definition at line 15 of file calculate_polynomials.py.
Definition at line 22 of file calculate_polynomials.py.
Definition at line 24 of file calculate_polynomials.py.
Definition at line 26 of file calculate_polynomials.py.
Definition at line 27 of file calculate_polynomials.py.
int calculate_polynomials.c = -Vrob |
Definition at line 28 of file calculate_polynomials.py.
Definition at line 30 of file calculate_polynomials.py.
calculate_polynomials.t1 = np.linspace(0, Tr, 50) |
Definition at line 32 of file calculate_polynomials.py.
Definition at line 33 of file calculate_polynomials.py.
Definition at line 34 of file calculate_polynomials.py.
calculate_polynomials.f = poly.Polynomial(coeffs) |
Definition at line 35 of file calculate_polynomials.py.
calculate_polynomials.f_int = f.integ() |
Definition at line 36 of file calculate_polynomials.py.
Definition at line 37 of file calculate_polynomials.py.
Definition at line 38 of file calculate_polynomials.py.
Definition at line 39 of file calculate_polynomials.py.
Definition at line 41 of file calculate_polynomials.py.
Definition at line 42 of file calculate_polynomials.py.