ansys.mapdl.core.Mapdl.kgen#
- Mapdl.kgen(itime='', np1='', np2='', ninc='', dx='', dy='', dz='', kinc='', noelem='', imove='', **kwargs)#
Generates additional keypoints from a pattern of keypoints.
Mechanical APDL Command: KGEN
- Parameters:
- itime
str Do this generation operation a total of
ITIMEtimes, incrementing all keypoints in the given pattern automatically (or byKINC) each time after the first.ITIMEmust be more than 1 for generation to occur.- np1
str Generate keypoints from the pattern of keypoints beginning with
NP1toNP2(defaults toNP1) in steps ofNINC(defaults to 1). IfNP1= ALL,NP2andNINCare ignored and the pattern is all selected keypoints ( ksel ). IfNP1is negative,NP2andNINCare ignored and the last |NP1| keypoints (in sequence from the highest keypoint number) are used as the pattern to be repeated. IfNP1= P, graphical picking is enabled and all remaining command fields are ignored (valid only in the GUI). A component name may also be substituted forNP1(NP2andNINCare ignored).- np2
str Generate keypoints from the pattern of keypoints beginning with
NP1toNP2(defaults toNP1) in steps ofNINC(defaults to 1). IfNP1= ALL,NP2andNINCare ignored and the pattern is all selected keypoints ( ksel ). IfNP1is negative,NP2andNINCare ignored and the last |NP1| keypoints (in sequence from the highest keypoint number) are used as the pattern to be repeated. IfNP1= P, graphical picking is enabled and all remaining command fields are ignored (valid only in the GUI). A component name may also be substituted forNP1(NP2andNINCare ignored).- ninc
str Generate keypoints from the pattern of keypoints beginning with
NP1toNP2(defaults toNP1) in steps ofNINC(defaults to 1). IfNP1= ALL,NP2andNINCare ignored and the pattern is all selected keypoints ( ksel ). IfNP1is negative,NP2andNINCare ignored and the last |NP1| keypoints (in sequence from the highest keypoint number) are used as the pattern to be repeated. IfNP1= P, graphical picking is enabled and all remaining command fields are ignored (valid only in the GUI). A component name may also be substituted forNP1(NP2andNINCare ignored).- dx
str Keypoint location increments in the active coordinate system (DR, Dθ, DZ for cylindrical, DR, Dθ, DΦ for spherical).
- dy
str Keypoint location increments in the active coordinate system (DR, Dθ, DZ for cylindrical, DR, Dθ, DΦ for spherical).
- dz
str Keypoint location increments in the active coordinate system (DR, Dθ, DZ for cylindrical, DR, Dθ, DΦ for spherical).
- kinc
str Keypoint increment between generated sets. If zero, the lowest available keypoint numbers are assigned ( numstr ).
- noelem
intorstr Specifies if elements and nodes are also to be generated:
0- Generate nodes and point elements associated with the original keypoints, if they exist.1- Do not generate nodes and elements.
- imove
intorstr Specifies whether keypoints will be moved or newly defined:
0- Generate additional keypoints as requested with theITIMEargument.1- Move original keypoints to new position retaining the same keypoint numbers (ITIME,KINC, andNOELEMare ignored). Valid only if the old keypoints are no longer needed at their original positions. Corresponding meshed items are also moved if not needed at their original position.
- itime
Notes
Generates additional keypoints (and corresponding mesh) from a given keypoint pattern. The MAT, TYPE, REAL, and ESYS attributes are based upon the keypoints in the pattern and not upon the current settings. Generation is done in the active coordinate system. Keypoints in the pattern may have been defined in any coordinate system. However, solid modeling in a toroidal coordinate system is not recommended.