Assigning material properties to newly created materials #4851
-
I am creating new material using pyAEDT in Icepak with command add_material and specifying orthotropic thermal conductivity, which is working fine , Command I am using is New_mat=ipk.materials.add_material("NEW_MAT").thermal_conductivity=['21','21','31'] I want to add density as well as specific heat for the same, which i am unable to, can you suggest options for it. These are the few options i tried for it which did not work New_mat=ipk.materials.add_material("NEW_MAT").thermal_conductivity=['21','21','31'].New_mat.specific_heat("1350") |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @Somayaji1995, Have you tried: Hope this helps, Regards, Giulia |
Beta Was this translation helpful? Give feedback.
-
Hi, If you must assign properties for density and specific heat, please see the code lines below. It is a good practice to check if the material already exists before creating a new one. The properties of the object if not ipk.materials.checkifmaterialexists("matname"):
mat = ipk.materials.add_material("matname")
mat.thermal_conductivity = "400"
mat.mass_density = "8000"
mat.specific_heat = "700" |
Beta Was this translation helpful? Give feedback.
Hi,
If you must assign properties for density and specific heat, please see the code lines below. It is a good practice to check if the material already exists before creating a new one. The properties of the object
mat
can be obtained usingdir(mat)
as suggested by @gmalinve above.