You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code would make a lot more sense with some basic objects to represent a force, bolt, and bolt pattern. However, this implementation would be a major code refactoring and testing. I want to make note of it and implement it in the future.
The following is generally what I think the classes will look like but this is certainly subject to change.
Bolt
Data Members
bolt number
user_x
user_y
(user_x, user_y)
cx
cy
[cx, cy]
Rsx
Rsy
[Rsx, Rsy]
Rex
Rey
[Rex, Rey]
R
dx
dy
[dx, dy]
d
delta
r (ratio of R/Rult)
Rux
Ruy
[Rux, Ruy]
Methods
calculate d
calculate delta
calculate R
calc_bolt_coords_wrt_centroid; return cx, cy
update_bolt_coords_wrt_ic; returns dx, dy
Bolt Pattern
Data Members
ixx
iyy
j
dmax
rult
x_cent
y_cent
Methods
calc_ixx
calc_iyy
calc_j
calc_centroid
find_dmax
Force
Data Members
user_x
user_y
user_z
(user_x, user_y, user_z)
px
py
pz
(px, py, pz)
mx
my
mz
[mx, my, mz]
cx
cy
cz
[cx, cy, cz]
e
rx
ry
[rx, ry]
Methods
calc_force_coords_wrt_centroid; return cx, cy, e
calc_moments_about_centroid; returns mx, my, mz
update_force_coords_wrt_ic; returns rx, ry
The text was updated successfully, but these errors were encountered:
The code would make a lot more sense with some basic objects to represent a force, bolt, and bolt pattern. However, this implementation would be a major code refactoring and testing. I want to make note of it and implement it in the future.
The following is generally what I think the classes will look like but this is certainly subject to change.
Bolt
Data Members
Methods
Bolt Pattern
Data Members
Methods
Force
Data Members
Methods
The text was updated successfully, but these errors were encountered: