Oasys.D3PLOT.SetTshell class

Properties

property SetTshell.include(read only): integer

The include file number in the model that the thick shell set is in

property SetTshell.index(read only): integer

The internal index for the thick shell set in D3PLOT (starting at 0)

property SetTshell.label(read only): integer

The Ansys LS-DYNA label for the thick shell set

property SetTshell.model(read only): Model

The Model that the thick shell set is in

property SetTshell.title(read only): string

The title for the thick shell set (or None if no title). This is only available if there is a ztf file for the model. If not None will be returned

property SetTshell.total(read only): integer

The total number of thick shell items in the thick shell set

property SetTshell.type(read only): constant

The type for the thick shell set (will be Type.SET_TSHELL)

Static methods

classmethod SetTshell.First(model)

Returns the first thick shell set in the model (or None if there are no thick shell sets in the model)

Parameters:

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

Returns:

SetTshell object

Return type:

SetTshell

Example

To get the first thick shell set in model m:

s = Oasys.D3PLOT.SetTshell.First(m)
classmethod SetTshell.FlagAll(model, flag)

Flags all of the thick shell sets in the model with a defined flag

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

  • flag (Flag) – Flag (see AllocateFlag) to set on the thick shell sets

Returns:

No return value

Return type:

None

Example

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

Oasys.D3PLOT.SetTshell.FlagAll(m, f)
classmethod SetTshell.GetAll(model, property=Oasys.gRPC.defaultArg)

Returns a list of SetTshell objects or properties for all of the thick shell sets in the model. If the optional property argument is not given then a list of SetTshell objects is returned. If the property argument is given, that property value for each thick shell set is returned in the list instead of a SetTshell object

Parameters:
  • model (Model) – Model that all the thick shell sets are in

  • property (string) – Optional. Name for property to get for all thick shell sets in the model

Returns:

List of SetTshell objects or properties

Return type:

list

Example

To get all of the thick shell sets in model m:

s = Oasys.D3PLOT.SetTshell.GetAll(m)

To return a list containing the value of property ‘foo’ (for example ‘label’ for a thick shell set) for each thick shell set in model m:

a = Oasys.D3PLOT.SetTshell.GetAll(m, 'foo');
classmethod SetTshell.GetFlagged(model, flag, property=Oasys.gRPC.defaultArg)

Gets all of the thick shell sets in the model flagged with a defined flag. If the optional property argument is not given then a list of SetTshell objects is returned. If the property argument is given, that property value for each thick shell set is returned in the list instead of a SetTshell object

Parameters:
  • model (Model) – Model that the flagged thick shell sets are in

  • flag (Flag) – Flag (see AllocateFlag) set on the thick shell sets to get

  • property (string) – Optional. Name for property to get for all flagged thick shell sets in the model

Returns:

List of SetTshell objects or properties

Return type:

list

Example

To get all of the thick shell sets flagged with flag f in model m:

Oasys.D3PLOT.SetTshell.GetFlagged(m, f)

To return a list containing the value of property ‘foo’ (for example ‘label’ for a node) for all thick shell sets flagged with flag f in model m:

a = Oasys.D3PLOT.SetTshell.GetFlagged(m, f, 'foo');
classmethod SetTshell.GetFromID(model, label)

Returns the SetTshell object for thick shell set in model with label (or None if it does not exist)

Parameters:
  • model (Model) – Model to get thick shell set in

  • label (integer) – The Ansys LS-DYNA label for the thick shell set in the model

Returns:

SetTshell object

Return type:

SetTshell

Example

To get the thick shell set in model m with label 1000:

s = Oasys.D3PLOT.SetTshell.GetFromID(m, 1000)
classmethod SetTshell.GetFromIndex(model, index)

Returns the SetTshell object for thick shell set in model with index (or None if it does not exist)

Parameters:
  • model (Model) – Model to get thick shell set in

  • index (integer) – The D3PLOT internal index in the model for thick shell set, starting at 0

Returns:

SetTshell object

Return type:

SetTshell

Example

To get the 51st thick shell set in model m:

s = Oasys.D3PLOT.SetTshell.GetFromIndex(m, 50)
classmethod SetTshell.Last(model)

Returns the last thick shell set in the model (or None if there are no thick shell sets in the model)

Parameters:

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

Returns:

SetTshell object

Return type:

SetTshell

Example

To get the last thick shell set in model m:

s = Oasys.D3PLOT.SetTshell.Last(m)
classmethod SetTshell.Total(model)

Returns the total number of thick shell sets in the model

Parameters:

model (Model) – Model to get total in

Returns:

The number of thick shell sets

Return type:

integer

Example

To get the number of thick shell sets in model m:

total = Oasys.D3PLOT.SetTshell.Total(m)
classmethod SetTshell.UnflagAll(model, flag)

Unsets a defined flag on all of the thick shell sets in the model

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

  • flag (Flag) – Flag (see AllocateFlag) to unset on the thick shell sets

Returns:

No return value

Return type:

None

Example

To unset flag f on all of the thick shell sets in model m:

Oasys.D3PLOT.SetTshell.UnflagAll(m, f)

Instance methods

SetTshell.AllItems()

Returns all of the thick shell items for the thick shell set in the model

Returns:

list of Tshell objects

Return type:

list

Example

To get the thick shell items in thick shell set s:

items = s.AllItems()
SetTshell.ClearFlag(flag)

Clears a flag on a thick shell set

Parameters:

flag (Flag) – Flag (see AllocateFlag) to clear on the thick shell set

Returns:

No return value

Return type:

None

Example

To clear flag f on thick shell set s:

s.ClearFlag()
SetTshell.Flagged(flag)

Checks if the thick shell set is flagged or not

Parameters:

flag (Flag) – Flag (see AllocateFlag) to test on the thick shell set

Returns:

True if flagged, False if not

Return type:

boolean

Example

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

if s.Flagged(f):
    do_something..
SetTshell.Item(index)

Returns a thick shell item from the thick shell set in the model

Parameters:

index (integer) – The index in the thick shell set to get the thick shell from (0 <= index < total)

Returns:

Tshell object

Return type:

Tshell

Example

To get the 10th thick shell in thick shell set s:

items = s.Item(9)
SetTshell.Next()

Returns the next thick shell set in the model (or None if there is not one)

Returns:

SetTshell object

Return type:

SetTshell

Example

To get the next thick shell set after thick shell set s:

s = s.Next()
SetTshell.Previous()

Returns the previous thick shell set in the model (or None if there is not one)

Returns:

SetTshell object

Return type:

SetTshell

Example

To get the previous thick shell set before thick shell set s:

s = s.Previous()
SetTshell.SetFlag(flag)

Sets a flag on a thick shell set

Parameters:

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

Returns:

No return value

Return type:

None

Example

To set flag f on thick shell set s:

s.SetFlag(f)