EL2MAT
Bulk Data Entry Used to assign material ID to elements.
Format
| (1) | (2) | (3) | (4) | (5) | (6) | (7) | (8) | (9) | (10) | 
|---|---|---|---|---|---|---|---|---|---|
| EL2MAT | ID | ||||||||
| ELSETID | MTYPE | MATID | ELSETID | MTYPE | MATID | ||||
| ELSETID | MTYPE | MATID | ELSETID | MTYPE | MATID | ||||
| etc | 
Alternate Format
| (1) | (2) | (3) | (4) | (5) | (6) | (7) | (8) | (9) | (10) | 
|---|---|---|---|---|---|---|---|---|---|
| EL2MAT | ID | ALTER | |||||||
| MATID | ELSETID | ELSETID | ELSETID | ELSETID | ELSETID | ELSETID | ELSETID | ||
| ELSETID | ELSETID | etc | etc | ||||||
| MATID | ELSETID | ELSETID | ELSETID | ELSETID | ELSETID | ELSETID | ELSETID | ||
| ELSETID | ELSETID | etc | etc | 
Example
| (1) | (2) | (3) | (4) | (5) | (6) | (7) | (8) | (9) | (10) | 
|---|---|---|---|---|---|---|---|---|---|
| EL2MAT | 3 | ||||||||
| 8 | MAT1 | 4 | 
Alternate Format Example
| (1) | (2) | (3) | (4) | (5) | (6) | (7) | (8) | (9) | (10) | 
|---|---|---|---|---|---|---|---|---|---|
| EL2MAT | 3 | ALTER | |||||||
| 4 | 8 | 2 | 
Definitions
| Field | Contents | SI Unit Example | 
|---|---|---|
| ID | Identification number of
                                    EL2MAT. No default (Integer > 0)  | 
                            |
| ALTER | ALTER flag indicating the alternate format is being used. | |
| ELSETID | Element set identification
                                    number. No default (Integer > 0)  | 
                            |
| MTYPE | (Optional) Property
                                    type.
 No default  | 
                            |
| MATID | Material identification
                                    number. No default (Integer > 0)  | 
                            
Comments
- The EL2MAT Bulk Data Entry can be used to assign Material ID’s to Element sets.
 - The ID field is only used by HyperMesh. When ECHO entry is present in the model, all EL2MAT entries are combined into one EL2MAT entry with an internally generated ID. The ID of the EL2MAT entries are not used in OptiStruct.