n#

Nodes.n(node='', x='', y='', z='', thxy='', thyz='', thzx='', **kwargs)#

Defines a node.

Mechanical APDL Command: N

Parameters:
nodestr

Node number to be assigned. A previously defined node of the same number will be redefined. Defaults to the maximum node number used +1.

xstr

Node location in the active coordinate system (R, θ, Z for cylindrical, R, θ, Φ for spherical or toroidal). If X = P, graphical picking is enabled and all remaining command fields are ignored (valid only in the GUI).

ystr

Node location in the active coordinate system (R, θ, Z for cylindrical, R, θ, Φ for spherical or toroidal). If X = P, graphical picking is enabled and all remaining command fields are ignored (valid only in the GUI).

zstr

Node location in the active coordinate system (R, θ, Z for cylindrical, R, θ, Φ for spherical or toroidal). If X = P, graphical picking is enabled and all remaining command fields are ignored (valid only in the GUI).

thxystr

First rotation about nodal Z (positive X toward Y).

thyzstr

Second rotation about nodal X (positive Y toward Z).

thzxstr

Third rotation about nodal Y (positive Z toward X).

Returns:
int

Node number of the generated node.

Notes

Defines a node in the active coordinate system ( csys ). The nodal coordinate system is parallel to the global Cartesian system unless rotated. Rotation angles are in degrees and redefine any previous rotation angles. See the nmodif, nang, nrotat, and nora commands for other rotation options.

Examples

Create a node at (0, 1, 1)

>>> nnum = mapdl.n("", 0, 1, 1)
>>> nnum
1

Create a node at (4, 5, 1) with a node ID of 10

>>> nnum = mapdl.n(10, 4, 5, 1)
>>> nnum
10