PART: Defining Parts
PART: Defining Parts
| Top level menu | Options: Sub-keywords: |
The *PART keyword is central to Ansys LS-DYNA usage: it acts as a "collector" of material, section property and other data for groups of elements. It is also commonly used as a means of splitting up large models into manageable components which can be given part names.
Parts in Ansys LS-DYNA are only used by BEAM, DISCRETE, SEATBELT, SHELL, SOLID and TSHELL element types, and elements of these types must reference exactly one part. Parts do not have an element type defined explicitly but, since Ansys LS-DYNA only permits a part to be referenced by a single element type, there is an implicit type associated with them. PRIMER honours this by associating an internal "type" with each part, which is defined by the first encountered element that references the part, and only material, section and other definitions valid for that element type are permitted.
*PART_( OPTION1 )_( OPTION2 )_( OPTION3 )_( OPTION4 ) cards and *PART_COMPOSITE cards are defined by choosing from the drop-down list in the Keywords panel in PRIMER. The other *PART types (_MOVE, _MODES, _SENSOR and _ADAPTIVE_FAILURE) are defined from their own individual selection button from the part dropdown list.

|
This figure shows the
main
PART
control panel.
All options have their standard meanings as described in Standard Keyword Top Level Menu Options. |
|
CREATE Creating a new part
This figure shows the initial creation panel, in which nothing is defined.
In order to create the part you must define the following:
| PID | The part id (label), which must be unique. |
| SECID | The section id. The section type must match the type of the elements in this part. |
| MID | Material id. Again, this must be a formulation valid for the elements in this part |
This represents the bare minimum required to create a part, and you can now use to make the definition permanent.
The remaining data fields (hourglass id, etc) are optional: limited on-line help is provided in their popup menus, but you should refer to an Ansys LS-DYNA manual for details of their meaning.
| CONTENTS... | The elements which make up the part. This is described below under section PART_CONTENTS. |
| PROPERTIES... | Calculates and lists the structural properties (mass, C of G, inertia tensor) of this part - see PART_PROPERTIES. |
The optional sub-keywords ( _INERTIA, _REPOSITION, _CONTACT, _COMPOSITE, _PRINT ) are described in sections PART_INERTIA to PART_PRINT below.
COPY Copying selected parts
The selected parts will be copied to the next free labels in the relevant models.
is an extremely important flag in this context:
- When OFF Only the actual * PART card and the data on it are copied. The new definition contains no elements, but has the same properties as the original part.
- When ON Both the * PART card, and everything "owned by" (ie lower in the hierarchy than) the part are copied. Thus the elements and nodes will be duplicated, and the new part will refer to a set of new elements which are identical to but separate from the originals.
Note that the section and material definitions are not copied, since they are above parts in the programme hierarchy.
MODIFY Editing existing parts
The part editing panel is identical to the creation one, except that it will be populated with data when mapped. This figure shows a typical example, here for a part containing 24 SHELL elements. Changes are made as for CREATE above.
REPLACE Replacing part(s) with those from another model
|
The process of replacing part(s)
The function offers a powerful method of replacing a part or multiple parts in the target model with part(s) taken from another model (the source), typically a similar part remeshed or reshaped.
If replacing a single part, there is no need for the Part id to match.
If replacing multiple parts the target and source part ids must be the same. The element type (if specified) of the target and source parts must be the same. For multiple parts, all parts selected must have the same element type.
For single part, the replacement is achieved by simply selecting the target part and then the source part from the object menu.
For multiple parts, the target model is selected and then the parts from the source model which are to be imported. If the id of one or more selected source parts does not match any part is in the target model, the user is given the option of ignoring such parts or creating new ones in the target model. There is no longer a restriction on mixing parts of different element types, so an assembly of shells and solids can be replaced in one operation.
If any of the option are active on completion of transfer of elements & nodes into the target model, PRIMER will offer you a panel which allows you to view details of the possible merge options available and options on how to proceed.
and will sketch the items concerned.
will provide a detailed listing of what may require re-attachment.
will apply blanking automatically and give a blob plot to show how the nodes will be re-attached. The old nodes are plotted in blue and the corresponding new node in green. Any nodes which cannot be re-attached will be plotted in red.
The user now has the option to the sketch items by merging the blue node to the green node, (for attention later) or items.
will bring up the interactive deletion panel, giving the user control over what is deleted.
The user may control exactly which nodes are to be merged by applying a merge tolerance or picking tracked nodes (blue blobs) to be excluded from merge.
If is applied, the user may wish to Only the parts concerned and run a Find Attached operation to check that the process has been done correctly.
Re-attach options for part replace
PRIMER will remake any connections attached to the target parts, once the part replace operation is completed. Any that fail to remake will be displayed on the connection table.
- When the Rem missing layer(s) option is ON, layers that failed to connect when remaking spotwelds will be automatically removed after part replace.
The default treatment of HAZ (meshed in) welds is
- undo the weld at the beginning of part replace (reverting any HAZ rings to the native part before deletion of elements)
- remake the weld on the new mesh if is ON.
This has the disadvantage that shell mesh may be changed on layers of the weld which are NOT the part being replaced. If is switched OFF, the weld and the HAZ rings (they need to be different part to the native part) will not be deleted. If the imported source mesh contains holes which are configured to mate to the outer edge of the HAZ these can be re-attached using the merge function. There will be no remake of the HAZ welds, so there is no disturbance to mesh on other layers.
The nodal merge action will be offered for items such as *Initial_velocity, *Database_history_node or *Load_node (referenced directly or by conventional node set see below)
The nodal merge action will be offered for items such as node attached to structral element, node on a *Nodal_Rigid_Body or a *Boundary_spc (referenced directly or by conventional node set see below)
Preserve lumped masses (excluding Assign mass) on the nodes of the target part.
This is available for single part replace only. If active, when replacing a solid part coated with null shells, PRIMER will delete the old null shells and import those on the source part (if present) into the original null shell part in the target model.
Set control options for part replace
and These options apply only to conventional sets. This option ensures that if all nodes of a target part are in a node/element set, all nodes of the new part replacing it will also be in the set. Thus node sets for initial velocity or load can be maintained when the source part is more densely meshed than the target part.
As users may be using this type of set to deliberately control the contents PRIMER will make no attempt to modify the definition. It will however check the contents both before and after the part replace operation and report if there appears to be a discrepancy. Likely modelling errors are if all the nodes of a part were in the set and now some are missing, no nodes of a part were in the set and now some are, or some nodes of a part were in the set and now none are. PRIMER also warns of empty sets and offers to remove them.
Transfer options for part replace
PRIMER will import the section card, etc from the source model and change the target part to reference it. In the case of the Material card the load curves will be imported also.
On completion of transfer, PRIMER will remove the original section, material, etc from the target model if it is unused by anything else.
PRIMER will import any initial stress (or strain) cards which refer directly to elements of the source parts. Note - this will not apply if the _SET definition has been used in the source model.
Renumber clash options for part replace
By default if any of the nodes/elements of the source part(s) clash with labels that already exist in the target model PRIMER will put these to highest label + 1. In models with set_generate, where an upper bound is above the highest label of any item, then the upper bound value will count as the highest label.
You may instead set a seed label. Note that if include label ranges are set on completion of part replace the generic relabelling routine will be applied to ant items that are out of their designated include range.
Connection options for part replace
You can set options for remaking welds and adhesive which will apply if the remake connections option is active. Additionally, you can activate/de-activate the option to reform the free edge geometry for MIG type spotwelds.
Assign mass options for part replace
If the target parts are subject to Assign mass statement, PRIMER will (by default) warn of this and offer the option to recalculate/modify/ignore the assign mass. This option can be pre-configured.
The include for the mases created on the imported part will by default be that of the assign mass definition (as it is if we create an Assign mass), you can, however, switch this to be the same include as the nodes of the part.
Replacing an assembly of parts using a model as source
Multiple part replace as described in the previous secttion, serves well when there is a reasonable mapping between the target parts and the source parts which replace them. In such a case, the remake of old connections in the target model will hopefully give the correct connectivity for the new parts. However, consider the case where the new parts have completely different shape to the old, or where two parts replace one and the welds that join them do not exist in the target model. For such cases, we need a more generic tool which removes a set of parts (the target assembly) from the target model and all their internal connections and references, imports a complete source model which contains not only parts but their internal connections and then weaves the imported items into the target model making connections at the external boundaries of the assembly and reforms the relevant external references. It is not easy to achieve this.
The assembly to replace is best described using a Part Tree Assembly (in this case the parts shown with zero transparency). However, the parts may be described by any collector, e.g. part-set, group, include file or may simply be selected off the object menu.
The source (or replacing) assembly is the complete contents of the designated source model. As this contains internal connections, the part geometry may be extensively different from the target model and there is no requirement that the parts map reasonably onto one another. Source parts that match target parts by label will implicitly be put into their correct set. If the source parts are at different labels, PRIMER may have difficulties putting the un-matched parts into the correct part-sets. This will also apply to any new parts. This problem may be obviated by the use of the preferred PART_SET_GENERATE instead of conventional sets. For a conventional set, the best automatic maintenance we can do is if all parts of the target assembly are in such a set, then all parts imported are put into the set.
- the default is to keep (and remake) only those that connect between the target assembly and external parts. This may be changed to keep none or keep all. The latter would only be appropriate if the source model contained no connections and the part mapping was very close and part labels correlated, i.e. a conventional part-replace operation.
The handling of connectivity is represented schematically in this diagram, where the dark blue target assembly is replaced by the modified pink source assembly.
![]() |
![]() |
![]() |
- If part labels match across source/target model, the default is , i.e. set the labels for matl, sect, etc on the target part to match that of the source part. If the option , etc is active the matl, sect, etc card from the source model will be imported. Alternately, user may choose to which means reference on target part to matl, sect, etc will be unchanged.
|
|
DELETE Deleting parts
The selected parts are deleted. As with the choice of flags is very important:
The flag determines whether or not the items "owned" by (lower in the programme hierarchy than) the part are handled:
- When OFF Only the part definition itself will be deleted, and this will only happen if it is not referenced by anything else, eg elements, that depend on it. If it has any dependants then it will not be deleted.
- When ON Its dependants (elements, nodes, ...) will also be marked for deletion. The part itself will still only be deleted if all its dependent items are themselves deleted.
The flag determines whether or not a part is barred from deletion by virtue of being part of ("owned by") a SET_PART .
- When OFF If the part is in a set it will not be deleted, even if it has no dependants, although its dependants may be deleted.
- When ON If the only thing stopping the part being deleted is its membership of a set then it will be removed from the set and deleted.
SKETCH Sketching parts
The selected parts are sketched in white on top of the current graphics image. Parts are drawn by drawing their constituent elements
A summary of the selected parts (name, material type, element type and #elements) is listed to the screen.LIST Listing a summary of parts
CHECK Checking parts
The selected parts are run through the standard checking routines, and any errors found are summarised on the screen.
PENCHECK Checking parts for penetrations
![]() |
The selected parts will be put into a "private" automatic surface to surface contact (or single surface if more than 2 parts) and checked for penetrations. The standard penetration check panel is displayed. This will allow you to contour any penetrations between the panels or if you switch mode, to contour gaps between panels. When you dismiss the panel the vapid contact will be deleted. |
RENUMBER Renumbering part labels
The standard renumbering panel is mapped for the relevant model, allowing part labels to be updated. To update a single part label it may be easier just to it.
PART_CONTENTS... Adding and removing elements to and from parts
![]()
|
Both the
and
functions use the
option to
list part contents, and also to add and remove elements.
This maps the content editing sub-window, in which you can
In both the and cases the standard object selection menu is shown, and you select (by element, part. model, or anything else) what is to be added or removed. |
||||||
|
For example in this ADD case the user has selected two materials.
If the part already contains elements then its implicit type is already defined, and only elements of the relevant types are selected for processing. If the part is empty then the first element type encountered in the addition list is used to determine its type. Therefore when creating a new part take care to choose elements of the correct type. However when adding to or subtracting from an existing part you can choose broader categories, eg materials as here, knowing that only the relevant items will be selected for addition or removal. It is legal to select for addition elements that are already in the part: they will not be duplicated since the outcome of an ADD operation is a logical (inclusive) OR of the existing and new elements. |
Once the part contains some elements these become visible in the sub-panel as shown below, and can be scrolled through individually.
Popup menus are available for every element, giving a list of options that allow you to examine the elements in more detail. Here the user is about to look in detail at shell 415 using the option.
|
Note that while creating or editing a part, as elsewhere in PRIMER, you
are always working with a "scratch" definition of the part.
Elements are not actually transferred to or from this part at this stage, as its permanent definition is not updated until you or it explicitly. At that time you will be required to confirm the transfer of elements between parts, and to determine how elements deleted from this part are to be disposed of. This is described in section PART_UPDATE below. |
PART_UPDATE How element addition and deletion is processed on update/create
When part operations have added elements to or removed them from a part this only takes place in the scratch definition, so some extra processing is required when the permanent part definition is updated on or .
This is done via the ADD/REMOVE ACTIONS panel, as shown here, which is automatically displayed.
|
In this example one shell has been added to this part and one has been
removed from it.
Before user can apply the change they must determine what to do with the elements flagged for removal. These must be deleted or moved into another part. |
|
If the deletion option
is
chosen the elements and any associated items will be marked for deletion,
and you will get the standard deletion confirmation panel.
In this example 2 shells are flagged for removal, and they own 8 nodes. These will be deleted from the part once you confirm the action. If you abort the deletion the part update will be blocked as it cannot proceed without corrupting the model. |
PART_PROPERTIES Calculating and displaying structural properties.
The command calculates the mass, C of G and Inertias of the part based on its known element properties. A typical output is shown:
"Known element properties" means:
- Element topologies must be defined, and node coordinates specified.
- Section definitions for shells and beams must be defined.
- Material definitions must be defined for all types to give density values.
Note the following exclusions from property calculations:
Any contributions due to items not in this part, but which are connected to it, are ignored. An example would be * ELEMENT_MASS and * ELEMENT_INERTIA elements which are connected to nodes on elements in this part, but not formally of it.
"Rigid" parts (see PART_RIGID below) for which mass and/or centroid and/or inertia have been externally specified still have their properties calculated on the basis of element properties, not on the stipulated values, and also do not include the effects of any rigid body merges.
PART_RIGID Parts using rigid materials (*MAT_RIGID)
"Rigid" parts in Ansys LS-DYNA are those which use the special rigid material * MAT_RIGID , and they have a whole range of special attributes which make them computationally efficient, but which can complicate their use. First a bit of theory - skip this if you already know about rigid bodies:
|
PRIMER provides some special facilities for processing and checking rigid parts.
PART_INERTIA Overriding calculated properties for rigid parts.The sub-keyword _INERTIA appended to a rigid part definition means that some or all of its mass, centre of gravity and inertia tensor terms are externally defined. For such a part no mass, C of G or inertia properties are calculated and the externally supplied values are used.
Initial velocities may also be defined: if they are not then the part is assumed to have no initial velocity.
PRIMER reports the rigid property fields in the create/edit panel, as shown
below, and you are free to update any of these.
In this example the C. of G. ( XC, YC, ZC ), mass ( TM ) and inertia tensor ( Ixx .. Izz ) have all been defined. The tensor here is in the global system: a local system can be defined by setting IRCS to 1, then defining local axes.
Rigid attributes Calculating and (re-)setting rigid properties and restraints.
(At present RESTRAINTS etc , which will help with the definition of restraints and constraints for this rigid part, is not available. This is required since restraints and constraints applied directly to the nodes of rigid parts do not work, and these must instead be applied to the part itself. In addition rigid body merges, prescribed motion, "stoppers", and so on all merit special attention.)
INSERT PROPS calculates properties from the elements of this part, (exactly as described in PART_PROPERTIES above), and allows you to insert some or all of these as the "externally" defined terms above.
Use the popup menu, as shown here, to select which properties to overwrite.
Notes on using "rigid" partsThe definition of a "rigid" part is one that uses material type * MAT_RIGID . |
- You should still give sensible density, Young's modulus and section properties for rigid parts. This is because these values are used when computing stiffness and geometry (for shells) for contact, and also mass, C of G and inertia properties if these are not externally defined.
- _INERTIA definitions are optional for rigid parts, and if omitted the properties will be calculated from the part's elements as described above.
- _INERTIA definitions cannot be defined for non-rigid parts. PRIMER will allow you to specify them in the editing panel on the premise that you will subsequently change the material type. However checking on , or when using , will flag this as an error.
- The rule that parts can only contain one type of element still holds true for rigid parts. To assemble a rigid body containing different element types create one (or more) parts for each element type, then merge them together using * CONSTRAINED_RIGID_BODIES . The parts need not be physically connected in any way.
- Rigid parts may have common nodes with other non-rigid parts, but they may not share common nodes with other rigid parts unless the parts have been merged as above. (Otherwise the common nodes would be subject to multiple constraints.)
- "Extra" nodes, not necessarily attached to any elements, may be added to rigid parts using * CONSTRAINED_EXTRA_NODES . These have their positions updated by the rigid body equations and can be extremely useful for connecting to rigid bodies.
- The Ansys LS-DYNA manual claims that rigid parts for which mass, C of G and inertia properties are defined need not contain any elements. In practice this seems not to work, and it is recommended that you have at least one element in a rigid part, even if it is a dummy that serves no purpose.
The part checking functions detect many errors associated with the use of rigid bodies, but for a comprehensive check it is necessary also to run the * NODE and * CONSTRAINED checking functions. These will, for example, detect multiple constraints on nodal degrees of freedom, and attempts to apply "rigid" constraints to non-rigid parts.
The > command, which runs all checking routines, will perform these checks for you.
PART_REPOSITION Special options for coupled analyses
This is a specialist option which applies only to deformable parts that are to control the motion of rigid components in a coupled (CAL3D, MADYMO) analysis.
Refer to the Ansys LS-DYNA user manual for more information.
PART_CONTACT Specifying part-specific contact parameters for part-based contact
When part-based contact (using parts or part sets) is used for the "automatic" contact types it can be convenient to have specific contact parameters for each part which supersede the default ones on the * CONTACT card.
PRIMER allows you to set the _CONTACT parameter and define its values:
Refer to the Ansys LS-DYNA manual for the exact meaning of these parameters, and also the contact types to which they apply.
PART_COMPOSITE Specifying composite layers within a part
The part composite option changes the part panel to allow the user to create layers within the part. The MID and SECID are removed because it is all contained within the part cards
The user can enter layer information at the bottom of the panel, and it is possible to move layers up / down and create duplicate layers using the right-click popup to the right of each layer.
PART_PRINT Allows user control over whether output is written into the ASCII files MATSUM and RBDOUT
PRIMER allows you to set the _PRINT parameter and define its options. Refer to the Ansys LS-DYNA manual for the exact meaning of these.
PART_ATTACHMENT_NODES Allows user control over which nodes are treated as attachment nodes
PRIMER allows you to set the _ATTACHMENT_NODES parameter and define its options. Refer to the Ansys LS-DYNA manual for the exact meaning of these.
PART_ADAPTIVE_FAILURE Allows user control over which nodes are treated as attachment nodes
PRIMER allows you to set up a _ADAPTIVE_FAILURE card. Refer to the Ansys LS-DYNA manual for the exact meaning of this card.
PART_MODES Allows user control over which nodes are treated as attachment nodes
PRIMER allows you to set up a _MODES card. Refer to the Ansys LS-DYNA manual for the exact meaning of this card.
PART_SENSOR Allows user control over which nodes are treated as attachment nodes
PRIMER allows you to set up a _SENSOR card. Refer to the Ansys LS-DYNA manual for the exact meaning of this card.
PART_MOVE Allows user control over which nodes are treated as attachment nodes
PRIMER allows you to set up a _MOVE card. Refer to the Ansys LS-DYNA manual for the exact meaning of this card.
Visualising and Labelling parts
Parts are not drawn explicitly, but PRIMER can draw parts, by drawing their constituent elements, and can also label them by adding part ids to element label strings. Part visibility and labelling is therefore inherent in element visibility, controlled in ity Viewing.
Parts may also be sketched in wireframe mode on the current image using the main and create/edit SKETCH options above.
COLOUR Colouring parts
Colours of parts can be set in two ways. The first method (as shown to the right) is to locate the part in the part tree, right click to bring up the edit pop-up menu and then select the desired colour option. You can select:
- A constant colour from the predefined range
- An arbitrary constant colour using ' '. This allows mixing of a colour from the full range of shades supported by the hardware.
- The colour for this item. The actual colour(s) are a function of item type, i.e. an element with a part id will inherit the colour of its part. Other items are based on their constituent sets or perhaps their labels.
- will apply the colour based on Model number modulo 13 (standard PRIMER sequence red, green, blue etc).
- will apply the colour based on Include file number modulo 13 (standard PRIMER sequence red, green, blue etc).
- , , and colours only apply to element types with a part id.
Alternatively, it is possible to use the Quick Pick tool. The same options as above are available which will then be applied to selected parts:



