Está en la página 1de 2

DETERMINAR LAS FUNCIONES DE FUERZAS INTERNAS DE LA VIGA

Importamos librerias

In [1]: 1 from sympy.physics.continuum_mechanics.beam import Beam

In [3]: 1 import sympy as sp

Ingresamos las caracteristicas de la viga

In [22]: 1 E = 1
2 I = 1
3 L = 11
4 x = sp.Symbol("x")
5 viga = Beam(length = L, elastic_modulus = E, second_moment = I, variable = x)

Aplicamos las cargas y reacciones

In [23]: 1 R1, R2 = sp.symbols("R1 R2")


2 viga.apply_load(value=sp.Rational(12,5), start=0, order=1, end=5)
3 viga.apply_load(value=sp.Rational(20,6), start=5, order=1, end=L)
4 viga.apply_load(value=R1, start=0, order=-1)
5 viga.apply_load(value=R2, start=L, order=-1)

Dibujamos el esquema de la viga

In [30]: 1 viga.draw().show()

Calculamos las reacciones


In [25]: 1 viga.solve_for_reaction_loads(R1, R2)
2 viga.reaction_loads

Out[25]: {R1: -350/11, R2: -640/11}

Graficamos las funciones de fuerzas internas

In [26]: 1 viga.plot_bending_moment()

Out[26]: <sympy.plotting.plot.Plot at 0x7f2608f329a0>

In [27]: 1 viga.plot_shear_force()

Out[27]: <sympy.plotting.plot.Plot at 0x7f2613896460>

Pedimos las ecuaciones de funciones internas

In [28]: 1 viga.bending_moment()

− 350⟨𝑥⟩
1 2⟨𝑥⟩3 2 + 7⟨𝑥 − 5⟩3 − 640⟨𝑥 − 11⟩1 − 10⟨𝑥 − 11⟩2 − 5⟨𝑥 − 11⟩3
Out[28]:

11 + 5 − 6⟨𝑥 − 5⟩ 45 11 9
In [29]: 1 viga.shear_force()

− 350⟨𝑥⟩
0 6⟨𝑥⟩2 1 + 7⟨𝑥 − 5⟩2 − 640⟨𝑥 − 11⟩0 − 20⟨𝑥 − 11⟩1 − 5⟨𝑥 − 11⟩2
Out[29]:

11 + 5 − 12⟨𝑥 − 5⟩ 15 11 3

También podría gustarte