ansys.mapdl.core.Mapdl.local#
- Mapdl.local(kcn='', kcs='', xc='', yc='', zc='', thxy='', thyz='', thzx='', par1='', par2='', **kwargs)#
Defines a local coordinate system by a location and orientation.
Mechanical APDL Command: LOCAL
- Parameters:
- kcn
str
Arbitrary reference number assigned to this coordinate system. Must be greater than 10. A coordinate system previously defined with this number will be redefined.
- kcs
str
Coordinate system type:
0 or CART
- Cartesian1 or CYLIN
- Cylindrical (circular or elliptical)2 or SPHE
- Spherical (or spheroidal)3 or TORO
- Toroidal
- xc
str
Location (in the global Cartesian coordinate system) of the origin of the new coordinate system.
- yc
str
Location (in the global Cartesian coordinate system) of the origin of the new coordinate system.
- zc
str
Location (in the global Cartesian coordinate system) of the origin of the new coordinate system.
- thxy
str
First rotation about local Z (positive X toward Y).
- thyz
str
Second rotation about local X (positive Y toward Z).
- thzx
str
Third rotation about local Y (positive Z toward X).
- par1
str
Used for elliptical, spheroidal, or toroidal systems. If
KCS
= 1 or 2,PAR1
is the ratio of the ellipse Y-axis radius to X-axis radius (defaults to 1.0 (circle)). IfKCS
= 3,PAR1
is the major radius of the torus.- par2
str
Used for spheroidal systems. If
KCS
= 2,PAR2
= ratio of ellipse Z-axis radius to X-axis radius (defaults to 1.0 (circle)).
- kcn
Notes
Defines a local coordinate system by origin location and orientation angles. The local coordinate system is parallel to the global Cartesian system unless rotated. Rotation angles are in degrees and redefine any previous rotation angles. See the clocal, cs, cswpla, and cskp commands for alternate definitions. This local system becomes the active coordinate system ( csys ). Local coordinate systems may be displayed with the psymb command.
This command is valid in any processor.