General InformationThis opening ID is invoked when using the Analyze Torsion command. The table below provides you with information related to the definition of the Opening ID.
Input ObjectsInput objects must be of the following types:
Context Object Parameters
SampleThe following sample describes how to compute the critical torsion value during a torsion analysis.
// variables declaration
let CriticalTorsionAngle(ANGLE)
let Diameter(Real)
let StartAbscissa(Real)
let EndAbscissa(Real)
let SegmentLength(Real)
let ProfileType(Integer)
/* retrieve parameters values */
set ProfileType= Parameters.GetAttributeInteger("SegmentProfile")
set Diameter = Parameters.GetAttributeReal("StartProfileDimension1")
set StartAbscissa = Parameters.GetAttributeReal("StartAbscissa")
set EndAbscissa = Parameters.GetAttributeReal("EndAbscissa")
/* computation */
set CriticalTorsionAngle = 30deg /* default value */
set SegmentLength = EndAbscissa-StartAbscissa
if (SegmentLength<=100 and Diameter<=10)
set CriticalTorsionAngle = 20deg
else if (SegmentLength<=100 and Diameter>10)
set CriticalTorsionAngle = 20deg
else if (SegmentLength>100 and SegmentLength<=200 and Diameter<=10)
set CriticalTorsionAngle = 70deg
else if (SegmentLength>100 and SegmentLength<=200 and Diameter>10)
set CriticalTorsionAngle = 35deg
else if (SegmentLength>200 and Diameter<=10)
set CriticalTorsionAngle = 180deg
else if (SegmentLength>200 and Diameter>10)
set CriticalTorsionAngle = 70deg
/* Valuate the output */
Parameters.SetAttributeReal("Angle", CriticalTorsionAngle)
| |||||||||||||||||||||||||||||||||||||||||||||||||||||