Node Setter/Getter Reference
Node Getter:
These functions allow the extraction of values of nodes data. All these functions are part of scripting language and can not be found in the GUI.
Syntax:
value = getnode(<keywords>)
List of Keywords for Node Getter Function:
|
Output Value Type
|
Keyword
|
Input Value Type
|
Description
|
|
Array of Integer Numbers
|
"allid"
|
-
|
This function returns the list of all the node ID numbers available in the model. ID number is integer number greater than zero.
|
|
Array of Integer Numbers
|
"activeid"
|
-
|
This function returns the list of all the active node ID numbers available in the model. ID number is integer number greater than zero.
|
|
Array of Integer Numbers
|
"boundid"
|
-
|
This function returns the list of all the boundary node ID numbers available in the model. ID number is integer number greater than zero
|
|
Array of Float Numbers [xpos,ypos]
|
"pos",ndid
|
Node ID (ndid)
|
This function returns the position of the node with ID = ndid. ndid is integer number greater than zero.
|
|
Array of Float Numbers [xdisp,ydisp]
|
"disp",ndid
|
Node ID (ndid)
|
This function returns the total displacement of the node with ID = ndid. ndid is integer number greater than zero.
|
|
Single Float Number [xunbal,yunbal]
|
"unbal",ndid
|
Node ID (ndid)
|
This function returns the unbalance force of the node with ID = ndid. ndid is integer number greater than zero.
|
|
Single Integer Number
|
"idatpoint",xp,yp
|
Point coordination [xp,yp]
|
This function returns the ID of the closest node to point [xp,yp]
|
Example:
For instance the following command returns array of active nodes (non-zero integer numbers):
ids = getnode("activeid")
Following command returns the displacement array [xdisp,ydisp] at node with id number 11.
disp = getnode("disp",11)
Node Setter:
These functions allow the manipulation of nodes data. All these functions are part of scripting language and can not be found in the GUI.
Syntax:
setnode(<keywords>)
List of Keywords for Node Setter Function:
|
Keyword
|
Description
|
|
"xforce",ndid,value
|
set horizontal force to the node with ID = ndid. "ndid" is integer number greater than zero and "value" is float number.
|
|
"yforce",ndid,value
|
set vertical force to the node with ID = ndid. "ndid" is integer number greater than zero and "value" is float number.
|
|
"xvel",ndid,value
|
set horizontal velocity to the node with ID = ndid. "ndid" is integer number greater than zero and "value" is float number.
|
|
"yvel",ndid,value
|
set vertical velocity to the node with ID = ndid. "ndid" is integer number greater than zero and "value" is float number.
|
|
"xfix",ndid,value
|
fix horizontal displacement at the node with ID = ndid. "ndid" is integer number greater than zero and "value" is float number.
|
|
"yfix",ndid
|
fix vertical displacement at the node with ID = ndid. "ndid" is integer number greater than zero.
|
|
"xfree",ndid
|
free horizontal constrain at the node with ID = ndid. "ndid" is integer number greater than zero.
|
|
"yfree",ndid
|
free vertical constrain at the node with ID = ndid. "ndid" is integer number greater than zero.
|
Example:
For instance the following command apply horizontal force to the node with id 11:
setnode("xforce",11,1E4)
Following command fixes the vertical displacement at nodes with id number 11.
setnode("yfix",11)