*scalefieldwidth()

Scales the width of a field.

Syntax

*scalefieldwidth (field type, scalefactor)

Type

HyperMesh Template Command

Inputs

field type
Specifies which field type to scale. Valid values are "integer", "real", and "string".
scalefactor
The scale factor to apply to each field of field type. Typically, this value is 1 or 2.

Example

To print the node IDs and globalx values with a width of 16 instead of 8:

*nodes()
  *before()
    *variableset(variable1,2)
      *scalefieldwidth(real,variable1)
      *scalefieldwidth(integer,variable1)

  *format()
    *string("*")
    *field(integer,id,8)
    *string("*")
    *end()

    *string("*")
    *fieldleft(real,globalx,8)
    *string("*")
    *end()

*output()

This command is typically used to write a deck that contains double precision numbers which have twice the field width specified by the *field command.