Git Product home page Git Product logo

cnxn's Introduction

��# mwhit74

cnxn's People

Contributors

mwhit74 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

cnxn's Issues

Make force and bolt objects

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.