csys#

Mapdl.csys(kcn='', **kwargs)#

Activates a previously defined coordinate system.

APDL Command: CSYS

Parameters:
kcn

Specifies the active coordinate system, as follows:

0 (default)

Cartesian

1

Cylindrical with global Cartesian Z as the axis of rotation

2

Spherical

4 or WP

Working Plane

5

Cylindrical with global Cartesian Y as the axis of rotation

11 or greater

Any previously defined local coordinate system

Notes

The CSYS command activates a previously defined coordinate system for geometry input and generation. The LOCAL, CLOCAL, CS, CSKP, and CSWPLA commands also activate coordinate systems as they are defined. To set the active element coordinate system attribute pointer, issue the ESYS command.

The active coordinate system for files created via the CDWRITE command is Cartesian

>>> mapdl.csys(0)

This command is valid in any processor.

>>> mapdl.csys(4)
>>> # or
>>> mapdl.csys('WP')

activates working plane tracking, which updates the coordinate system to follow working plane changes. To deactivate working plane tracking, activate any other coordinate system.

>>> mapdl.csys(5)

is a cylindrical coordinate system with global Cartesian Y as the axis. The local x, y and z axes are radial, θ, and axial (respectively). The R-Theta plane is the global X-Z plane, as it is for an axisymmetric model. Thus, at θ = 0.0, mapdl.csys(5) has a specific orientation: the local x is in the global +X direction, local y is in the global -Z direction, and local z (the cylindrical axis) is in the global +Y direction.

Examples

Create a cylindrical surface in cylindrical y (CSYS=5) with a radius of 6 and spanning 30 < θ < -90 and 0 < z < 4.

>>> mapdl.csys(5)
>>> mapdl.k(1, 6, 30)
>>> mapdl.k(2, 6, -90)
>>> mapdl.k(3, 6, -90, 4)
>>> mapdl.k(4, 6, 30, 4)
>>> mapdl.a(1, 2, 3, 4)
>>> mapdl.aplot()