vrotat#

Mapdl.vrotat(na1='', na2='', na3='', na4='', na5='', na6='', pax1='', pax2='', arc='', nseg='', **kwargs)[source]#

Generate cylindrical volumes by rotating an area pattern about an axis.

APDL Command: VROTAT

Generates cylindrical volumes (and their corresponding keypoints, lines, and areas) by rotating an area pattern (and its associated line and keypoint patterns) about an axis. Keypoint patterns are generated at regular angular locations (based on a maximum spacing of 90 degrees). Line patterns are generated at the keypoint patterns. Arc lines are also generated to connect the keypoints circumferentially. Keypoint, line, area, and volume numbers are automatically assigned (beginning with the lowest available values). Adjacent lines use a common keypoint, adjacent areas use a common line, and adjacent volumes use a common area.

To generate a single volume with an arc greater than 180 degrees, NSEG must be greater than or equal to 2.

If element attributes have been associated with the input area via the AATT command, the opposite area generated by the VROTAT operation will also have those attributes (i.e., the element attributes from the input area are copied to the opposite area). Note that only the area opposite the input area will have the same attributes as the input area; the areas adjacent to the input area will not.

If the given areas are meshed or belong to meshed volumes, the 2-D mesh can be rotated (extruded) to a 3-D mesh. See the Modeling and Meshing Guide for more information. Note that the NDIV argument on the ESIZE command should be set before extruding the meshed areas.

Parameters:
na1, na2, na3, … , na6

List of areas in the pattern to be rotated (6 maximum if using keyboard entry). Areas must lie to one side of, and in the plane of, the axis of rotation. If NA1 = ALL, all selected areas will define the pattern to be rotated. A component name may also be substituted for NA1.

pax1, pax2

Keypoints defining the axis about which the area pattern is to be rotated.

arc

Arc length (in degrees). Positive follows right-hand rule about PAX1-PAX2 vector. Defaults to 360.

nseg

Number of volumes (8 maximum) around circumference. Defaults to minimum required for 90 degrees (maximum) arcs, i.e., 4 for 360 degrees, 3 for 270 degrees, etc.

Returns:
str

MAPDL command output.

Return type:

str

Examples

Rotate a circle about the Z axis to create a hoop.

First, create a circle offset from origin on the XZ plane.

>>> hoop_radius = 10
>>> hoop_thickness = 0.5
>>> k0 = mapdl.k("", hoop_radius, 0, 0)
>>> k1 = mapdl.k("", hoop_radius, 1, 0)
>>> k2 = mapdl.k("", hoop_radius, 0, hoop_thickness)
>>> carc0 = mapdl.circle(k0, 1, k1)
>>> a0 = mapdl.al(*carc0)

Create a hoop by rotating it about an axis defined by two keypoints.

>>> k_axis0 = mapdl.k("", 0, 0, 0)
>>> k_axis1 = mapdl.k("", 0, 0, 1)
mapdl.vrotat(a0, pax1=k_axis0, pax2=k_axis1)