ansys.mapdl.core.Mapdl.sph4#
- Mapdl.sph4(xcenter='', ycenter='', rad1='', rad2='', **kwargs)#
Creates a spherical volume anywhere on the working plane.
Mechanical APDL Command: SPH4
- Parameters:
- xcenter
str Working plane X and Y coordinates of the center of the sphere.
- ycenter
str Working plane X and Y coordinates of the center of the sphere.
- rad1
str Inner and outer radii (either order) of the sphere. A value of zero or blank for either
RAD1orRAD2defines a solid sphere.- rad2
str Inner and outer radii (either order) of the sphere. A value of zero or blank for either
RAD1orRAD2defines a solid sphere.
- xcenter
- Returns:
intVolume number of the sphere.
Notes
Defines either a solid or hollow spherical volume anywhere on the working plane. The sphere must have a spatial volume greater than zero. (that is, 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
RAD1andRAD2the command is ignored.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