Skip to content

Instantly share code, notes, and snippets.

View moorepants's full-sized avatar

Jason K. Moore moorepants

View GitHub Profile
@moorepants
moorepants / chaos_pendulum_pythreejs_manual.ipynb
Created November 24, 2019 16:09
Example of how to manually use pythreejs to animate a PyDy scene.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@moorepants
moorepants / mae223-eom-example-figure.png
Last active November 21, 2019 20:25
MAE 223 Fall 2019 L18
mae223-eom-example-figure.png
@moorepants
moorepants / engrxiv-papers.csv
Last active February 20, 2024 08:40
A look at download counts from Engrxiv
We can't make this file beautiful and searchable because it's too large.
GUID,Title,Abstract,status,"file url","Download count",URL,"Preprint DOI","Publisher DOI","Date created","Date modified"
mkzp5,"A stochastic multiscale peridynamic model for corrosion-induced fracture","Concrete fracture caused by corrosion of the reinforcing bars plays a key role in accelerating rebar corrosion and causing subsequent structure failure. To better predict this process, we introduce a three-phase stochastic peridynamic model, with the simplest constitutive relation (linear elastic with brittle failure), that avoids the need for explicit concrete microstructure geometry representations. The model links information from the composition at the microscale (phase volume fractions) to the macroscale fracture behavior, while costing the same as a fully homogenized model. We show that a similar peridynamic homogenized model fails in capturing the correct fracture modes/patterns in these problems where the microstructure controls failure behavior. The multiscale model is used to study fracture in reinfo
@moorepants
moorepants / subs_derivatives.ipynb
Last active November 1, 2019 05:43
Example showing that subs doesn't work as you might expect with derivatives.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@moorepants
moorepants / MAE_BIM 223 Prior Knowledge Survey (Responses) - Form Responses 1.csv
Last active October 2, 2019 14:11
mae223-fall-2019-prior-knowledge-results.ipynb
Timestamp Rate each of these [Write F=ma for planar single pendulum using the Newton-Euler method] Rate each of these [Write F=ma for planar double pendulum using the Newton-Euler method] Rate each of these [Write F=ma for a planar double pendulum using Lagrange's approach] Rate each of these [Write F=ma for a two body system in 3D using any method] Rate each of these [Use generalized coordinates to describe a systems configuration] Rate each of these [Take the dot product of two 3D vectors] Rate each of these [Take the cross product of two 3D vectors] Rate each of these [Differentiate a vector expression] Rate each of these [Find the instantaneous center of rotation of a moving 2D body] Rate each of these [Calculate the velocity of an arbritrary point on a body given the velocity of another point] Rate each of these [Calculate the acceleration of one point on a body given the velocity and acceleration of another point on the body] Rate each of these [Find the center of mass of a collection of bodies] Rate ea
@moorepants
moorepants / auto_lateral_dynamics_numeric.ipynb
Last active December 7, 2018 06:11
Simulates the lateral dynamics of an automobile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@moorepants
moorepants / auto_lateral_dynamics_symbolic.ipynb
Last active August 9, 2020 05:49
Derives the equations of motion for the lateral dynamics of a car model using Lagrange's method.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@moorepants
moorepants / shoe-tying-robot-press.txt
Last active August 20, 2018 18:37
Shoe Tying Robot Press
https://laughingsquid.com/shoe-tying-robot/
http://www.gizmodo.co.uk/2018/08/this-470-shoelace-tying-robot-was-built-on-a-shoestring-budget/
https://www.indiatimes.com/technology/science-and-future/here-s-a-600-shoelace-tying-robot-for-when-style-matters-more-than-purpose-351069.html
https://www.robothusiast.com/this-robot-can-tie-your-shoes/
https://www.gizmodo.com.au/2018/08/this-800-shoelace-tying-robot-was-built-on-a-shoestring-budget/
https://www.15minutenews.com/article/151191454/students-build-shoelace-tying-robot-for-600/
https://www.desymbol.com/uc-davis-engineering-students-on-a-shoestring-budget-build-a-clever-robot-that-can-tie-shoes/
https://buzzanything.com/uc-davis-engineering-students-on-a-shoestring-budget-build-a-clever-robot-that-can-tie-shoes/
https://interestingengineering.com/video/this-600-robot-ties-shoes-cheaper-than-nikes-self-lacing-sneakers
https://www.follownews.com/students-build-shoelacetying-robot-for-600-4ryae
@moorepants
moorepants / environment.yml
Last active January 18, 2024 03:49
Realtime Low and High Pass Butterworth Filters
name: filter
channels:
- conda-forge
- defaults
dependencies:
- numpy
- scipy
- matplotlib
- sympy
- dynamicisttoolkit
@moorepants
moorepants / bicycle_route_time_energy.R
Last active July 22, 2019 20:28
Sample script and data for simulating a bicyclist traversing a bicycle route. Companion slides are here: https://tinyurl.com/squiggly-cosmos2018
# This script loads in a data file that contains latitude, longitude, and
# altitude of bicycle route, converts the route to a Cartesian path, simulates a
# bicyclist traversing the using constant power, and computes the total travel
# time and energy cost.
#
# MIT Licensed. Copyright 2018-2019 Jason K. Moore
# step 1: download and load the data
# Bicycle route collected from bikeroll.net and converted from GPX to CSV by
# www.gpsvisualizer.com/convert_input.