Creo Simulate Spring Items
A spring connects two points or a point to the ground in the specified model. It provides the stiffness that you specify at the location on the model where you place it. The stiffness can be translational (force per unit length) or torsional (torque). The force generated by the spring is proportional to the amount of displacement that occurs. The functions described in this section enable you to access the data and contents of the Creo Simulate spring items. Springs use the ProType field in the ProMechitem structure as PRO_SIMULATION_SPRING.
Functions Introduced:
The function
ProMechspringReferencesGet() returns the geometrical references specified while modeling the spring. The references define the location of the spring on the model. Use the function
ProMechspringReferencesSet() to set the geometrical references for the spring.
The function
ProMechspringTypeGet() returns the type of the specified spring. The output argument
Type has one of the following values:
• PRO_MECH_SPRING_SIMPLE—Specifies a simple spring. This type of spring connects two points, two vertices, a point to an edge, a point to a surface, a point to a pattern of points, a point to a single point feature. The extensional and torsional stiffness properties will be defined for this spring.
• PRO_MECH_SPRING_GROUND—Specifies a To Ground spring. This type of string connects a point, a single point feature, or a single pattern of points to ground. The spring stiffness properties and the orientation are defined for this spring.
A separate properties object can be defined for this type of spring.
• PRO_MECH_SPRING_ADVANCED—Specifies an Advanced spring. This type of spring connects two points, a point to an edge, a point to a surface, a point to a pattern of points, or a point to a single point feature. The stiffness properties, orientation properties, and an additional rotation are defined for this spring. Use the function
ProMechspringAdvanceddataGet() to provide access to the data structure containing the advanced spring data. Use the function
ProMechspringAdvanceddataSet() to modify the data structure containing the advanced spring data.
Extensional stiffness of a spring resists the stretching or compression of the spring. The extensional stiffness of the spring is of constant stiffness or is defined by a force-deflection curve. The function
ProMechsimplespringdataExtensionalstiffnessValueGet() returns the extensional stiffness of the spring. Use the function
ProMechsimplespringdataExtensionalstiffnessValueSet() to set the extensional stiffness for the spring.