Node#
This method is used to construct a Node
which stores information about coordinates and mass at a single point.
The assignment of mass is optional.
- node $tag [ndm $coords] <-mass [ndf $mass]>
Argument |
Type |
Description |
---|---|---|
$tag |
integer |
unique tag identifying node |
$coords |
list float |
ndm nodal coordinates |
$mass |
list float |
optional ndf nodal mass values |
Example#
The following example adds two nodes to a Model
with an ndm
of 2
and a ndf
of 3.
The two nodes to be added have node tags 3
and 4
.
Node 3
is located at coordinates (168.0, 144.0) and node 4
at location (168.0,144.0)
.
Node 4
is assigned a mass of (10.0, 10.0, 0.)
.
model.node(3, (168.0, 0.0))
model.node(4, (168.0, 0.0), mass=(10.0, 10.0, 0.0))
node 3 168.0 0.0
node 4 168.0 144.0 -mass 10.0 10.0 0.0
Code Developed by: fmk