*elements()
Starts an element block.
Syntax
*elements (config, type, user_name, prop_card_image_name,?idpool_name?)
Type
HyperMesh Template Command
Description
Starts an element block. Elements matching the specified config and type are considered for the block.
This command must be accompanied by an *output() command at the end of the block.
Inputs
- config
- Defines the element config that should be used for this block. If specified as 0, elements of all configs are considered for the block.
- type
- Defines the element type that should be used for this block. If specified as 0, all elements of the specified config are considered for the block.
- user_name
- A 32-character string enclosed in double quotes that defines the name of the element config/type combination.
- prop_card_image_name
- A 32-character string enclosed in double quotes that defines the card image name of the property that the elements in the block require. If not needed, use empty double quotes "".
- idpool_name
- An optional 32-character string enclosed in double quotes that defines the name of the ID pool that the elements belong to. If not needed, use double quotes "" or omit the argument.
Example
To write out all quad4 elements with the format:
*quad4(id,type,node 1 ID,node 2 ID,node 3 ID,node 4 ID,property ID)
*elements(104,0,"QUAD4","")
*format()
*string("*quad4(")
*field(integer,id,0)
*string(",")
*field(integer,type,0)
*string(",")
*field(integer,node1.id,0)
*string(",")
*field(integer,node2.id,0)
*string(",")
*field(integer,node3.id,0)
*string(",")
*field(integer,node4.id,0)
*string(",")
*if([propertyidflag == 1])
*field(integer,propertyid,0)
*else()
*string("0")
*endif()
*string(")")
*end()
*output()