Oasys.PRIMER.Tshell class

Properties

property Tshell.beta: boolean

If BETA option is set

property Tshell.beta_angle: float

Angle for BETA option

property Tshell.colour: Colour

The colour of the thick shell

property Tshell.composite: boolean

If COMPOSITE option is set. Can be true or false

property Tshell.eid: integer

Tshell number. Also see the label property which is an alternative name for this

property Tshell.exists(read only): boolean

true if thick shell exists, false if referred to but not defined

property Tshell.include: integer

The Include file number that the thick shell is in

property Tshell.label: integer

Tshell number. Also see the eid property which is an alternative name for this

property Tshell.model(read only): integer

The Model number that the thick shell is in

property Tshell.n1: integer

Node number 1

property Tshell.n2: integer

Node number 2

property Tshell.n3: integer

Node number 3

property Tshell.n4: integer

Node number 4

property Tshell.n5: integer

Node number 5

property Tshell.n6: integer

Node number 6

property Tshell.n7: integer

Node number 7

property Tshell.n8: integer

Node number 8

property Tshell.nip: boolean

Number of integration points for composite thick shell

property Tshell.nodes(read only): integer

Number of nodes thick shell has

property Tshell.pid: integer

Part number

property Tshell.transparency: integer

The transparency of the thick shell (0-100) 0% is opaque, 100% is transparent

Constructor

classmethod Tshell(model, eid, pid, n1, n2, n3, n4, n5, n6, n7=Oasys.gRPC.defaultArg, n8=Oasys.gRPC.defaultArg)

Create a new Tshell object. Use either 6 or 8 nodes when creating a new thick shell

Parameters:
  • model (Model) – Model that thick shell will be created in

  • eid (integer) – Tshell number

  • pid (integer) – Part number

  • n1 (integer) – Node number 1

  • n2 (integer) – Node number 2

  • n3 (integer) – Node number 3

  • n4 (integer) – Node number 4

  • n5 (integer) – Node number 5

  • n6 (integer) – Node number 6

  • n7 (integer) – Optional. Node number 7

  • n8 (integer) – Optional. Node number 8

Returns:

Tshell object

Return type:

dict

Example

To create a new thick shell in model m with label 100, part 10 and nodes 1, 2, 3, 4, 5, 6, 7, 8:

t = Oasys.PRIMER.Tshell(m, 100, 10, 1, 2, 3, 4, 5, 6, 7, 8)

Static methods

classmethod Tshell.BlankAll(model, redraw=Oasys.gRPC.defaultArg)

Blanks all of the thick shells in the model

Parameters:
  • model (Model) – Model that all thick shells will be blanked in

  • redraw (boolean) – Optional. If model should be redrawn or not. If omitted redraw is false. If you want to do several (un)blanks and only redraw after the last one then use false for all redraws apart from the last one. Alternatively you can redraw using View.Redraw()

Returns:

No return value

Return type:

None

Example

To blank all of the thick shells in model m:

Oasys.PRIMER.Tshell.BlankAll(m)
classmethod Tshell.BlankFlagged(model, flag, redraw=Oasys.gRPC.defaultArg)

Blanks all of the flagged thick shells in the model

Parameters:
  • model (Model) – Model that all the flagged thick shells will be blanked in

  • flag (Flag) – Flag set on the thick shells that you want to blank

  • redraw (boolean) – Optional. If model should be redrawn or not. If omitted redraw is false. If you want to do several (un)blanks and only redraw after the last one then use false for all redraws apart from the last one. Alternatively you can redraw using View.Redraw()

Returns:

No return value

Return type:

None

Example

To blank all of the thick shells in model m flagged with f:

Oasys.PRIMER.Tshell.BlankFlagged(m, f)
classmethod Tshell.Create(model, modal=Oasys.gRPC.defaultArg)

Starts an interactive editing panel to create a thick shell

Parameters:
  • model (Model) – Model that the thick shell will be created in

  • modal (boolean) – Optional. If this window is modal (blocks the user from doing anything else in PRIMER until this window is dismissed). If omitted the window will be modal

Returns:

Tshell object (or None if not made)

Return type:

dict

Example

To start creating a thick shell in model m:

