4. LOS OBJETIVOS DEL PROCESO DE ENSEÑANZA-APREN-
4.2. Clasificación de los objetivos
GetAllSolidPrincipalStresses
VB Syntax
integer GetAllSolidPrincipalStresses (integer nSolidNo, integer nCorner, integer nLC, double pdStresses);
Parameters nSolidNo
An integer value greater than zero passed to the function to specify the number of the solid element for which the principal stresses are to be obtained.
nCorner
An integer value greater than zero passed to the function to specify the corner (node number) of the solid element at which the principal stresses are to be obtained.
nLC
An integer greater than zero passed to the function to specify the load case number for which the principal stresses are to be obtained.
pdStresses
An array of 3 double (8-byte floating-point) values which the function will use to store the principal stresses (S1, S2, and S3) it retrieves from STAAD.Pro.
Remarks
This function retrieves the principal stresses S1, S2, and S3 for a given corner of a solid element for a given load case.
All values are given in units of kips and inches.
Example
Public Sub SolPrinStress()
'Declare OpenSTAAD object variable.
Dim objOpenSTAAD As Output
'Declare an array of 3 double values for storing the function results.
Dim pdStresses(0 To 2) As Double
'Run an instance of OpenSTAAD and open STAAD Example No. 24 (US).
Set objOpenSTAAD = CreateObject("OpenSTAAD.Output.1")
objOpenSTAAD.SelectSTAADFile "C:\SPRO2001\STAAD\Examp\US\examp24.std"
'Get principal stresses for Node 26 of Solid Element no. 7, Load Case no. 2.
objOpenSTAAD.GetAllSolidPrincipalStresses 7, 26, 2, pdStresses(0) 'Close the STAAD file and release the handles to the OpenSTAAD library.
objOpenSTAAD.CloseSTAADFile Set objOpenSTAAD = Nothing End Sub
See Also
GetAllSolidNormalStresses GetAllSolidShearStresses GetAllSolidVonMisesStresses
189
GetAllSolidNormalStresses
VB Syntax
integer GetAllSolidNormalStresses (integer nSolidNo, integer nCorner, integer nLC,double pdStresses)
Parameters nSolidNo
An integer value greater than zero passed to the function to specify the number of the solid element for which the normal stresses are to be obtained.
nCorner
An integer value greater than zero passed to the function to specify the corner (node number) of the solid element at which the normal stresses are to be obtained.
nLC
An integer greater than zero passed to the function to specify the load case number for which the normal stresses are to be obtained.
pdStresses
An array of 3 double (8-byte floating-point) values which the function will use to store the normal stresses (SXX, SYY, and SZZ) it retrieves from STAAD.Pro.
Remarks
This function retrieves the principal stresses SXX, SYY, and SZZ for a given corner of a solid element for a given load case.
All values are given in units of kips and inches.
Example
Public Sub SolNormStress()
'Declare an OpenSTAAD object variable As Output.
Dim objOpenSTAAD As Output
'Declare an array of 3 double values for storing the function results.
Dim pdStresses(0 To 2) As Double
'Run an instance of OpenSTAAD and open STAAD Example No. 24 (US).
Set objOpenSTAAD = CreateObject("OpenSTAAD.Output.1")
objOpenSTAAD.SelectSTAADFile "C:\SPRO2001\STAAD\Examp\US\examp24.std"
'Get normal stresses for Node 26 of Solid Element no. 7, Load Case no. 2.
objOpenSTAAD.GetAllSolidNormalStresses 7, 26, 2, pdStresses(0) 'Close the STAAD file and release the handles to the OpenSTAAD library.
objOpenSTAAD.CloseSTAADFile Set objOpenSTAAD = Nothing End Sub
See Also
GetAllSolidPrincipalStresses GetAllSolidShearStresses GetAllSolidVonMisesStresses
191
GetAllSolidShearStresses
VB Syntax
integer GetAllSolidShearStresses (integer nSolidNo, integer nCorner, integer nLC, double pdStresses)
Parameters nSolidNo
An integer value greater than zero passed to the function to specify the number of the solid element for which the shear stresses are to be obtained.
nCorner
An integer value greater than zero passed to the function to specify the corner (node number) of the solid element at which the shear stresses are to be obtained.
nLC
An integer greater than zero passed to the function to specify the load case number for which the shear stresses are to be obtained.
pdStresses
An array of 3 double (8-byte floating-point) values which the function will use to store the shear stresses (SXY, SYZ, and SZX) it retrieves from STAAD.Pro.
Remarks
This function retrieves the shear stresses SXY, SYZ, and SZX for a given corner of a solid element for a given load case.
All values are given in units of kips and inches.
Example
Public Sub SolShearStress() 'Declare OpenSTAAD object variable.
Dim objOpenSTAAD As Output
'Declare an array of 3 double values for storing the function results.
'Run an instance of OpenSTAAD and open STAAD Example No. 24 (US).
Set objOpenSTAAD = CreateObject("OpenSTAAD.Output.1")
objOpenSTAAD.SelectSTAADFile "C:\SPRO2001\STAAD\Examp\US\examp24.std"
'Get shear stresses for Node 26 of Solid Element no. 7, Load Case no. 2.
objOpenSTAAD.GetAllSolidShearStresses 7, 26, 2, pdStresses(0) 'Close the STAAD file and release the handles to the OpenSTAAD library.
objOpenSTAAD.CloseSTAADFile Set objOpenSTAAD = Nothing End Sub
See Also
GetAllSolidPrincipalStresses GetAllSolidNormalStresses GetAllSolidVonMisesStresses
193
GetAllSolidVonMisesStresses
VB Syntax
integer GetAllSolidVonMisesStresses (integer nSolidNo, integer nCorner, integer nLC, double pdStress)
Parameters nSolidNo
An integer value greater than zero passed to the function to specify the number of the solid element for which the Von Mises Stress is to be obtained.
nCorner
An integer value greater than zero passed to the function to specify the corner (node number) of the solid element at which the Von Mises Stress is to be obtained.
nLC
An integer greater than zero passed to the function to specify the load case number for which the Von Mises Stress is to be obtained.
pdStress
A double (8-byte floating-point) variable name which the function will use to store the Von Mises Stress it retrieves from STAAD.Pro.
Remarks
This function retrieves the Von Mises stress for a given corner of a solid element for a given load case.
All values are given in units of kips and inches.
Example
Public Sub SolVolMise()
'Declare OpenSTAAD object variable.
Dim objOpenSTAAD As Output
'Declare a double variable for storing the function results.
Dim pdStress As Double
'Run an instance of OpenSTAAD and open STAAD Example No. 24 (US).
Set objOpenSTAAD = CreateObject("OpenSTAAD.Output.1")
objOpenSTAAD.SelectSTAADFile "C:\SPRO2001\STAAD\Examp\US\examp24.std"
'Get Von Mises stress for Node 26 of Solid Element no. 7, Load Case no. 2.
objOpenSTAAD.GetAllSolidVonMisesStresses 7, 26, 2, pdStress
'Close the STAAD file and release the handles to the OpenSTAAD library.
objOpenSTAAD.CloseSTAADFile Set objOpenSTAAD = Nothing End Sub
See Also
GetAllSolidPrincipalStresses GetAllSolidNormalStresses GetAllSolidShearStresses