Cancel
Showing results for 
Search instead for 
Did you mean: 

Stress Linearization for Simcenter

Siemens Phenom Siemens Phenom
Siemens Phenom

Utility Name

Stress Linearization

 

Summary

Calculate linearized stresses along a user defined 3D Stress Classification Line

 

Detailed Description

' StressLinearization_nx12.vb - Calculate linearized stresses along a user
' defined 3D Stress Classification Line
'
' History:
' 20-Dec-2010 / Jim Bernard / created / NX 7.5
' 25-Aug-2011 / Jim Bernard / update / NX 7.5.4
' - Total Stress extracted/reported in SCL Local coordinate system
' - Report File Output
' - AFU File Output
' 05-Dec-2011 / Jim Bernard / update / NX 8
' - theSession and theUI made public and instantiated only once
' 04-Jan-2012 / Jim Bernard / update
' - Added ability to create user defined object to graphically represent
' the SCL
' 25-Jul-2014 / Jim Bernard / update / NX 7.5.5.4
' - Switched SCL/Y-axis parallel check from VectorArithmetic.Vector3 to
' UF_VEC3. VectorArithmetic would require a recompile in NX 9.
' 21-Apr-2016 / Jim Bernard / update / NX 7.5.5.4
' - Added option to print VM stress table at each integration point
' 27-Oct-2016 / Jim Bernard / - NX 11.0
' - Replaced deprecated calls in createAfuRecord():
' - theSession.AfuManager.CreateAfuData()
' - CAE.AfuData.SetIdInformation()
' - CAE.AfuData.SetAxisDefinition()
' 05-Apr-2018 / Jim Bernard / - NX 12.0
' - Simulation Label Offset value no longer used to determine csys ID in
' the SIM file. The following customer default no longer exists:
' - theSession.OptionsManager.GetIntValue("CAE_DefaultSimulationOffset")
' - Added information in the report header for Result Type and Bending
' Stress Components
' 15-Dec-2018 / Jim Bernard / - NX 12.0
' - Updated interpart selection settings for point and vector blocks
' - Changed UDO link to csys from owning to type 1
' - Added UDO update callback to delete UDO and SCL csys if csys is edited
' - Added error traps for various AFU file operations
' 31-Jan-2019 / Jim Bernard / - NX 12.0
' - Fixed an error in numerical integration for computing bending via Trapezoid
' - Added output of orientation vector to report text
'
' Description:
' This program will display a dialog to allow the user to choose a stress result
' from one of the solutions in the current simulation. They will also define a stress
' classification line by selecting two endpoints. For 3D meshes, a vector to define
' the local XY plane of the SCL coordinate system is required.
'
' Optional input is the selection of the numerical integration method (Simpsons or
' Trapezoidal rule) and the number of intermediate integration points (must be even),
' as well as report and XY graph output. A User defined object can be created and the
' user can specify the point marker type and color.
'
' The code will extract stress results tensor data at each point along the line, then
' numerically integrate to calculate membrane and bending tensor components as described
' in 2010 ASME Boiler & Pressure Vessel Code, Section VIII, Division 2, Annex 5.A. From
' these tensor components, membrane plus bending and peak tensors are generated, then
' invariants are calculated for all tensors.
'
' It is assumed that this program will be executed in a sim part containing stress results.
'
' Instructions:
' 1) A copy of StressLinearization_nx12_bs.dlx must be in one of the following locations:
' 1.) From where NX session is launched
' 2.) $UGII_USER_DIR/application
' 3.) For released applications, using UGII_CUSTOM_DIRECTORY_FILE is highly
' recommended. This variable is set to a full directory path to a file
' containing a list of root directories for all custom applications.
' e.g., UGII_CUSTOM_DIRECTORY_FILE=$UGII_BASE_DIR\ugii\menus\custom_dirs.dat
'
' 2) A copy of StressLinearization_nx12_UDO.dll must be in one of the following locations:
' 1.) $UGII_USER_DIR/udo
' 2.) For released applications, using UGII_CUSTOM_DIRECTORY_FILE is highly
' recommended. This variable is set to a full directory path to a file
' containing a list of root directories for all custom applications.
' e.g., UGII_CUSTOM_DIRECTORY_FILE=$UGII_BASE_DIR\ugii\menus\custom_dirs.dat
'
' 3) Run this program from within a SIM file in NX Advanced Simulation
' - Use File > Execute > NX Open to run StressLinearization_nx12.dll
'

 

General Information

Compatible versions

Source code

Keywords

Simcenter 12

Visual Basic

 

 

 

Known Issues

  1. Units are not checked/handled. As results are selected from existing solutions, it is assumed that the results file contains data stored in the base part units
  2. Endpoints of the SCL and all derived intermediate points must lie within the mesh volume so that CAE.ResultAccess.AskResultAtLocationAllComponents() will return an interpolated value for all locations. This API function does not support extrapolation

Test Case

None

 

 

Author

JimB

 

Comments
Pioneer
Pioneer

Thank you Jim for this usefull tool.

 

Will there be a version for the current NX1847?


Does Siemens have plans to implement stress linearization directly in NX?

 

best regards,

Siemens Phenom Siemens Phenom
Siemens Phenom

The Simcenter 12 version should work in Simcenter 3D 2019.1 + NX 1847

Contributors