t = Oasys.PRIMER.Tshell.Create(m)
classmethod Tshell.FindTshellInBox(model, xmin, xmax, ymin, ymax, zmin, zmax, flag=Oasys.gRPC.defaultArg, excl=Oasys.gRPC.defaultArg, vis_only=Oasys.gRPC.defaultArg)

Returns a list of Tshell objects for the thick shells within a box. Please note this function provides a list of all thick shells that could potentially be in the box (using computationally cheap bounding box comparison) it is not a rigorous test of whether the thick shellis actually in the box. This may include tshells that are ostensibly outside box. The user should apply their own test. (this function is intended to provide an upper bound of elems to test) Setting the “excl” flag will require that the tshell is fully contained. but this may not capture all the tshells you want to process

Parameters:
  • model (Model) – Model designated model

  • xmin (real) – Minimum bound in global x

  • xmax (real) – Maximum bound in global x

  • ymin (real) – Minimum bound in global y

  • ymax (real) – Maximum bound in global y

  • zmin (real) – Minimum bound in global z

  • zmax (real) – Maximum bound in global z

  • flag (integer) – Optional. Optional flag to restrict thick shells considered, if 0 all tshells considered

  • excl (integer) – Optional. Optional flag ( 0) Apply inclusive selection ( 1) Apply exclusive selection inclusive selection means elements intersect box exclusive selection means elements contained in box

  • vis_only (integer) – Optional. Optional flag to consider visible elements only (1), if (0) all elements considered

Returns:

List of Tshell objects

Return type:

list

Example

To get a list of Tshell objects for flagged thick shells within defined box (inclusive selection)

s = Oasys.PRIMER.Tshell.FindTshellInBox(m, xmin, xmax, ymin, ymax, zmin, zmax, flag, 0, 0)
classmethod Tshell.First(model)

Returns the first thick shell in the model

Parameters:

model (Model) – Model to get first thick shell in

Returns:

Tshell object (or None if there are no thick shells in the model)

Return type:

Tshell

Example

To get the first thick shell in model m:

t = Oasys.PRIMER.Tshell.First(m)
classmethod Tshell.FirstFreeLabel(model, layer=Oasys.gRPC.defaultArg)

Returns the first free thick shell label in the model. Also see Tshell.LastFreeLabel(), Tshell.NextFreeLabel() and Model.FirstFreeItemLabel()

Parameters:
  • model (Model) – Model to get first free thick shell label in

  • layer (Include number) – Optional. Include file (0 for the main file) to search for labels in (Equivalent to First free in layer in editing panels). If omitted the whole model will be used (Equivalent to First free in editing panels)

Returns:

Tshell label

Return type:

int

Example

To get the first free thick shell label in model m:

label = Oasys.PRIMER.Tshell.FirstFreeLabel(m)
classmethod Tshell.FlagAll(model, flag)

Flags all of the thick shells in the model with a defined flag

Parameters:
  • model (Model) – Model that all thick shells will be flagged in

  • flag (Flag) – Flag to set on the thick shells

Returns:

No return value

Return type:

None

Example

To flag all of the thick shells with flag f in model m:

Oasys.PRIMER.Tshell.FlagAll(m, f)
classmethod Tshell.GetAll(model)

Returns a list of Tshell objects for all of the thick shells in a model in PRIMER

Parameters:

model (Model) – Model to get thick shells from

Returns:

List of Tshell objects

Return type:

list

Example

To make a list of Tshell objects for all of the thick shells in model m

t = Oasys.PRIMER.Tshell.GetAll(m)
classmethod Tshell.GetFlagged(model, flag)

Returns a list of Tshell objects for all of the flagged thick shells in a model in PRIMER

Parameters:
  • model (Model) – Model to get thick shells from

  • flag (Flag) – Flag set on the thick shells that you want to retrieve

Returns:

List of Tshell objects

Return type:

list

Example

To make a list of Tshell objects for all of the thick shells in model m flagged with f

t = Oasys.PRIMER.Tshell.GetFlagged(m, f)
classmethod Tshell.GetFromID(model, number)

Returns the Tshell object for a thick shell ID

Parameters:
  • model (Model) – Model to find the thick shell in

  • number (integer) – number of the thick shell you want the Tshell object for

Returns:

