Hinge
Define a Hinge material, assigned to plate hinges with set_hinge_2d / set_hinge_3d.
Parameters
- name : str
- String naming the material.
- color : Color
- Material appearance. color=rgb(96,96,96)
- moment : float
- Plastic moment m_p, in kNm/m.
- use_rotational_stiffness : str
- Apply the rotational stiffness k. use_rotational_stiffness= 'yes' or 'no'
- k : float
- Rotational stiffness, in kNm/m/rad. Used when use_rotational_stiffness is 'yes'.
Examples
model2d.add_rectangle([0,0],[2,2])
model2d.add_line([1,0],[1,2])
model2d.set_plate(model2d.select([1,1],types='edge'), prj.RigidPlate(name='Plate'))
HingeMaterial = prj.Hinge(name='Hinge Material',
color=rgb(96,96,96),
moment=50,
use_rotational_stiffness='yes',
k=1000)
model2d.set_hinge_2d(model2d.select([1,2],types='vertex'),
material=HingeMaterial)