Node¶
Class for nodal data.
-
class
qd.cae.dyna.
Node
¶ Container for handling nodal data.
Examples
Get nodes by
>>> femfile = D3plot("path/to/d3plot") >>> node_list = femfile.get_nodes() >>> node = femfile.get_nodeByID(1) >>> node = femfile.get_nodeByIndex(1)
Methods
Get the time series of the acceleration vector.
Get the geometric nodal coordinates.
get_disp
()Get the time series of the displacement vector.
Get the elements of the node.
get_id
()Get the id of the node.
get_vel
()Get the time series of the velocity vector.
-
get_accel
()¶ Get the time series of the acceleration vector.
- Returns
- dispnp.ndarray
time series of acceleration
Examples
>>> node.get_accel().shape (34L, 3L)
-
get_coords
()¶ Get the geometric nodal coordinates. One has to load the displacements for getting the coordinates at all timesteps.
- Returns
- coordsnp.ndarray
coordinate vector (nTimesteps x 3)
Examples
>>> d3plot = D3plot("path/to/d3plot") >>> node.get_coords().shape (1L, 3L) >>> # load disp >>> d3plot.read_states("disp") >>> node.get_coords().shape (34L, 3L)
-
get_disp
()¶ Get the time series of the displacement vector.
- Returns
- dispnp.ndarray
time series of displacements
Examples
>>> node.get_disp().shape (34L, 3L)
-
get_elements
()¶ Get the elements of the node.
- Returns
- elementslist(Element)
elements of the node
Examples
>>> len( node.get_elements() ) 4
-
get_id
()¶ Get the id of the node.
- Returns
- idint
id of the node
Examples
>>> d3plot.get_nodeByID(1).get_id() 1
-
get_vel
()¶ Get the time series of the velocity vector.
- Returns
- dispnp.ndarray
time series of displacements
Examples
>>> node.get_disp().shape (34L, 3L)
-