get material name from *MatNum

Moderator: GiD Team

Post Reply
kstn
Posts: 41
Joined: Wed Jan 21, 2015 2:03 pm

get material name from *MatNum

Post by kstn »

Hello

Is there a way to get the material name from *MatNum in *loop material ?

Consider the loop

Code: Select all

*loop materials
        Material *MatNum is assigned DENSITY = *MatProp(Density,real)
        Material *MatNum has name ???
*end materials
The problem is that the model has many materials and each portion is given a material name (which is copied from an existing one). With the somehow random *MatNum assigned, it's not possible to know which material number is assigned to which name in the simulation script.

Giang
User avatar
escolano
Posts: 1918
Joined: Sun Sep 05, 1982 10:51 pm

Re: get material name from *MatNum

Post by escolano »

the 0-index field return the material's name

*MatProp(0)
Post Reply