Tshell object (or None if thick shell does not exist)

Return type:

Tshell

Example

To get the Tshell object for thick shell 100 in model m

t = Oasys.PRIMER.Tshell.GetFromID(m, 100)
classmethod Tshell.Last(model)

Returns the last thick shell in the model

Parameters:

model (Model) – Model to get last thick shell in

Returns:

Tshell object (or None if there are no thick shells in the model)

Return type:

Tshell

Example

To get the last thick shell in model m:

t = Oasys.PRIMER.Tshell.Last(m)
classmethod Tshell.LastFreeLabel(model, layer=Oasys.gRPC.defaultArg)

Returns the last free thick shell label in the model. Also see Tshell.FirstFreeLabel(), Tshell.NextFreeLabel() and see Model.LastFreeItemLabel()

Parameters:
  • model (Model) – Model to get last free thick shell label in

  • layer (Include number) – Optional. Include file (0 for the main file) to search for labels in (Equivalent to Highest free in layer in editing panels). If omitted the whole model will be used

Returns:

Tshell label

Return type:

int

Example

To get the last free thick shell label in model m:

label = Oasys.PRIMER.Tshell.LastFreeLabel(m)
classmethod Tshell.NextFreeLabel(model, layer=Oasys.gRPC.defaultArg)

Returns the next free (highest+1) thick shell label in the model. Also see Tshell.FirstFreeLabel(), Tshell.LastFreeLabel() and Model.NextFreeItemLabel()

Parameters:
  • model (Model) – Model to get next free thick shell label in

  • layer (Include number) – Optional. Include file (0 for the main file) to search for labels in (Equivalent to Highest+1 in layer in editing panels). If omitted the whole model will be used (Equivalent to Highest+1 in editing panels)

Returns:

Tshell label

Return type:

int

Example

To get the next free thick shell label in model m:

label = Oasys.PRIMER.Tshell.NextFreeLabel(m)
classmethod Tshell.Pick(prompt, limit=Oasys.gRPC.defaultArg, modal=Oasys.gRPC.defaultArg, button_text=Oasys.gRPC.defaultArg)

Allows the user to pick a thick shell

Parameters:
  • prompt (string) – Text to display as a prompt to the user

  • limit (Model or Flag) – Optional. If the argument is a Model then only thick shells from that model can be picked. If the argument is a Flag then only thick shells that are flagged with limit can be selected. If omitted, or None, any thick shells from any model can be selected. from any model

  • modal (boolean) – Optional. If picking is modal (blocks the user from doing anything else in PRIMER until this window is dismissed). If omitted the pick will be modal

  • button_text (string) – Optional. By default the window with the prompt will have a button labelled ‘Cancel’ which if pressed will cancel the pick and return None. If you want to change the text on the button use this argument. If omitted ‘Cancel’ will be used

Returns:

Tshell object (or None if not picked)

Return type:

dict

Example

To pick a thick shell from model m giving the prompt ‘Pick thick shell from screen’:

t = Oasys.PRIMER.Tshell.Pick('Pick thick shell from screen', m)
classmethod Tshell.RenumberAll(model, start)

Renumbers all of the thick shells in the model

Parameters:
  • model (Model) – Model that all thick shells will be renumbered in

  • start (integer) – Start point for renumbering

Returns:

No return value

Return type:

None

Example

To renumber all of the thick shells in model m, from 1000000:

Oasys.PRIMER.Tshell.RenumberAll(m, 1000000)
classmethod Tshell.RenumberFlagged(model, flag, start)

Renumbers all of the flagged thick shells in the model

Parameters:
  • model (Model) – Model that all the flagged thick shells will be renumbered in

  • flag (Flag) – Flag set on the thick shells that you want to renumber

  • start (integer) – Start point for renumbering

Returns:

No return value

Return type:

None

Example

To renumber all of the thick shells in model m flagged with f, from 1000000:

Oasys.PRIMER.Tshell.RenumberFlagged(m, f, 1000000)
classmethod Tshell.Select(flag, prompt, limit=Oasys.gRPC.defaultArg, modal=Oasys.gRPC.defaultArg)

Allows the user to select thick shells using standard PRIMER object menus

