Functions and constants relating to UserComponents
| Name | Description |
| UBMS | This constant is deprecated in version 21.0. It is only provided to keep old scripts working. We strongly advise against using it in new scripts. Support may be removed in future versions. Beam scalar. Use Component.UBMS instead [deprecated] |
| UBMV | This constant is deprecated in version 21.0. It is only provided to keep old scripts working. We strongly advise against using it in new scripts. Support may be removed in future versions. Beam vector. Use Component.UBMV instead [deprecated] |
| UNOS | This constant is deprecated in version 21.0. It is only provided to keep old scripts working. We strongly advise against using it in new scripts. Support may be removed in future versions. Node scalar. Use Component.UNOS instead [deprecated] |
| UNOV | This constant is deprecated in version 21.0. It is only provided to keep old scripts working. We strongly advise against using it in new scripts. Support may be removed in future versions. Node vector. Use Component.UNOV instead [deprecated] |
| USSS | This constant is deprecated in version 21.0. It is only provided to keep old scripts working. We strongly advise against using it in new scripts. Support may be removed in future versions. Solid and shell scalar. Use Component.USSS instead [deprecated] |
| USST | This constant is deprecated in version 21.0. It is only provided to keep old scripts working. We strongly advise against using it in new scripts. Support may be removed in future versions. Solid and shell tensor. Use Component.USST instead [deprecated] |
| Name | Description |
| U_BEAM | This constant is deprecated in version 21.0. It is only provided to keep old scripts working. We strongly advise against using it in new scripts. Support may be removed in future versions. User-defined beam component. Use Component.BEAM instead [deprecated] |
| U_NODE | This constant is deprecated in version 21.0. It is only provided to keep old scripts working. We strongly advise against using it in new scripts. Support may be removed in future versions. User-defined nodal component. Use Component.NODE instead [deprecated] |
| U_OTHR | This constant is deprecated in version 21.0. It is only provided to keep old scripts working. We strongly advise against using it in new scripts. Support may be removed in future versions. User-defined other (LSDA) component. Use Component.OTHER instead [deprecated] |
| U_SOSH | This constant is deprecated in version 21.0. It is only provided to keep old scripts working. We strongly advise against using it in new scripts. Support may be removed in future versions. User-defined solid, shell and thick shell component. Use Component.SOLID_SHELL_TSHELL instead [deprecated] |
| Name | Description |
| U_SCALAR | This constant is deprecated in version 21.0. It is only provided to keep old scripts working. We strongly advise against using it in new scripts. Support may be removed in future versions. Scalar data (1 value). Use Component.SCALAR instead [deprecated] |
| U_TENSOR | This constant is deprecated in version 21.0. It is only provided to keep old scripts working. We strongly advise against using it in new scripts. Support may be removed in future versions. Tensor data (6 values). Use Component.TENSOR instead [deprecated] |
| U_VECTOR | This constant is deprecated in version 21.0. It is only provided to keep old scripts working. We strongly advise against using it in new scripts. Support may be removed in future versions. Vector data (3 values). Use Component.VECTOR instead [deprecated] |
| Name | Description |
| RENAME | This constant is deprecated in version 21.0. It is only provided to keep old scripts working. We strongly advise against using it in new scripts. Support may be removed in future versions. Rename. Use Component.RENAME instead [deprecated] |
| REPLACE | This constant is deprecated in version 21.0. It is only provided to keep old scripts working. We strongly advise against using it in new scripts. Support may be removed in future versions. Replace. Use Component.REPLACE instead [deprecated] |
| Name | Description |
| IN_CORE | This constant is deprecated in version 21.0. It is only provided to keep old scripts working. We strongly advise against using it in new scripts. Support may be removed in future versions. held in memory. Use Component.IN_CORE instead [deprecated] |
A name for this component, up to 30 characters long. If the name is not unique, D3PLOT's behaviour will depend on the value of the 'if_existing' argument to this function.
One of the constants
User-defined components must fall into one of these four categories. It is not possible to have a component of a given name that contains data for more than one of these types.One of the constants
Choose the data type that matches the information you want to store.
Action to take if UBIN component 'component_name' already exists.
One of the constants
What to do with the ".ubd" files when the model is closed or D3PLOT exits.
One of the constants
If this argument is ommitted or set to zero then LEAVE behaviour is used. However alternative default behaviour may be specified by setting the preference
d3plot*ubd_file_dispose: to LEAVE or DELETE
Specify where the data for this component is to be stored, one of
If IN_CORE is used the value of 'dispose' above is ignored.
If this argument is omitted then the default behaviour of creating .ubd files in the same directory as the analysis database files will be used. However an alternative default directory may also be specified by the preference:
d3plot*ubd_file_location: <pathname> or IN_CORE or JOBDIR(<pathname>)
If both <location> and this preferenceare defined then <location> in this function call takes precedence.
Notes on pathnames:
The handle of an existing UBIN component
Returnsboolean Return typeBoolean |
Example
// Delete the UBIN component handle_1
if(!DeleteUbinComponent(handle_1))
{
...deal with failure...
}
|
The handle of an existing UBIN component as returned by CreateUbinComponent().
An item type constant, NODE, SOLID, SHELL, etc. This must match the underlying type of the UBIN component, thus NODE for components of type U_NODE, and so on. It is illegal to attempt to store data for a type that does not match the underlying UBIN component type thus, for example, you cannot store NODE data for a U_SOSH component.
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.
Integration point: must be a +ve layer number (lowest = 1).
Or zero for item type / data component combinations that do not consider integration points in this context. (for example nodal displacements or beam forces).
Or, for fully integrated elements with on plan integration points, an object with properties "ip" and "op". For a further explanation see Defining the Integration point argument in GetData().
"Top", "Middle" and "Bottom" are not allowed in this context since "middle" is not directly readable in cases with an even number of points.
A value of 1 should normally be used for solid elements.
Note, from D3PLOT 11.0 onwards, the order of the integration points for SHELLS and TSHELLS is <int_pnt> 1->n: BOTTOM->TOP surface (so long as a ZTF file is present). See Section 13.8.2.2.
Prior to this they were in the order of the integration points output by Ansys LS-DYNA, e.g. for <maxint>=3 <int_pnt> 1 was the MIDDLE surface, <int_pnt> 2 was the BOTTOM surface and <int_pnt> 3 was the TOP surface.
Object has the following properties:
| Name | Type | Description |
| ip | integer | Through thickness integration point. |
| op (optional) | integer | On plan integration point. Defaults to the first one. |
State number to be used. If omitted, the current state is used.
Returnsreal|Array of reals Return typeNumber |
A name to search for, a character string up to 30 characters long. Component names are not case-sensitive, but searching only succeeds if an exact match is found.
Returns |
Object with the following properties:
| Name | Type | Description |
| ctype | integer | the component type, U_NODE, U_SOSH, U_BEAM or U_OTHR |
| dtype | integer | the data type, U_SCALAR, U_VECTOR or U_TENSOR |
| handle | integer | the integer handle of the UBIN component |
object
The handle of an existing UBIN component as returned by CreateUbinComponent().
An item type constant, NODE, SOLID, SHELL etc. This must match the underlying type of the UBIN component, thus NODE for components of type U_NODE, and so on. It is illegal to attempt to store data for a type that does not match the underlying UBIN component type thus, for example, you cannot store NODE data for a U_SOSH component.
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.
Integration point: must be a +ve layer number (lowest = 1)
Or zero for item type / data component combinations that do not consider integration points in this context (for example nodal displacements or beam forces).
Or, for fully integrated elements with on plan integration points, an object with properties "ip" and "op". For a further explanation see Defining the Integration point argument in GetData().
"Top", "Middle" and "Bottom" are not allowed in this context since "middle" is not directly readable in cases with an even number of points.
A value of 1 should normally be used for solid elements.
Note from D3PLOT 11.0 onwards, the order of the integration points for SHELLS and TSHELLS is <int_pnt> 1->n: BOTTOM->TOP surface (so long as a ZTF file is present). See Section 13.8.2.2.
Prior to this they were in the order of the integration points output by Ansys LS-DYNA, e.g. for <maxint>=3 <int_pnt> 1 was the MIDDLE surface, <int_pnt> 2 was the BOTTOM surface and <int_pnt> 3 was the TOP surface.
Object has the following properties:
| Name | Type | Description |
| ip | integer | Through thickness integration point. |
| op (optional) | integer | On plan integration point. Defaults to the first one. |
The data to be stored. Its format depends on the "data type" of the component:
U_SCALAR: Scalar or array of length >=1
U_VECTOR: Array of length >= 3
U_TENSOR: Array of length >= 6
The alignment of array members should be as follows:
State number to be used. If omitted, the current state is used.
Returnsboolean Return typeBoolean |