10.1. Number Control

The commands described here give you control of the numbering of keypoints, lines, areas, volumes, elements, nodes, element types, real constant sets, materials, coupled DOF sets, constraint equations, and coordinate systems. Control of the numbering is useful, and sometimes essential, when combining separately modeled portions of a model into one.


Caution:  The numbering of Boolean output entities is not 100 percent predictable. That is, sometimes the same Boolean operation, when performed on different computer systems, assign different numbers to output entities. If you intend to generate an input stream file interactively on one machine and rerun that input stream on another system, avoid using entity identification numbers in your command stream. Instead, use selecting logic to identify specific entities as needed.


10.1.1. Merging Coincident Items

If two separate entities have the same location, you can merge these entities together into a single entity via the NUMMRG command. The NUMMRG command does not changes model geometry. Only the topology is affected.

Example 10.1: Merging Coincident Nodes

Suppose that you have two separate but coincident nodes. If you issue the command NUMMRG,NODE to merge the nodes, the higher-numbered node is deleted and replaced with the lower-numbered coincident node. Two coincident nodes are therefore replaced by a single node.

If two regions that have already been meshed are to be joined, three separate merge operations are necessary. Issue a merge command for nodes (NUMMRG,NODE), one for elements (NUMMRG,ELEM), and one for all solid model entities (NUMMRG,KP).

Optionally, you can issue NUMMRG,ALL to merge all selected coincident items in the proper sequence. NUMMRG,ALL also merges non-geometric items such as MAT and CE.



Caution:  When merging entities in a model that has already been meshed, the order in which you issue multiple NUMMRG commands is significant. If you want to merge two adjacent meshed regions that have coincident nodes and keypoints, always merge nodes (NUMMRG,NODE) before merging keypoints (NUMMRG,KP) (as described above). Merging keypoints before nodes can result in some of the nodes becoming "orphaned"; that is, the nodes lose their association with the solid model. The orphaned nodes can cause certain operations (such as boundary condition transfers, surface load transfers, and so on) to fail.


Many solid modeling operations create coincident keypoints, lines, and/or areas. You can use issue NUMMRG,KP to merge such coincident items. Keypoint locations are used as the basis for merging. Once coincident keypoints are merged, any higher order solid model entities (lines, areas, and volumes) attached to those keypoints are automatically considered for merging. The definition of coincident changes depending on the tolerances used. By default, merging of keypoints attached to lines is done when the distance between keypoints falls within the following criteria:

  1. 1E-4 units of each other (see Figure 10.1: Default Merge Tolerances), and

  2. 1E-5 times the length of the longest line connected to the keypoints in consideration

Criterion 1 above describes the consideration tolerance field (TOLER) on NUMMRG. TOLER is a consideration tolerance. If a keypoint is withinTOLER of another keypoint, then those two keypoints are candidates to be merged. If when "moving" the higher numbered keypoint, the distance exceeds the internal relative solid model tolerance (criterion 2 above), the keypoints are not merged. Lines, areas, and volumes are considered for merging in a similar manner. Criterion 2 describes the default internal relative solid model tolerance. The tolerance is a saftey measure to prevent the merge operation from eliminating tiny lines in the model. Both criteria must be satisfied for keypoints to be merged.

Figure 10.1: Default Merge Tolerances

Default Merge Tolerances

The internal relative tolerance (criterion 2) can be overridden by an option to specify a global solid model tolerance (GTOLER) on NUMMRG. GTOLER is a global, absolute tolerance, rather than a relative tolerance. If GTOLER is used, the size of the lines attached to keypoints is no longer considered and it is fairly easy to defeature your model by using too large a value for GTOLER. You should save your database before attempting to merge, especially when using the GTOLER option.

The following example, which corresponds to Figure 10.2: NUMMRG Application Example, illustrates the use of NUMMRG to merge entities:

PCIRC,...	! Create a partial circle
RECTNG,...	! Create a rectangle
NUMMRG,KP	! Default merge tolerances used

Figure 10.2: NUMMRG Application Example

NUMMRG Application Example

If you merge keypoints that are very nearly coincident, any very short line connecting those keypoints are deleted. If the keypoints are too far apart to be merged, issue the LCOMB command to eliminate the very short line. LCOMB generates a continuous (but not necessarily smooth) line. If the resulting line is kinked, it cannot be used as a drag path (ADRAG, VDRAG), nor can it be used in any Boolean operations.

10.1.2. Compressing Item Numbers

As you build your model, you might, by deleting, clearing, merging, or performing other operations, create unused slots in the numbering sequence for various items. These slots remain empty for some items (such as elements) but are filled in for other items (such as keypoints) as new items are created. To save data storage space (by eliminating otherwise empty numbers) or to preserve desired sequencing (by forcing newly-created items to be assigned numbers greater than those of existing items), you can eliminate these gaps by "compressing" your numbering via the NUMCMP command.

The compression operation may be selectively re-executed for chosen item groups (elements, keypoints, etc.), or may be simultaneously applied to all valid items (using NUMCMP,ALL).

Example 10.2: NUMCMP Usage

VMESH,...
VCLEAR,...    ! Node and element numbers are not reused.
...
! Change meshing controls, element attributes, etc.
...
VMESH,...     ! Node and element numbering will contain "gaps"
NUMCMP,NODE   ! Optional step - NUMCMP can free up some computer memory
NUMCMP,ELEM   ! by eliminating gaps in numbering sequences.

10.1.3. Setting Starting Numbers

When creating new, automatically-numbered items, you might want to set the starting number of your new series of items higher than the greatest number used by existing items. Doing so ensures that the newly created entities are numbered consecutively. This prevents them from occupying gaps in the existing numbering sequence. Specifying a set of starting numbers is also useful if you are creating portions of your model independently of each nother and you want to avoid numbering conflicts when they are combined into one model. You can specify such user-defined starting numbers via NUMSTR the command. Issue this command for each separate class of items (nodes, elements, keypoints, etc.).

Example 10.3: NUMSTR Usage

! Create one portion of model:
...
...
! Create a separate, distinctly-numbered portion of your model:
NUMSTR,KP,100
NUMSTR,LINE,100
NUMSTR,AREA,100
NUMSTR,VOLU,100

10.1.4. Adding Number Offsets

If you wish to combine two independently created portions of a model and want to prevent numbering conflicts, you can renumber all selected items by adding an offset value to their existing numbers via the NUMOFF command.

Execute the NUMOFF command for each item group (nodes, elements, keypoints, etc.) to be renumbered.

The CDWRITE command, which writes all selected model data to a text file, automatically puts a series of NUMOFF commands at the beginning of the file to push any existing data out of the way when the file is read. Gaps in numbering that may result from these NUMOFF commands can be removed via the NUMCMP command.

Solid model data (in IGES format) can be written to a text file in PREP7. You can also transfer solid model data from an externally-generated IGES file into the Mechanical APDL database. To write solid model data to a file, issue the IGESOUT command. To read IGES data from a file into PREP7 data, issue the IGESIN command.

New solid model entities created (in the AUX15 processor) by the IGESIN command are numbered automatically to avoid conflicts with other solid model entities that already exist in the database. If an IGES file is read into an empty database, solid modeling entity numbering does not necessarily start at 1 because intermediate entities might be created (and later deleted) in the translation process. See Importing Solid Models from IGES Files for more information about the IGES interface.