Parameters:
  • flag (Flag) – Flag to use when selecting thick shells

  • prompt (string) – Text to display as a prompt to the user

  • limit (Model or Flag) – Optional. If the argument is a Model then only thick shells from that model can be selected. If the argument is a Flag then only thick shells that are flagged with limit can be selected (limit should be different to flag). If omitted, or None, any thick shells can be selected. from any model

  • modal (boolean) – Optional. If selection is modal (blocks the user from doing anything else in PRIMER until this window is dismissed). If omitted the selection will be modal

Returns:

Number of thick shells selected or None if menu cancelled

Return type:

int

Example

To select thick shells from model m, flagging those selected with flag f, giving the prompt ‘Select thick shells’:

Oasys.PRIMER.Tshell.Select(f, 'Select thick shells', m)

To select thick shells, flagging those selected with flag f but limiting selection to thick shells flagged with flag l, giving the prompt ‘Select thick shells’:

Oasys.PRIMER.Tshell.Select(f, 'Select thick shells', l)
classmethod Tshell.SketchFlagged(model, flag, redraw=Oasys.gRPC.defaultArg)

Sketches all of the flagged thick shells in the model. The thick shells will be sketched until you either call Tshell.Unsketch(), Tshell.UnsketchFlagged(), Model.UnsketchAll(), or delete the model

Parameters:
  • model (Model) – Model that all the flagged thick shells will be sketched in

  • flag (Flag) – Flag set on the thick shells that you want to sketch

  • redraw (boolean) – Optional. If model should be redrawn or not after the thick shells are sketched. If omitted redraw is true. If you want to sketch flagged thick shells several times and only redraw after the last one then use false for redraw and call View.Redraw()

Returns:

No return value

Return type:

None

Example

To sketch all thick shells flagged with flag in model m:

Oasys.PRIMER.Tshell.SketchFlagged(m, flag)
classmethod Tshell.Total(model, exists=Oasys.gRPC.defaultArg)

Returns the total number of thick shells in the model

Parameters:
  • model (Model) – Model to get total for

  • exists (boolean) – Optional. true if only existing thick shells should be counted. If false or omitted referenced but undefined thick shells will also be included in the total

Returns:

number of thick shells

Return type:

int

Example

To get the total number of thick shells in model m:

total = Oasys.PRIMER.Tshell.Total(m)
classmethod Tshell.UnblankAll(model, redraw=Oasys.gRPC.defaultArg)

Unblanks all of the thick shells in the model

Parameters:
  • model (Model) – Model that all thick shells will be unblanked in

  • redraw (boolean) – Optional. If model should be redrawn or not. If omitted redraw is false. If you want to do several (un)blanks and only redraw after the last one then use false for all redraws apart from the last one. Alternatively you can redraw using View.Redraw()

Returns:

No return value

Return type:

None

Example

To unblank all of the thick shells in model m:

Oasys.PRIMER.Tshell.UnblankAll(m)
classmethod Tshell.UnblankFlagged(model, flag, redraw=Oasys.gRPC.defaultArg)

Unblanks all of the flagged thick shells in the model

Parameters:
  • model (Model) – Model that the flagged thick shells will be unblanked in

  • flag (Flag) – Flag set on the thick shells that you want to unblank

  • redraw (boolean) – Optional. If model should be redrawn or not. If omitted redraw is false. If you want to do several (un)blanks and only redraw after the last one then use false for all redraws apart from the last one. Alternatively you can redraw using View.Redraw()

Returns:

No return value

Return type:

None

Example

To unblank all of the thick shells in model m flagged with f:

Oasys.PRIMER.Tshell.UnblankFlagged(m, f)
classmethod Tshell.UnflagAll(model, flag)

Unsets a defined flag on all of the thick shells in the model

Parameters:
  • model (Model) – Model that the defined flag for all thick shells will be unset in

  • flag (Flag) – Flag to unset on the thick shells

Returns:

No return value

Return type:

None

Example

To unset the flag f on all the thick shells in model m:

Oasys.PRIMER.Tshell.UnflagAll(m, f)
classmethod Tshell.UnsketchAll(model, redraw=Oasys.gRPC.defaultArg)

Unsketches all thick shells

