Photonics

Photonics

Topics related to Lumerical and more.

How to set mesh order from script?

    • GWANG
      Ansys Employee
      Hello, I am trying to simulate a core shell structure by using the hemisphere shape of the particles. Here i need to give the mesh order to the core and as as well as to the shell particles. could any one suggest that how to add mesh order command to the properties of the hemisphere. Thank you for any help.n
    • GWANG
      Ansys Employee
      Here is a script that you can use:nselect(rectangle);nset(override mesh order from material database,1);nset(mesh order,1); nPlease see the links below for more information:nhttps://kb.lumerical.com/en/index.html?ref_scripts_tutorial_set_object.html 226nI hope this answered your question. If you had further questions, please share your simulation file or illustrate how you want to set the mesh order for different objects and I will be glad to be of a help.n
    • Nathan Lin
      Subscriber

      For either option nset(override mesh order from material database,1);nset(mesh order,1); could I simply put this into a for loop to produce many structures of the same mesh order?

Viewing 2 reply threads
  • The topic ‘How to set mesh order from script?’ is closed to new replies.