Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make force and bolt objects #1

Open
mwhit74 opened this issue Jun 2, 2017 · 0 comments
Open

Make force and bolt objects #1

mwhit74 opened this issue Jun 2, 2017 · 0 comments

Comments

@mwhit74
Copy link
Owner

mwhit74 commented Jun 2, 2017

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

1 participant