The Column class implemented in PR #17122 enables the continuum mechanics module of SymPy to deal with column buckling related calculations. The Column module can calculate the moment equation, deflection equation, slope equation and the critical load for a column defined by a user.
Example use-case of Column class:
>>> from sympy.physics.continuum_mechanics.column import Column >>> from sympy import Symbol, symbols >>> E, I, P = symbols('E, I, P', positive=True) >>> c = Column(3, E, I, 78000, top="pinned", bottom="pinned") >>> c.end_conditions {'bottom': 'pinned', 'top': 'pinned'} >>> c.boundary_conditions {'deflection': [(0, 0), (3, 0)], 'slope': [(0, 0)]} >>> c.moment() 78000*y(x) >>> c.solve_slope_deflection() >>> c.deflection() C1*sin(20*sqrt(195)*x/(sqrt(E)*sqrt(I))) >>> c.slope() 20*sqrt(195)*C1*cos(20*sqrt(195)*x/(sqrt(E)*sqrt(I)))/(sqrt(E)*sqrt(I)) >>> c.critical_load() pi**2*E*I/9
The Column class
The Column class is non-mutable, Continue reading “Everything about SymPy’s Column module”