Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.
Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.
how to change material properties of a mesh element in a loop
Posted 27 set 2013, 08:07 GMT-4 Interfacing Version 4.3 2 Replies
Please login with a confirmed email address before reporting spam
I am working with livelink to maltab and I have a geometry with three domains assigned with certain material properties. After solving my model for the first iteration, I take the results for each node or element and depenting on the values I get I need to change the material properties of that node or element.
I think that I can't use somehow the command
model.material('<mat tag>').selection.set([<point>]) e.g. for each point node, since the materials are assigned to domains, geometries or boundaries, right?
Do you have any idea about how to make it? For each iteration maybe I have to re-create the geometry including a new domain (even if this is an element) and then assign the domain with the new material properties? how can I create a new domain from matlab?
Thanks
Hello Maria Vavva
Your Discussion has gone 30 days without a reply. If you still need help with COMSOL and have an on-subscription license, please visit our Support Center for help.
If you do not hold an on-subscription license, you may find an answer in another Discussion or in the Knowledge Base.