ansys.mapdl.core.Mapdl.n#
- Mapdl.n(node='', x='', y='', z='', thxy='', thyz='', thzx='', **kwargs)#
Defines a node.
Mechanical APDL Command: N
- Parameters:
- node
str Node number to be assigned. A previously defined node of the same number will be redefined. Defaults to the maximum node number used +1.
- x
str 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).- y
str 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).- z
str 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).- thxy
str First rotation about nodal Z (positive X toward Y).
- thyz
str Second rotation about nodal X (positive Y toward Z).
- thzx
str Third rotation about nodal Y (positive Z toward X).
- node
- Returns:
intNode 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