The Tshell class gives you access to thick shell elements in D3PLOT. More...
The D3PLOT JavaScript API provides many class constants, properties and methods. For Arup to
be able to extend and enhance the API in the future any constant, property or method names beginning with a lowercase
or uppercase letter are reserved.
If you need to add your own properties or methods to one of the existing classes then to avoid any potential future conflict you
should ensure that the name begins with either an underscore (_) or a dollar sign ($) or the name is prefixed with your
own unique identifier.
For example if company 'ABC' need to add a property called 'example' then to avoid any potential future conflict use one of:
| Name | Type | Description |
| data (read only) | real|array | Component data for a tshell passed as an argument to GetMultipleData. Note that data will only exist for the instance of the tshell passed to GetMultipleData. i.e. it is a local property stored on the specific instance. It is not stored in the D3PLOT database |
| include (read only) | integer | The include file number in the model that the tshell is in |
| index (read only) | integer | The internal index for the tshell in D3PLOT (starting at 0) |
| integrationPoints (read only) | integer | The number of through thickness integration points that the thick shell has |
| label (read only) | integer | The Ansys LS-DYNA label for the tshell |
| material (read only) | Material | The Material the tshell has. This is only available if there is a ztf file for the model. If not null will be returned. If this is a PART_COMPOSITE then null will be returned. Part.GetCompositeData should be used to get material data in this case |
| model (read only) | Model | The Model that the tshell is in |
| onPlanIntegrationPoints (read only) | integer | The number of on plan integration points that the thick shell has |
| part (read only) | Part | The Part the tshell is in |
| type (read only) | constant | The type for the tshell (will be Type.TSHELL) |
Detailed DescriptionThe Tshell class allows you to inspect thick shell elements in a model. See the documentation below for more details. |
Details of functionsBlank(window[GraphicsWindow])DescriptionBlanks the tshell in a graphics window |
GraphicsWindow) to blank the tshell in
ReturnsNo return value |
ExampleTo blank tshell t in graphics window g: t.Blank(g);
|
BlankAll(window[GraphicsWindow], model[Model]) [static]DescriptionBlanks all of the tshells in the model |
GraphicsWindow) to blank the tshells in
Model that all the tshells will be blanked in
ReturnsNo return value |
ExampleTo blank all of the tshells in model m, in graphics window gw: Tshell.BlankAll(gw, m);
|
BlankFlagged(window[GraphicsWindow], model[Model], flag[Flag]) [static]DescriptionBlanks all of the tshells in the model flagged with a defined flag |
GraphicsWindow) to blank the tshells in
Model that the flagged tshells will be blanked in
Flag (see AllocateFlag) set on the tshells to blank
ReturnsNo return value |
ExampleTo blank all of the tshells flagged with flag f in model m, in graphics window gw: Tshell.BlankFlagged(gw, m, f);
|
Blanked(window[GraphicsWindow])DescriptionChecks if the tshell is blanked in a graphics window or not |
GraphicsWindow) in which to check if the tshell is blanked
Returnstrue if blanked, false if not Return typeboolean |
ExampleTo check if tshell t is blanked in graphics window g: if (t.Blanked(g) ) do_something...
|
ClearFlag(flag[Flag])DescriptionClears a flag on a tshell |
Flag (see AllocateFlag) to clear on the tshell
ReturnsNo return value |
ExampleTo clear flag f on tshell t: t.ClearFlag();
|
Deleted()DescriptionChecks if the thick shell has been deleted or not |
No arguments
Returnstrue if deleted, false if not Return typeboolean |
ExampleTo check if thick shell t has been deleted: if (t.Deleted() ) do_something...
|
First(model[Model]) [static]DescriptionReturns the first tshell in the model (or null if there are no tshells in the model) |
Model to get first tshell in
ReturnsTshell object Return typeTshell |
ExampleTo get the first tshell in model m: var t = Tshell.First(m);
|
FlagAll(model[Model], flag[Flag]) [static]DescriptionFlags all of the tshells in the model with a defined flag |
Model that all the tshells will be flagged in
Flag (see AllocateFlag) to set on the tshells
ReturnsNo return value |
ExampleTo flag all of the tshells with flag f in model m: Tshell.FlagAll(m, f);
|
Flagged(flag[Flag])DescriptionChecks if the tshell is flagged or not |
Flag (see AllocateFlag) to test on the tshell
Returnstrue if flagged, false if not Return typeboolean |
ExampleTo check if tshell t has flag f set on it: if (t.Flagged(f) ) do_something...
|
GetAll(model[Model], property (optional)[string]) [static]DescriptionReturns an array of Tshell objects or properties for all of the tshells in the model. If the optional property argument is not given then an array of Tshell objects is returned. If the property argument is given, that property value for each tshell is returned in the array instead of a Tshell object |
Model that all the tshells are in
Name for property to get for all tshells in the model
ReturnsArray of Tshell objects or properties Return typeArray |
GetData(component[constant], options (optional)[object])DescriptionReturns the value for a data component. |
Component constant to get data for
Object containing options for getting data. Can be any of:
Object has the following properties:
| Name | Type | Description |
| extra | integer | The extra data component number if component Component.SOX for solids, Component.BMX for beams or Component.SHX for shells and thick shells |
| ip | integer | Integration point number to get the data at (ip >= 1 or one of the constants Constant.TOP, Constant.MIDDLE or Constant.BOTTOM). If the integration point is not defined it will use the integration point defined on the current GUI "data" panel, which defaults to the middle surface for shells, thick shells, and solids, and Mag All for beams, but may vary if changed by an interactive user. If consistent output from a script is required, independent of any prior interactive activity, an explicit integration point or surface should be defined |
| op | integer | On plane integration point number for shells and thick shells (op >= 1 [default]) |
| referenceFrame | constant | The frame of reference to return values in. Either Constant.GLOBAL (default), Constant.LOCAL, Constant.CYLINDRICAL, Constant.USER_DEFINED or Constant.MATERIAL. This is only necessary for directional components (eg X stress) and then only when something other than the default Constant.GLOBAL coordinate system is to be used |
| user | integer | The user-defined component number if component Component.UNOS, Component.UNOV, Component.USSS, Component.USST, Component.UBMS or Component.UBMV |
GetFlagged(model[Model], flag[Flag], property (optional)[string]) [static]DescriptionGets all of the tshells in the model flagged with a defined flag. If the optional property argument is not given then an array of Tshell objects is returned. If the property argument is given, that property value for each tshell is returned in the array instead of a Tshell object |
Model that the flagged tshells are in
Flag (see AllocateFlag) set on the tshells to get
Name for property to get for all flagged tshells in the model
ReturnsArray of Tshell objects or properties Return typeArray |
GetFromID(model[Model], label[integer]) [static]DescriptionReturns the Tshell object for tshell in model with label (or null if it does not exist) |
Model to get tshell in
The Ansys LS-DYNA label for the tshell in the model
ReturnsTshell object Return typeTshell |
ExampleTo get the tshell in model m with label 1000: var t = Tshell.GetFromID(m, 1000);
|
GetFromIndex(model[Model], index[integer]) [static]DescriptionReturns the Tshell object for tshell in model with index (or null if it does not exist) |
Model to get tshell in
The D3PLOT internal index in the model for tshell, starting at 0.
ReturnsTshell object Return typeTshell |
ExampleTo get the 51st tshell in model m: var t = Tshell.GetFromIndex(m, 50);
|
GetMultipleData(component[constant], items[array], options (optional)[object]) [static]DescriptionReturns the value for a data component for multiple tshells. For each tshell a local property called data will be created
containing a number if a scalar component, or an array if a vector or tensor component (or null if the value cannot be calculated).
The data is also returned as an object. |
Component constant to get data for
Array of Tshell objects to get the data for. All of the tshells must be in the same model.
Object containing options for getting data. Can be any of:
Object has the following properties:
| Name | Type | Description |
| extra | integer | The extra data component number if component Component.SOX for solids, Component.BMX for beams or Component.SHX for shells and thick shells |
| ip | integer | Integration point number to get the data at (ip >= 1 or one of the constants Constant.TOP, Constant.MIDDLE or Constant.BOTTOM) |
| op | integer | On plane integration point number for shells and thick shells (op >= 1 [default]) |
| referenceFrame | constant | The frame of reference to return values in. Either Constant.GLOBAL (default), Constant.LOCAL, Constant.CYLINDRICAL, Constant.USER_DEFINED or Constant.MATERIAL. This is only necessary for directional components (eg X stress) and then only when something other than the default Constant.GLOBAL coordinate system is to be used |
| user | integer | The user-defined component number if component Component.UNOS, Component.UNOV, Component.USSS, Component.USST, Component.UBMS or Component.UBMV |
Last(model[Model]) [static]DescriptionReturns the last tshell in the model (or null if there are no tshells in the model) |
Model to get last tshell in
ReturnsTshell object Return typeTshell |
ExampleTo get the last tshell in model m: var t = Tshell.Last(m);
|
LocalAxes()DescriptionReturns the local axes of the element in model space, expressed as direction cosines in a 2D array. Beam elements must have 3 nodes to be able to return local axes. |
No arguments
Returnsarray of arrays Return typeArray |
Next()DescriptionReturns the next tshell in the model (or null if there is not one) |
No arguments
ReturnsTshell object Return typeTshell |
ExampleTo get the next tshell after tshell t: t = t.Next();
|
Pick() [static]DescriptionAllows the user to pick a tshell from the screen |
No arguments
ReturnsTshell object or null if cancelled Return typeTshell |
ExampleTo pick a tshell: var t = Tshell.Pick();
|
PlasticStrain(options (optional)[object])DescriptionReturns the effective plastic strain for the thick shell (or null if the value cannot be calculated) |
Object containing options for getting data. Can be any of:
Object has the following properties:
| Name | Type | Description |
| ip | integer | Integration point number to get the data at (ip >= 1 or one of the constants Constant.TOP, Constant.MIDDLE or Constant.BOTTOM) |
| op | integer | On plane integration point number for shells and thick shells (op >= 1 [default]) |
ReturnsPlastic strain Return typereal |
ExampleTo return the effective plastic strain of thick shell t: var strain = t.PlasticStrain(); if (strain !== null) do_something...
|
Previous()DescriptionReturns the previous tshell in the model (or null if there is not one) |
No arguments
ReturnsTshell object Return typeTshell |
ExampleTo get the previous tshell before tshell t: t = t.Previous();
|
Select(flag[Flag]) [static]DescriptionSelects tshells using an object menu |
Flag (see AllocateFlag) to use when selecting tshells
ReturnsThe number of tshells selected or null if menu cancelled Return typeinteger |
ExampleTo select tshells, flagging those selected with flag f: var total = Tshell.Select(f);
|
SetFlag(flag[Flag])DescriptionSets a flag on a tshell |
Flag (see AllocateFlag) to set on the tshell
ReturnsNo return value |
ExampleTo set flag f on tshell t: t.SetFlag(f);
|
StrainTensor(options (optional)[object])DescriptionReturns the strain tensor for the thick shell |
Object containing options for getting data. Can be any of:
Object has the following properties:
| Name | Type | Description |
| ip | integer | Integration point number to get the data at (ip >= 1 or one of the constants Constant.TOP, Constant.MIDDLE or Constant.BOTTOM) |
| op | integer | On plane integration point number for shells and thick shells (op >= 1 [default]) |
| referenceFrame | constant | The frame of reference to return values in. Either Constant.GLOBAL (default), Constant.LOCAL, Constant.CYLINDRICAL, Constant.USER_DEFINED or Constant.MATERIAL |
ReturnsArray containing the strain tensor [Exx, Eyy, Ezz, Exy, Eyz, Ezx] (or null if the value cannot be calculated) Return typearray |
ExampleTo return the strain tensor of think shell t: var tensor = t.StrainTensor(); if (tensor !== null) do_something...
|
StressTensor(options (optional)[object])DescriptionReturns the stress tensor for the thick shell |
Object containing options for getting data. Can be any of:
Object has the following properties:
| Name | Type | Description |
| ip | integer | Integration point number to get the data at (ip >= 1 or one of the constants Constant.TOP, Constant.MIDDLE or Constant.BOTTOM) |
| op | integer | On plane integration point number for shells and thick shells (op >= 1 [default]) |
| referenceFrame | constant | The frame of reference to return values in. Either Constant.GLOBAL (default), Constant.LOCAL, Constant.CYLINDRICAL, Constant.USER_DEFINED or Constant.MATERIAL |
ReturnsArray containing the stress tensor [Exx, Eyy, Ezz, Exy, Eyz, Ezx] (or null if the value cannot be calculated) Return typearray |
ExampleTo return the stress tensor of thick shell t: var tensor = t.StressTensor(); if (tensor !== null) do_something...
|
Topology()DescriptionReturns the topology for the tshell in the model |
No arguments
Returnsarray of Node objects Return typeArray |
ExampleTo get the topology for tshell t: var topology = t.Topology();
|
Total(model[Model]) [static]DescriptionReturns the total number of tshells in the model |
Model to get total in
ReturnsThe number of tshells Return typeinteger |
ExampleTo get the number of tshells in model m: var total = Tshell.Total(m);
|
TotalDeleted(model[Model]) [static]DescriptionReturns the total number of thick shells that have been deleted in a model in the state given by its state property |
Model to get total in
ReturnsThe number of thick shells that have been deleted Return typeinteger |
ExampleTo get the number of thick shells in model m that have been deleted in state 10: m.state = 10; var total = Tshell.TotalDeleted(m);
|
Unblank(window[GraphicsWindow])DescriptionUnblanks the tshell in a graphics window |
GraphicsWindow) to unblank the tshell in
ReturnsNo return value |
ExampleTo unblank tshell t in graphics window g: t.Unblank(g);
|
UnblankAll(window[GraphicsWindow], model[Model]) [static]DescriptionUnblanks all of the tshells in the model |
GraphicsWindow) to unblank the tshells in
Model that all the tshells will be unblanked in
ReturnsNo return value |
ExampleTo unblank all of the tshells in model m, in graphics window gw: Tshell.UnblankAll(gw, m);
|
UnblankFlagged(window[GraphicsWindow], model[Model], flag[Flag]) [static]DescriptionUnblanks all of the tshells in the model flagged with a defined flag |
GraphicsWindow) to unblank the tshells in
Model that the flagged tshells will be unblanked in
Flag (see AllocateFlag) set on the tshells to unblank
ReturnsNo return value |
ExampleTo unblank all of the tshells flagged with flag f in model m, in graphics window gw: Tshell.UnblankFlagged(gw, m, f);
|
UnflagAll(model[Model], flag[Flag]) [static]DescriptionUnsets a defined flag on all of the tshells in the model |
Model that the defined flag for all tshells will be unset in
Flag (see AllocateFlag) to unset on the tshells
ReturnsNo return value |
ExampleTo unset flag f on all of the tshells in model m: Tshell.UnflagAll(m, f);
|
VonMisesStress(options (optional)[object])DescriptionReturns the von Mises stress for the thick shell (or null if the value cannot be calculated) |
Object containing options for getting data. Can be any of:
Object has the following properties:
| Name | Type | Description |
| ip | integer | Integration point number to get the data at (ip >= 1 or one of the constants Constant.TOP, Constant.MIDDLE or Constant.BOTTOM) |
| op | integer | On plane integration point number for shells and thick shells (op >= 1 [default]) |
Returnsvon Mises stress Return typereal |
ExampleTo return the von Mises stress of thick shell t: var svm = t.VonMisesStress(); if (svm !== null) do_something...
|