swgen#

Mapdl.swgen(ecomp='', swrd='', ncm1='', ncm2='', snd1='', snd2='', shrd='', dirx='', diry='', dirz='', itty='', icty='', **kwargs)#

Creates a new spot weld set.

APDL Command: SWGEN

Parameters:
ecomp

Name to identify the new spot weld. This name will be used for the element component containing the new contact, target, and beam elements generated for the spot weld set.

swrd

Spot weld radius.

ncm1

Name of a component containing nodes on the first spot weld surface, or a meshed area number for the surface.

ncm2

Name of a component containing nodes on the second spot weld surface, or a meshed area number for the surface.

snd1

Node number of the first spot weld node corresponding to the first surface (NCM1). This node can be on or close to the first surface.

snd2

Node number of the second spot weld node corresponding to the second surface (NCM2). This node can be on or close to the second surface. ANSYS will create the node if it is not specified.

shrd

Search radius. Defaults to 4 times the spot weld radius SWRD.

dirx, diry, dirz

Spot weld projection direction in terms of normal X, Y, and Z components.

itty

Target element type ID.

icty

Contact element type ID.

Notes

This command creates a new spot weld set. You can add more surfaces to the set using SWADD after the initial SWGEN command. However, the maximum number of allowable surfaces (including the 2 surfaces used for the original set) for each spot weld set is 11.

Ecomp, SWRD, NCM1, NCM2, and SND1 must be specified. SND2, SHRD, DIRX, DIRY, DIRZ, ITTY, ICTY are optional inputs. If the second spot weld node (SND2) is specified, that node is used to determine the spot weld projection direction, andDIRX, DIRY and DIRZ are ignored.

If ITTY is specified, the following corresponding target element key option must be set: KEYOPT(5) = 4. If ICTY is specified, the following corresponding contact element key options must be set: KEYOPT(2) = 2, KEYOPT(12) = 5.

Use the SWLIST and SWDEL commands to list or delete spot welds. See Creating a Basic Spot Weld Set with SWGEN for detailed information on defining spot welds.