@icedependentcount()

Returns the number of ICE dependent nodes for an independent node.

Syntax

@icedependentcount (independent_node_id)

Type

HyperMesh Template Function

Description

Returns the number of ICE dependent nodes for an independent node.

Inputs

independent_node_id
The ID of the ICE independent node.

Example

*elements(57,0,"ICE","")
*format()
*string("*ice(")
*field(integer,id,0)
*string(",")
*field(integer,type,0)
*string(",")
*field(integer,independentnodesmax,0)
*string(",")
*field(integer,dependentnodesmax,0)
*string(")")
*end()

*counterset(counter1,0)
*loopif([counter1 < independentnodesmax])
*string("  *icelink(")
*pointerset(pointer1,independentnodes,counter1)
*field(integer,pointer1.pointervalue,0)
*string(",")
*counterset(counter2,[@icedependentcount(pointer1.pointervalue)])
*field(integer,counter2,0)
*counterset(counter3,0)
*loopif([counter3 < counter2])
*string(",")
*field(integer,[@icedependentnode(pointer1.pointervalue,counter3)],0)
*string(",")
*field(integer,[@icedependentdof(pointer1.pointervalue,counter3)],0)
*counterinc(counter3)
*endloop()
*counterinc(counter1)
*string(")")
*end()
*endloop()
*output()

Version History

14.0