How to create a new material in AEDT using PyAEDT?
ansys-satyajeet
Member, Employee Posts: 14
✭✭✭
Best Answer
-
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.
if not ipk.materials.checkifmaterialexists("matname"): mat = ipk.materials.add_material("matname") mat.thermal_conductivity = "400" mat.mass_density = "8000" mat.specific_heat = "700"
0