Material.coordinate_system #4782
-
Hello, For the Material class is it possible to change the three components of the coordinate system? For example, I can change from "Cartesian" to "Cylindrical" by doing Material.coordinate_system = "Cylindrical". But if I want to change the "R Component" from 1 to -1 how would I do it? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @rickygill00, Thanks for opening this discussion. Hope this helps, Giulia |
Beta Was this translation helpful? Give feedback.
Hi @rickygill00,
Thanks for opening this discussion.
You can get access to the magnetic coercivity of the material and then update the cylindrical coordinate system as:
m2d.materials.material_keys[mat_name].magnetic_coercivity.value = ["0", "-1", "0", "0"]
and for safety use the update():
m2d.materials.material_keys[mat_name].update()
Hope this helps,
Regards,
Giulia