Use Case 2: DIstributed Loads

Use Case 2: DIstributed Loads#

%pip install git+https://github.com/lfverlaan/sympy.git@telescope_hinge
Collecting git+https://github.com/lfverlaan/sympy.git@telescope_hinge
  Cloning https://github.com/lfverlaan/sympy.git (to revision telescope_hinge) to c:\users\lucas\appdata\local\temp\pip-req-build-psw7uozs
  Resolved https://github.com/lfverlaan/sympy.git to commit 9b4d2066f1444a8ccc573286e3ae48cc85e32217
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
Requirement already satisfied: mpmath>=1.1.0 in c:\users\lucas\anaconda3\lib\site-packages (from sympy==1.15.0.dev0) (1.3.0)
Note: you may need to restart the kernel to use updated packages.
  Running command git clone --filter=blob:none --quiet https://github.com/lfverlaan/sympy.git 'C:\Users\lucas\AppData\Local\Temp\pip-req-build-psw7uozs'
  Running command git checkout -b telescope_hinge --track origin/telescope_hinge
  branch 'telescope_hinge' set up to track 'origin/telescope_hinge'.
  Switched to a new branch 'telescope_hinge'
# This is a workaround for the fact that micropip does not support git URLs, to make it work in the online book.
import micropip
await micropip.install('../packages/sympy-1.15.0.dev0-py3-none-any.whl')
#takes a while
from sympy.physics.continuum_mechanics.column import Column
import matplotlib.pyplot as plt
c = Column(8, 20000, 0.75)
c.apply_support(0)
c.apply_support(8)
c.apply_load(-100, 8, -1)
c.apply_load(-20, 0, 0, end = 8) # Uniform distributed load
c.apply_load(-10, 4, 1, end = 0) # Ramp load, starts at x = 4
c.solve_for_reaction_loads()
c.reaction_loads
{R_0: 440/3, R_8: 580/3}
c.plot_axial_force();
../../../_images/57056eaa1bb58bc101c3308c7e5f0eeed73c8bbd9e53428bd7c07416fdf82cd5.png
c.plot_deflection();
../../../_images/0740a33e5ed7ef02f9525ec4124f824bad4134fda2a1f5ab6183975c069df168.png