• No se han encontrado resultados

La voluntariedad en la adopción de riesgos

El concepto y la justificación del paternalis mo jurídico en Joel Feinberg

11. La justificación del paternalismo: la estrategia del paternalismo blando

11.4. La voluntariedad en la adopción de riesgos

GetPlateCenterVonMisesStresses

VB Syntax

integer GetPlateCenterVonMisesStresses (integer nPlateNo, integer nLC, double pdVONT, double pdVONB)

Parameters nPlateNo

An integer value greater than zero specifying the number of the plate element for which the Von Mises Stresses are to be retrieved.

nLC

An integer greater than zero representing the load case for which the Von Mises Stresses are to be retrieved.

pdVONT

A double (8-byte floating-point) variable name passed to the function for it to use in storing the top Von Mises stress it retrieves from STAAD.Pro.

pdVONB

A double (8-byte floating-point) variable name passed to the function for it to use in storing the bottom Von Mises stress it retrieves from STAAD.Pro.

Remarks

This function retrieves the top and bottom Von Mises stresses for the center of a given plate for a given load case.

Example

Sub VonMise()

'Declare OpenSTAAD object variable As Output.

Dim objOpenSTAAD As Output

'Declare two double variables for storing the function results.

Dim pdVONT As Double Dim pdVONB As Double

'Run an instance of OpenSTAAD and open STAAD Example No. 23 (US).

Set objOpenSTAAD = CreateObject("OpenSTAAD.Output.1")

objOpenSTAAD.SelectSTAADFile "C:\SPRO2001\STAAD\Examp\US\examp23.std"

'Get Von Mises Stresses for center of plate 87, Load Case 1.

objOpenSTAAD.GetPlateCenterVonMisesStresses 87, 1, pdVONT, pdVONB 'Close the STAAD file and release the handles to the OpenSTAAD library.

objOpenSTAAD.CloseSTAADFile Set objOpenSTAAD = Nothing End Sub

See Also

GetAllPlateCenterMoments

GetAllPlateCenterPrincipalStressesAndAngles GetAllPlateCenterForces

GetPlateCenterNormalPrincipalStresses GetAllPlateCenterStressesAndMoments

177

GetAllPlateCenterPrincipalStressesAndAngles

VB Syntax

integer GetAllPlateCenterPrincipalStressesAndAngles (integer nPlateNo, integer nLC, double pdStresses)

Parameters nPlateNo

An integer value greater than zero specifying the number of the plate element for which the center principal stresses and angles are to be obtained.

nLC

An integer greater than zero representing the load case for which the plate center principal stresses and angles are to be obtained.

pdStresses

An array of 8 double (8-byte floating-point) values which the function will use to store the the plate center principal stresses and angles it retrieves from STAAD.Pro (SMAX, SMIN, TMAX, ANGLE: top and bottom).

Remarks

This function retrieves the maximum and minimum principal stresses (SMAX and SMIN), the maximum shear stress (TMAX) and the principal plane angle for the top and bottom of a given plate for a given load case. The plate number and load case number are passed to the function. The function retrieves the principal stresses and angles and stores them in the pdStresses array in the following order:

1) pdStresses (0) = SMAX (top) All values are given in units of kips and inches.

Example

Public Sub PlatePrinStres() 'Declare OpenSTAAD object variable.

Dim objOpenSTAAD As Output

'Declare a double 8-value array variable for storing the function results.

Dim pdStresses(0 To 7) As Double

'Run an instance of OpenSTAAD and open STAAD Example No. 23 (US).

Set objOpenSTAAD = CreateObject("OpenSTAAD.Output.1")

objOpenSTAAD.SelectSTAADFile "C:\SPRO2001\STAAD\Examp\US\examp23.std"

'Get principal stresses for center of plate 87, Load Case 2.

objOpenSTAAD.GetAllPlateCenterPrincipalStressesAndAngles 87, 2, pdStresses(0) 'Close the STAAD file and release the handles to the OpenSTAAD library.

objOpenSTAAD.CloseSTAADFile Set objOpenSTAAD = Nothing End Sub

See Also

GetPlateCenterVonMisesStresses GetAllPlateCenterMoments GetAllPlateCenterForces

GetPlateCenterNormalPrincipalStresses GetAllPlateCenterStressesAndMoments

179

GetAllPlateCenterMoments

VB Syntax

integer GetAllPlateCenterMoments (integer nPlateNo, integer nLC, double pdMoments);

Parameters nPlateNo

An integer value greater than zero specifying the number of the plate element for which the plate center moments are to be obtained.

nLC

An integer greater than zero representing the load case for which the plate center moments are to be obtained.

pdMoments

An array of 3 double (8-byte floating-point) values which the function will use to store the the plate center moments (MX, MY, MXY) it retrieves from STAAD.Pro.

Remarks

This function retrieves the plate center moments MX, MY, and MXY for a given plate and load case.

All values are given in units of kips and inches.

Example

Sub PlateCtrMom()

'Declare OpenSTAAD object variable.

Dim objOpenSTAAD As Output

'Declare an array of 3 double values for storing the function results.

Dim pdMoments(0 To 2) As Double

'Run an instance of OpenSTAAD and open STAAD Example No. 23 (US).

Set objOpenSTAAD = CreateObject("OpenSTAAD.Output.1")

objOpenSTAAD.SelectSTAADFile "C:\SPRO2001\STAAD\Examp\US\examp23.std"

'Get moments for center of plate 87, Load Case 2.

objOpenSTAAD.GetAllPlateCenterMoments 87, 2, pdMoments(0)

'Close the STAAD file and release the handles to the OpenSTAAD library.

objOpenSTAAD.CloseSTAADFile Set objOpenSTAAD = Nothing End Sub

See Also

