360x
005366
2023-03-23

Elastic Nodal Support with Python

How can I create an elastic nodal support using the Python program?


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()



Author

Mr. Faulstich is responsible for the quality assurance of the RFEM program and provides customer support.