sph4

Mapdl.sph4(xcenter='', ycenter='', rad1='', rad2='', **kwargs)

Create a spherical volume anywhere on the working plane.

APDL Command: SPH4

Defines either a solid or hollow spherical volume anywhere on the working plane. The sphere must have a spatial volume greater than zero. (i.e., this volume primitive command cannot be used to create a degenerate volume as a means of creating an area.) A sphere of 360° will be defined with two areas, each consisting of a hemisphere. See the sphere and sph5 commands for other ways to create spheres.

When working with a model imported from an IGES file (DEFAULT import option), you can create only solid spheres. If you enter a value for both rad1 and rad2 the command is ignored.

Parameters
xcenter, ycenter

Working plane X and Y coordinates of the center of the sphere.

rad1, rad2

Inner and outer radii (either order) of the sphere. A value of zero or blank for either rad1 or rad2 defines a solid sphere.

Returns
int

Volume number of the sphere.

Examples

This example creates a hollow sphere with an inner radius of 0.9 and an outer radius of 1.0 centered at (0, 0)

>>> vnum = mapdl.sph4(0, 0, rad1=0.9, rad2=1.0)
>>> vnum
1
Return type

int