GetPlateCenterVonMisesStresses

GetAllPlateCenterPrincipalStressesAndAngles GetAllPlateCenterForces

GetPlateCenterNormalPrincipalStresses GetAllPlateCenterStressesAndMoments

181

GetAllPlateCenterForces

VB Syntax

integer GetAllPlateCenterForces (integer nPlateNo, integer nLC,double pdForces)

Parameters nPlateNo

An integer value greater than zero specifying the number of the plate element for which the plate center forces are to be obtained.

nLC

An integer greater than zero representing the load case for which the plate center forces are to be obtained.

pdForces

An array of 5 double (8-byte floating-point) values which the function will use to store the the plate center forces (SQX, SQY, SX, SY, and SXY) it retrieves from STAAD.Pro.

Remarks

This function retrieves the plate center forces SQX, SQY, SX, SY, and SXY for a given plate and load case.

All values are given in units of kips and inches.

Example

Public Sub PlateCtrForces() 'Declare OpenSTAAD object variable.

Dim objOpenSTAAD As Output

'Declare an array of 5 double values for storing the function results.

Dim pdForces(0 To 4) As Double

'Run an instance of OpenSTAAD and open STAAD Example No. 23 (US).

Set objOpenSTAAD = CreateObject("OpenSTAAD.Output.1")

objOpenSTAAD.SelectSTAADFile "C:\SPRO2001\STAAD\Examp\US\examp23.std"

objOpenSTAAD.GetAllPlateCenterForces 87, 2, pdForces(0)

'Close the STAAD file and release the handles to the OpenSTAAD library.

objOpenSTAAD.CloseSTAADFile Set objOpenSTAAD = Nothing End Sub

See Also

GetPlateCenterVonMisesStresses

GetAllPlateCenterPrincipalStressesAndAngles GetAllPlateCenterMoments

GetPlateCenterNormalPrincipalStresses

GetAllPlateCenterStressesAndMoments

183

GetPlateCenterNormalPrincipalStresses

VB Syntax

integer GetPlateCenterNormalPrincipalStresses (integer nPlateNo, integer nLC, double pdSMAX, double pdSMIN)

Parameters nPlateNo

An integer value greater than zero specifying the number of the plate element for which the center normal principal stresses are to be obtained.

nLC

An integer greater than zero representing the load case for which the plate center normal principal stresses are to be obtained.

pdSMAX

A double (8-byte floating-point) variable name which the function will use to store the plate top center normal principal stress (SMAX) it retrieves from STAAD.Pro.

pdSMIN

A double (8-byte floating-point) variable name which the function will use to store the plate bottom center normal principal stress (SMIN) it retrieves from STAAD.Pro.

Remarks

This function retrieves the plate center top and bottom normal principal stresses (SMAX and SMIN) for a given plate and load case.

All values are given in units of kips and inches.

Example

Public Sub PlCtrNPS()

'Declare OpenSTAAD object variable.

Dim objOpenSTAAD As Output

'Declare 2 double variables for storing the function results.

Dim pdSMAX As Double Dim pdSMIN As Double

'Run an instance of OpenSTAAD and open STAAD Example No. 23 (US).

Set objOpenSTAAD = CreateObject("OpenSTAAD.Output.1")

objOpenSTAAD.SelectSTAADFile "C:\SPRO2001\STAAD\Examp\US\examp23.std"

'Get normal principal stresses for center of plate 87, Load Case 2.

objOpenSTAAD.GetPlateCenterNormalPrincipalStresses 87, 2, pdSMAX, pdSMIN 'Close the STAAD file and release the handles to the OpenSTAAD library.

objOpenSTAAD.CloseSTAADFile Set objOpenSTAAD = Nothing End Sub

See Also

GetPlateCenterVonMisesStresses

GetAllPlateCenterPrincipalStressesAndAngles GetAllPlateCenterMoments

GetAllPlateCenterForces

GetAllPlateCenterStressesAndMoments

185

GetAllPlateCenterStressesAndMoments

VB Syntax

integer GetAllPlateCenterStressesAndMoments (integer nPlateNo, integer nLC, double pdStresses)

Parameters nPlateNo

An integer value greater than zero specifying the number of the plate element for which the center stresses and moments are to be obtained.

nLC

An integer greater than zero representing the load case for which the plate center stresses and moments are to be obtained.

pdStresses

An array of 8 double (8-byte floating-point) values which the function will use to store the plate center stresses and moments (SQX, SQY, MX, MY, MXY, SX, SY, and SXY) it retrieves from STAAD.Pro.

Remarks

This function retrieves the plate center stresses and moments SQX, SQY, MX, MY, MXY, SX, SY, and SXY for a given plate and load case.

All values are given in units of kips and inches.

Example

Public Sub PlCtrStrMom()

'Declare OpenSTAAD object variable.

Dim objOpenSTAAD As Output

'Declare an array of 8 double values for storing the function results.

Dim pdStresses(0 To 7) As Double

'Run an instance of OpenSTAAD and open STAAD Example No. 23 (US).

Set objOpenSTAAD = CreateObject("OpenSTAAD.Output.1")

objOpenSTAAD.SelectSTAADFile "C:\SPRO2001\STAAD\Examp\US\examp23.std"

objOpenSTAAD.GetAllPlateCenterStressesAndMoments 87, 2, pdStresses(0) 'Close the STAAD file and release the handles to the OpenSTAAD library.

objOpenSTAAD.CloseSTAADFile Set objOpenSTAAD = Nothing End Sub

See Also

GetPlateCenterVonMisesStresses

GetAllPlateCenterPrincipalStressesAndAngles GetAllPlateCenterMoments

GetAllPlateCenterForces

GetAllPlateCenterNormalPrincipalStresses

187