# Defining meshorder in grouped material

#1

This is really important for me!!!
I need to simulate core-shell NWs. If I use the script generated structure I can not define the meshorder. I am very confused how can I do that. Any help please!!!

#2

Could you provide more details on the modeling you are doing?
Unless you be more specific, I can only recommend the page https://kb.lumerical.com/en/materials_mesh_order_optical.html

#3

To modify “mesh order”, you need to first set override mesh order from material database to 1. This will activate the mesh order i.e. will check the box. Then you can set the mesh order to a value of interest:

elect("rectangle");
set("override mesh order from material database",1);
set("mesh order",1);