Amrita Pati
Ansys Employee

Hi Mickaƫl,

Let's say you have a SiO2 coated Au ellipsoid. If the thickness of the coat is fixed, then it could be simply done by creating two ellipsoids and changing their mesh orders. If the central ellipsoid has a lower mesh order than the coating, then in the overlapping regions, the central ellipsoid will take priority. Assuming that the thickness of the coat is 250 nm and the ellipsoid is placed at the origin (0,0,0), then you can use the following code:

addsphere;

set("name","central");

setnamed("central","make ellipsoid",true);

setnamed("central","x",0e-6);

setnamed("central","y",0e-6);

setnamed("central","z",0e-6);

setnamed("central","radius",0.5e-6);

setnamed("central","radius 2",1e-6);

setnamed("central","radius 3",1e-6);

setnamed("central","material","Au (Gold) - Johnson and Christy");

######

addsphere;

set("name","coat");

setnamed("coat","make ellipsoid",true);

setnamed("coat","x",0e-6);

setnamed("coat","y",0e-6);

setnamed("coat","z",0e-6);

setnamed("coat","radius",0.75e-6);

setnamed("coat","radius 2",1.25e-6);

setnamed("coat","radius 3",1.25e-6);

setnamed("coat","material","SiO2 (Glass) - Palik");

setnamed("coat","override mesh order from material database",true);

setnamed("coat","mesh order",3);

setnamed("coat","override color opacity from material database",true);

setnamed("coat","alpha",0.5);



Here, by default, the mesh order of "central" is 2 and I have changed the mesh order of "coat" to 3. So, you effectively have a gold ellipsoid that is coated by 250 nm of SiO2 (index preview from the index monitor shown below).



Please let me know if I missed something.

Regards,
Amrita