Functions and constants relating to Composites
The ply in which to return the list of elements. If +ve, the internal ply number starting at 1. If -ve, the external ply label. Internal numbers will be many times faster to process.
State number to be used instead of the current state
Returns |
Object with the following properties:
| Name | Type | Description |
| list | array of integers | Internal element ids |
| nn | integer | Number of elements in list |
| type | integer | Element type code |
object
Example
// Get a list of elements in ply 5
if(a = GetElemsInPly(5))
{
var nelems = a.nn;
for(var i=0; i<nelems; i++)
{
Message("Element: " + GetLabel(a.type, a.list[i]))
}
}
|
A valid element type code (Currently only SHELL is valid)
If +ve, the internal item number starting at 1. If -ve, the external label of the item. Internal numbers will be many times faster to process.
If +ve, the internal ply index. If -ve, the external ply label. Internal numbers will be many times faster to process.
State number to be used instead of the current state
Returnsinteger Return typeNumber |
Example
// Find the integration point in shell #1 occupied by internal ply index 14 var ip = GetPlyIntPoint(SHELL, 1, 14));
|
The layup in which to return the list of plys. If +ve an internal layup index, if -ve an external layup label
State number to be used instead of the current state
Returns |
Object with the following properties:
| Name | Type | Description |
| list | array of integers | Array of internal ply indices |
| nn | integer | Number of plys in list |
object
Example
// Print the ply labels in layup 1
if(a = GetPlysInLayup(1))
{
var nplys = a.nn;
for(var i=0; i<nplys; i++)
{
Message("Ply: " + GetLabel(CPLY, a.list[i]))
}
}
|