This page was generated from
docs/documents/notebooks/analysis/simply_supported_beam_static_gravity.ipynb.
Interactive online version:
-
Download notebook -
Interactive online version:
Static Analysis of Simply Supported BeamΒΆ
[1]:
import ada
[2]:
bm = ada.Beam('bm1', (0,0,0), (5,0,0), 'IPE300')
fem = bm.to_fem_obj(0.05, "solid")
fem.show()
[2]:
[3]:
a = ada.Assembly() / [ada.Part("MyPart", fem=fem) / bm]
# Create a Static Analysis Step with a Gravity load (multiplied with 800 to get deformation)
step = a.fem.add_step(ada.fem.StepImplicitStatic("gravity", nl_geom=True, init_incr=100.0, total_time=100.0))
step.add_load(ada.fem.LoadGravity("grav", -9.81 * 800))
nodes = bm.bbox().sides.get(["front", "back"], return_fem_nodes=True)
a.fem.add_bc(ada.fem.Bc("Fixed", ada.fem.FemSet("bc_nodes", nodes), [1, 2, 3]))
[3]:
Bc("Fixed", type="displacement", dofs=[1, 2, 3], fem_set="bc_nodes")
Note! Visualization of the static analysis steps are not yet supported.
[4]:
result = a.to_fem('my_ss_static_beam', 'code_aster', execute=True, overwrite=True)
result.show()
Created a Code_Aster input deck at "/home/runner/work/adapy/adapy/docs/documents/notebooks/analysis/temp/scratch/my_ss_static_beam"
--------------------------------------------------------------------------------
Starting CodeAster simulation "my_ss_static_beam" (on Linux) using 1 cpus
Finished CodeAster simulation "my_ss_static_beam"
--------------------------------------------------------------------------------
[4]: