Package containing python programs for common problems in mechanical engineering curriculum.
Project description
EngineeringToolbox
Table of Contents
WIP Notes
- EngineeringMechanics
- AdMech
- Convert to solver file
- API
- AdMech
- Miscellaneous
- Stats
- Convert to solver file
- API
- Stats
Overview
This is a collection of code I have put together in my spare time. It oringinates from coursework completed in the Mechanical Engineering program at Montana State University. I have made this code available for anyone it may help; however, I do not condone cheating or any practices that might violate MSU's Student Code of Conduct or similar documents at other universities or institutes of higher learning. Basically, just don't cheat. Be a good engineer.
Updates
02 Feb 2021 (PyPI Organizing): Rearranged file architecture to conform to PyPI standards for future release through PyPI. Included license information for future PyPI release. Fixed typos and descriptions of missing folders in various README.md files.
14 Jan 2021 (APIs): Folder descriptions added. APIs added for existing python modules. Learning Python updated to include StackOverflow.
History
The code contained here was written to help me complete assignments in the ME program at MSU. It began with the realization that most of the problems in EGEN201 (Statics) were fairly repetitive and should be easily codable. I ended up going overboard and devoting a substantial amount of time to writing a function that would solve for reaction forces for any statically determinate system.
This helped me see problems in other classes that could be simplified with complex-ish code. Why do something for 6 minutes if you could automate it in 6 hours? You only need 10 repetitions to break even. I proceeded to create "solvers" for common problems for several other classes and continued to do so the next semester.
The original repository, having originated from the engineering mechanics series was named engineeringMechanics, and has since been moved to private and replaced by this repository with better file architecture and an attempt at better layman-style explanations of the code.
Courses Covered
As stated before, I do not condone cheating or any other practice that would violate MSU's Student Code of Conduct or any other similar documents. The code is meant as something to either check your work, in which case, I do not take responsibility for any errors that may occur leading to incorrect or conflicting answers that lead to missed points. Additionally, the code is available to simplify work in higher level classes and as an option to see a very generalized way to approach a problem.
Course | Name | Description of Code |
---|---|---|
EGEN201 | Statics | Solving statically determinate setups, trusses, and shear-moment diagrams |
EMEC250 | Materials Lab | Basic identification of linear portion of the stress strain curve |
EELE250 | Circuits | Generates LaTex Circuit diagrams |
EMEC341 | Adv. Mechanics | I honestly don't remember as of this writing |
EMEC320 | Thermo I | Wiley data tables and automatic interpolation when pulling data from tables |
EGEN350 | Appl Data Analysis | Generalized probability function |
Using the Code
If you already know basic Python, you should be more or less ready to go; however, if you are still pretty green and don't even know/understand the basics of programming as (hopefully) taught in EMEC203, I have linked some Python tutorials below.
If you have already taken EMEC203, I would recommend seeing the MATLAB to Python Primer below. Otherwise, I would recommend following the w3schools Tutorial.
Learning Python
You don't necessarily need to be an expert in Python to be able to use this code, so here are some jumping off points. If you have absolutely no experience, I would recommend checking out the w3schools tutorial. If you have experience with MATLAB, I would recommend checking out the MATLAB to Python Primer.
-
- w3schools is generally where I go to touch up on my syntax if I've been away from Python for a while. The layout is very user-friendly and includes several interactive examples on the site itself.
-
- One of the simplest explanations for the differences between MATLAB and Python that I've found. Provides side-by-side examples of MATLAB code and its Python equivalent.
-
- The official Python tutorial. Not as aesthetically pleasing as w3schools, but it is the official source
-
- Another source I generally use for checking syntax and such.
-
- StackOverflow is pretty much your default source for debugging, troubleshooting, and figuring out very specific syntax problems. It is the most powerful too you'll have if you choose to dig deeper into any programming language.
Downloading
Here are instructions on downloading Python, Anaconda, and this repository. Obviously, you need Python to run the Python code, so that's a very important part of this. This comes with it's own IDE named IDLE. This is a decent way to start, but I vastly prefer Anaconda over IDLE. Anaconda runs in your browser and provides a superior (in my opinion) user experience. Of course, it is up to you. And obviously, you'll want to download this repository if you want to use it.
Python
Here is the download link for Python from the official website. Follow the instructions there for a successful download.
Anaconda
Here is the download link for Anaconda from their website. Follow the instructions there for a successful download.
One note of importance: Anaconda will override the default Python libraries, so installing libraries with Anaconda is different than vanilla Python. Just search Google for 'conda install [package name]' for the install commands.
This Repository
If you scroll back up to the top of the page, you will see a prominent green button labeled 'Code'. Click it, and on the drop down, choose 'Download Zip'. Download this to your workspace folder and unzip it.
Importing a Module
To import one of the modules, simply make sure it is in the same folder as the code you are importing it into.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for EngineeringToolbox-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f4a5111e432a9c5357e6dc780712a97b483e7f6c1e40a1cc7fae9a5f3342a52 |
|
MD5 | cfb0205d544bedb32e23f6f6f1c5eca2 |
|
BLAKE2b-256 | 7210203fbb9ce149c3e9831070abc05a1b355f2cfb3017956ccd7e4ed5395756 |