Parameters:
  • model (Model) – Model that all thick shells will be unblanked in

  • redraw (boolean) – Optional. If model should be redrawn or not after the thick shells are unsketched. If omitted redraw is true. If you want to unsketch several things and only redraw after the last one then use false for redraw and call View.Redraw()

Returns:

No return value

Return type:

None

Example

To unsketch all thick shells in model m:

Oasys.PRIMER.Tshell.UnsketchAll(m)
classmethod Tshell.UnsketchFlagged(model, flag, redraw=Oasys.gRPC.defaultArg)

Unsketches all flagged thick shells in the model

Parameters:
  • model (Model) – Model that all thick shells will be unsketched in

  • flag (Flag) – Flag set on the thick shells that you want to unsketch

  • redraw (boolean) – Optional. If model should be redrawn or not after the thick shells are unsketched. If omitted redraw is true. If you want to unsketch several things and only redraw after the last one then use false for redraw and call View.Redraw()

Returns:

No return value

Return type:

None

Example

To unsketch all thick shells flagged with flag in model m:

Oasys.PRIMER.Tshell.UnsketchAll(m, flag)

Instance methods

Tshell.AspectRatio()

Calculates the aspect ratio for the thick shell

Returns:

float

Return type:

float

Example

To calculate the aspect ratio for thick shell t:

ratio = t.AspectRatio()
Tshell.AssociateComment(comment)

Associates a comment with a thick shell

Parameters:

comment (Comment) – Comment that will be attached to the thick shell

Returns:

No return value

Return type:

None

Example

To associate comment c to the thick shell t:

t.AssociateComment(c)
Tshell.Blank()

Blanks the thick shell

Returns:

No return value

Return type:

None

Example

To blank thick shell t:

t.Blank()
Tshell.Blanked()

Checks if the thick shell is blanked or not

Returns:

True if blanked, False if not

Return type:

bool

Example

To check if thick shell t is blanked:

if t.Blanked():
    do_something..
Tshell.Browse(modal=Oasys.gRPC.defaultArg)

Starts an edit panel in Browse mode

Parameters:

modal (boolean) – Optional. If this window is modal (blocks the user from doing anything else in PRIMER until this window is dismissed). If omitted the window will be modal

Returns:

no return value

Return type:

None

Example

To Browse thick shell t:

t.Browse()
Tshell.ClearFlag(flag)

Clears a flag on the thick shell

Parameters:

flag (Flag) – Flag to clear on the thick shell

Returns:

No return value

Return type:

None

Example

To clear flag f for thick shell t:

t.ClearFlag(f)
Tshell.Copy(range=Oasys.gRPC.defaultArg)

Copies the thick shell. The target include of the copied thick shell can be set using Options.copy_target_include

Parameters:

range (boolean) – Optional. If you want to keep the copied item in the range specified for the current include. Default value is false. To set current include, use Include.MakeCurrentLayer()

Returns:

Tshell object

Return type:

Tshell

Example

To copy thick shell t into thick shell z:

z = t.Copy()
Tshell.DetachComment(comment)

Detaches a comment from a thick shell

Parameters:

comment (Comment) – Comment that will be detached from the thick shell

Returns:

No return value

Return type:

None

Example

To detach comment c from the thick shell t:

t.DetachComment(c)
Tshell.Edit(modal=Oasys.gRPC.defaultArg)

Starts an interactive editing panel

Parameters:

modal (boolean) – Optional. If this window is modal (blocks the user from doing anything else in PRIMER until this window is dismissed). If omitted the window will be modal

Returns:

no return value

Return type:

None

Example

To Edit thick shell t:

t.Edit()
Tshell.ElemCut(database_cross_section_label)

Returns coordinates of the intersections between a thick shell and a database cross section

Parameters:

database_cross_section_label (integer) – The label of the database cross section

Returns:

Dict with properties

face1:

(List of reals) An list containing the x1,y1,z1,x2,y2,z2 coordinates of the cut line on the face 1. None if no cut on this face

face2:

(List of reals) An list containing the x1,y1,z1,x2,y2,z2 coordinates of the cut line on the face 2. None if no cut on this face

face3:

(List of reals) An list containing the x1,y1,z1,x2,y2,z2 coordinates of the cut line on the face 3. None if no cut on this face

face4:

