emodif#
- Mapdl.emodif(iel='', stloc='', i1='', i2='', i3='', i4='', i5='', i6='', i7='', i8='', **kwargs)#
Modifies a previously defined element.
APDL Command: EMODIF
- Parameters:
- iel
Modify nodes and/or attributes for element number IEL. If ALL, modify all selected elements [ESEL]. A component name may also be substituted for IEL.
- stloc
Starting location (n) of first node to be modified or the attribute label.
- i1, i2, i3, i4, i5, i6, i7, i8
Replace the previous node numbers assigned to this element with these corresponding values. A (blank) retains the previous value (except in the I1 field, which resets the STLOC node number to zero).
- Return type:
Notes
The nodes and/or attributes (MAT, TYPE, REAL, ESYS, and SECNUM values) of an existing element may be changed with this command.
Examples
Modify all elements to have a material number of 2.
>>> mapdl.clear() >>> mapdl.prep7() >>> mp_num = 2 >>> mapdl.mp('EX', mp_num, 210E9) >>> mapdl.mp('DENS', mp_num, 7800) >>> mapdl.mp('NUXY', mp_num, 0.3) >>> mapdl.block(0, 1, 0, 1, 0, 1) >>> mapdl.et(1, 'SOLID186') >>> mapdl.vmesh('ALL') >>> mapdl.emodif('ALL', 'MAT', i1=mp_num) 'MODIFY ALL SELECTED ELEMENTS TO HAVE MAT = 2'
Use emodif to modify all of volume 2’s elements after meshing.
>>> mapdl.vmesh('S', 'VOLU', '', 2) >>> mapdl.allsel('BELOW', 'VOLU') >>> mapdl.emodif('ALL', 'MAT', 2)