Answer:
The example program shows two different methods of creating nodal supports. The enumeration type <code>NodalSupportType</code> is used for the first nodal support.
As an alternative, you can also transfer a list. The list has to contain six values. The first three values define the displacement degrees of freedom, the last three define the torsional degrees of freedom.
The value inf
means that the degree of freedom is fixed. With 0
, the degree of freedom is not available. A numerical value defines a spring.
from RFEM.enums import *
from RFEM.initModel import *
from RFEM.BasicObjects.node import Node
from RFEM.TypesForNodes.nodalSupport import NodalSupport
from RFEM.dataTypes import inf
Model(True, 'Nodal_support.rf6')
Model.clientModel.service.begin_modification()
Node(1, 0.0, 0.0, 0.0)
Node(2, 5.0, 0.0, 0.0)
NodalSupport(1, '1', NodalSupportType.HINGED)
NodalSupport(2, '2', [inf, inf, inf, 0, 234000, 0])
Model.clientModel.service.finish_modification()
Model.clientModel.service.close_connection()