(List of reals) An list containing the x1,y1,z1,x2,y2,z2 coordinates of the cut line on the face 4. None if no cut on this face

face5:

(List of reals) An list containing the x1,y1,z1,x2,y2,z2 coordinates of the cut line on the face 5. None if no cut on this face

face6:

(List of reals) An list containing the x1,y1,z1,x2,y2,z2 coordinates of the cut line on the face 6. None if no cut on this face

Return type:

dict

Example

To see if the database cross section 200 cuts thick shell s and at which points it cuts face 3 of the thick shell:

data = s.ElemCut(200)
face = data["face3"]
if(face):
    point1_x = face[0]
    point1_y = face[1]
    point1_z = face[2]
    point2_x = face[3]
    point2_y = face[4]
    point2_z = face[5]
Tshell.ExtractColour()

Extracts the actual colour used for thick shell.
By default in PRIMER many entities such as elements get their colour automatically from the part that they are in. PRIMER cycles through 13 default colours based on the label of the entity. In this case the thick shell colour property will return the value Colour.PART instead of the actual colour. This method will return the actual colour which is used for drawing the thick shell

Returns:

colour value (integer)

Return type:

int

Example

To return the colour used for drawing thick shell t:

colour = t.ExtractColour()
Tshell.Flagged(flag)

Checks if the thick shell is flagged or not

Parameters:

flag (Flag) – Flag to test on the thick shell

Returns:

True if flagged, False if not

Return type:

bool

Example

To check if thick shell t has flag f set on it:

if t.Flagged(f):
    do_something..
Tshell.GetComments()

Extracts the comments associated to a thick shell

Returns:

List of Comment objects (or None if there are no comments associated to the node)

Return type:

list

Example

To get the list of comments associated to the thick shell t:

comm_list = t.GetComments()
Tshell.GetCompositeData(ipt)

Returns the composite data for an integration point in *ELEMENT_TSHELL_COMPOSITE

Parameters:

ipt (integer) – The integration point you want the data for. Note that integration points start at 0, not 1

Returns:

A list of numbers containing the material id, thickness and beta angle

Return type:

list

Example

To get the composite data for the 3rd integration point for thick shell t:

if (t.composite and s.nip >= 3):
    ipt_data = t.GetCompositeData(2)
Tshell.GetNodeIDs()

Returns the labels of the nodes on the thick shell as a list. See also Tshell.GetNodes()

Returns:

List of node labels (integers)

Return type:

int

Example

To return the node labels of thick shell t as a list

nodes = t.GetNodeIDs()
Tshell.GetNodes()

Returns the nodes on the thick shell as a list of Node objects. See also Tshell.GetNodeIDs()

Returns:

List of Node objects

Return type:

list

Example

To return the nodes of thick shell t as a list

nodes = t.GetNodes()
Tshell.GetParameter(prop)

Checks if a Tshell property is a parameter or not. Note that object properties that are parameters are normally returned as the integer or float parameter values as that is virtually always what the user would want. For this function to work the JavaScript interpreter must use the parameter name instead of the value. This can be done by setting the Options.property_parameter_names option to true before calling the function and then resetting it to false afterwards.. This behaviour can also temporarily be switched by using the Tshell.ViewParameters() method and ‘method chaining’ (see the examples below)

Parameters:

prop (string) – thick shell property to get parameter for

Returns:

Parameter object if property is a parameter, None if not

Return type:

dict

Example

To check if Tshell property t.example is a parameter:

Oasys.PRIMER.Options.property_parameter_names = True
if t.GetParameter(t.example):
    do_something...
Oasys.PRIMER.Options.property_parameter_names = False

To check if Tshell property t.example is a parameter by using the GetParameter method:

if t.ViewParameters().GetParameter(t.example):
    do_something..
Tshell.Jacobian()

Calculates the jacobian for the thick shell

Returns:

float

Return type:

float

Example

To calculate the jacobian for thick shell t:

jacobian = s.Jacobian()
Tshell.Keyword()

Returns the keyword for this thick shell (*ELEMENT_TSHELL or *ELEMENT_TSHELL_COMPOSITE). Note that a carriage return is not added. See also Tshell.KeywordCards()

Returns:

string containing the keyword

Return type:

str

Example

