Hide Table of Contents
GetStressTensorValuesForAllNodesOfElement Method (ICWResults)

Gets the stress tensor values for all nodes of the specified mesh elements at the specified solution step.

.NET Syntax

Visual Basic (Declaration) 
Function GetStressTensorValuesForAllNodesOfElement( _
   ByVal ElementNumbers As System.Object, _
   ByVal NUnits As System.Integer, _
   ByVal NStepNum As System.Integer, _
   ByRef ErrorCode As System.Integer _
) As System.Object
Visual Basic (Usage) 
Dim instance As ICWResults
Dim ElementNumbers As System.Object
Dim NUnits As System.Integer
Dim NStepNum As System.Integer
Dim ErrorCode As System.Integer
Dim value As System.Object
 
value = instance.GetStressTensorValuesForAllNodesOfElement(ElementNumbers, NUnits, NStepNum, ErrorCode)
C# 
System.object GetStressTensorValuesForAllNodesOfElement( 
   System.object ElementNumbers,
   System.int NUnits,
   System.int NStepNum,
   out System.int ErrorCode
)
C++/CLI 
System.Object^ GetStressTensorValuesForAllNodesOfElement( 
&   System.Object^ ElementNumbers,
&   System.int NUnits,
&   System.int NStepNum,
&   [Out] System.int ErrorCode
) 

Parameters

ElementNumbers
An array of mesh element numbers for which to return nodal results; specify the element number of a single element (see Remarks)
NUnits
Units as defined in swsStrengthUnit_e
NStepNum
Solution step number (use 1 for steady state)
ErrorCode
Error as defined in swsNodalResultsOfElementError_e

Return Value

Two-dimensional array of tensor stress values (see Remarks)

Example

Remarks

This method is valid only for solid and shell meshes. Beam meshes are not supported.

Call ICWMesh::ElementCount to specify ElementNumbers.

The number of rows in the returned two-dimensional array is:

    (n * m * p) 

 

where:

  • n = # elements in the mesh
  • m = # nodes for each element
  • p = 2 for shell meshes (top and bottom faces); 1 for solid meshes

Each row contains nine values:

    element_i, shell_face_i, node_i, tensor_value_1, tensor_value_2, tensor_value_3, tensor_value_4, tensor_value_5, tensor_value_6

 

where:

  • element_i = the zero-based index of the element in the mesh
  • shell_face_i = 0 for the top face of a shell mesh, 1 for the bottom face of a shell mesh, and -1 for a solid mesh
  • node_i = the zero-based index of the node for this row's element

Therefore, the array returned for a shell mesh contains 18*n*m values in the following order:

[ 
   element_1, shell_face_0, node_1, tensor_value_1, tensor_value_2, tensor_value_3, tensor_value_4, tensor_value_5, tensor_value_6 
   element_1, shell_face_0, node_2, tensor_value_1, tensor_value_2, tensor_value_3, tensor_value_4, tensor_value_5, tensor_value_6
   ... 
   element_1, shell_face_0, node_m, tensor_value_1, tensor_value_2, tensor_value_3, tensor_value_4, tensor_value_5, tensor_value_6
   (repeat above for shell_face_1)
   (repeat above for element_2 through element_n)
]
 

See Also

Availability

SOLIDWORKS Simulation API 2016 SP05


Provide feedback on this topic

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

 
*Email:  
Subject:   Feedback on Help Topics
Page:   GetStressTensorValuesForAllNodesOfElement Method (ICWResults)
*Comment:  
*   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

Print Topic

Select the scope of content to print:

x

We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

 Never show this message again
x

Web Help Content Version: API Help (English only) 2021 SP05

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.