*blocks()

Starts a finite difference block output block. All the blocks in the HyperMesh database are output according to the user-defined format in this block.

Syntax

*blocks ()

Type

HyperMesh Template Command

Inputs

name
Blocks with this card image name will be output.
Used as a key to distinguish different types of blocks.

Example

To output the locations of the i, j, or k divisions of a block, the *pointerset() command must be used:

*counterset(counter1,0)
*loopif([counter1 != divi])
  *pointerset(pointer1,idivisions,counter1)
  *field(real,pointer1.pointervalue,8)  
  *counterinc(counter1)
*endloop()
To output the wall data for a block, the following commands may be used:  
*counterset(counter1,0)
*loopif([counter1 != wallsmax])
  *pointerset(pointer1,blockwall,counter1)
  *field(integer,pointer1.wallid,8)
  *field(string,pointer1.wallname,0)
  *field(integer,pointer1.wallcolor,8)
  *counterinc(counter1)
*endloop()

Requires an *output() command at the end of the block.