To get the keyword for thick shell t:

key = t.Keyword()
Tshell.KeywordCards()

Returns the keyword cards for the thick shell. Note that a carriage return is not added. See also Tshell.Keyword()

Returns:

string containing the cards

Return type:

str

Example

To get the cards for thick shell t:

cards = t.KeywordCards()
Tshell.Next()

Returns the next thick shell in the model

Returns:

Tshell object (or None if there are no more thick shells in the model)

Return type:

Tshell

Example

To get the thick shell in model m after thick shell t:

t = t.Next()
Tshell.Previous()

Returns the previous thick shell in the model

Returns:

Tshell object (or None if there are no more thick shells in the model)

Return type:

Tshell

Example

To get the thick shell in model m before thick shell t:

t = t.Previous()
Tshell.RemoveCompositeData(ipt)

Removes the composite data for an integration point in *ELEMENT_TSHELL_COMPOSITE

Parameters:

ipt (integer) – The integration point you want to remove. Note that integration points start at 0, not 1

Returns:

No return value

Return type:

None

Example

To remove the composite data for the 3rd integration point for thick shell t:

t.RemoveCompositeData(2)
Tshell.SetCompositeData(ipt, mid, thick, beta)

Sets the composite data for an integration point in *ELEMENT_TSHELL_COMPOSITE

Parameters:
  • ipt (integer) – The integration point you want to set the data for. Note that integration points start at 0, not 1

  • mid (integer) – Material ID for the integration point

  • thick (real) – Thickness of the integration point

  • beta (real) – Material angle of the integration point

Returns:

No return value

Return type:

None

Example

To set the composite data for the 3rd integration point to mat 1, thickness 0.5 and angle 45, for thick shell t:

t.SetCompositeData(2, 1, 0.5, 45)
Tshell.SetFlag(flag)

Sets a flag on the thick shell

Parameters:

flag (Flag) – Flag to set on the thick shell

Returns:

No return value

Return type:

None

Example

To set flag f for thick shell t:

t.SetFlag(f)
Tshell.Sketch(redraw=Oasys.gRPC.defaultArg)

Sketches the thick shell. The thick shell will be sketched until you either call Tshell.Unsketch(), Tshell.UnsketchAll(), Model.UnsketchAll(), or delete the model

Parameters:

redraw (boolean) – Optional. If model should be redrawn or not after the thick shell is sketched. If omitted redraw is true. If you want to sketch several thick shells and only redraw after the last one then use false for redraw and call View.Redraw()

Returns:

No return value

Return type:

None

Example

To sketch thick shell t:

t.Sketch()
Tshell.Timestep()

Calculates the timestep for the thick shell

Returns:

float

Return type:

float

Example

To calculate the timestep for thick shell t:

timestep = t.Timestep()
Tshell.Unblank()

Unblanks the thick shell

Returns:

No return value

Return type:

None

Example

To unblank thick shell t:

t.Unblank()
Tshell.Unsketch(redraw=Oasys.gRPC.defaultArg)

Unsketches the thick shell

Parameters:

redraw (boolean) – Optional. If model should be redrawn or not after the thick shell is unsketched. If omitted redraw is true. If you want to unsketch several thick shells and only redraw after the last one then use false for redraw and call View.Redraw()

Returns:

No return value

Return type:

None

Example

To unsketch thick shell t:

t.Unsketch()
Tshell.ViewParameters()

Object properties that are parameters are normally returned as the integer or float parameter values as that is virtually always what the user would want. This function temporarily changes the behaviour so that if a property is a parameter the parameter name is returned instead. This can be used with ‘method chaining’ (see the example below) to make sure a property argument is correct

Returns:

Tshell object

Return type:

dict

Example

To check if Tshell property t.example is a parameter by using the Tshell.GetParameter() method:

if t.ViewParameters().GetParameter(t.example):
    do_something..
Tshell.Warpage()

Calculates the warpage for the thick shell

Returns:

float

Return type:

float

Example

To calculate the warpage for thick shell t:

warpage = s.Warpage()
Tshell.Xrefs()

Returns the cross references for this thick shell

Returns:

Xrefs object

Return type:

dict

Example

To get the cross references for thick shell t:

xrefs = t.Xrefs()