*sortloads()

Changes the order that loads are output in the *loads() block.

Syntax

*sortloads (order)

Type

HyperMesh Template Command

Inputs

order
Valid values are:
bycomp1 - Ordering is performed based on component 1.
bycomp2 - Ordering is performed based on component 2.
bycomp3 - Ordering is performed based on component 3.
bycomp4 - Ordering is performed based on component 4.
bycomp5 - Ordering is performed based on component 5.
bycomp6 - Ordering is performed based on component 6.
bycomps - Ordering is performed by all components.
none - No ordering is performed.

Example

The following example outputs all forces in the same x direction, followed by the same y direction and then the same z direction:

*loads(1,0,"")
  *sortloads(bycomp1)
  *before()
    *variableset(variable1,-999999)
  *format()
    *if([comp1 != variable1])
      *end() *end()
      *string("FORCE x = ") *field(real,comp1,0) *end()
      *variableset(variable1,comp1)
    *endif()
    *string(" ") *field(integer,id,0) *string(" ")
  *after()
    *end()
*output()

*loads(1,0,"")
  *sortloads(bycomp2)
  *before()
    *variableset(variable1,-999999)
  *format()
    *if([comp2 != variable1])
      *end() *end()
      *string("FORCE y = ") *field(real,comp2,0) *end()
      *variableset(variable1,comp2)
    *endif()
    *string(" ") *field(integer,id,0) *string(" ")
  *after()
    *end()
*output()

*loads(1,0,"")
  *sortloads(bycomp3)
  *before()
    *variableset(variable1,-999999)
  *format()
    *if([comp3 != variable1])
      *end() *end()
      *string("FORCE z = ") *field(real,comp3,0) *end()
      *variableset(variable1,comp3)
    *endif()
    *string(" ") *field(integer,id,0) *string(" ")
  *after()
    *end() *end()
*output()