I changed a spring element to link11 actuator element in a command object and defined an axial
force to the actuator.
Spring object:
actuator = _sid
ET,actuator,11
R,actuator,1000,,10 !stiffness 1000, mass 10
Environment branch:
SFE,2431,2,PRES,0,1000 !2431 is the element number, axial...