Photonics

Photonics

Topics related to Lumerical and more.

An inquiry regarding simulating hollow cylinder

    • amora
      Subscriber

      Hello,


      I am trying to simulate a cylinder that is covered by another hollow cylinder. I mean that the inner cylinder will be covered from sides and top by another hollow cylinder. How can I script that please? I was thinking to simulate two overlapping cylinders. Then, try to decrease the mesh order of the inner cylinder to have priority in the simulation but I couldn't because the material of the inner cylinder is protected so I couldn't change its properties. If I have two overlapping cylinders, they will be having the same mesh order. Also the inner cylinder will pass through a rectangular film. I need to create a hole in this film to avoid the overlapping between the film and the inner cylinder. How to solve that please?


      Thanks

    • Guilin Sun
      Ansys Employee
      From you description: "the inner cylinder will be covered from sides and top by another hollow cylinder", could you set them successfully in GUI by hand? if so, you can do this by script.
      You will need two scripts to modify the mesh order:
      1:

    • amora
      Subscriber
      I tried to change the mesh order of the inner cylinder to be 1, so it will take priority in the running. I used this script to change the mesh order:
      setmaterial( "Au (Gold) - Palik", "mesh order", 1);

      However, I got this error:

      Error: prompt line 104: The material, Au (Gold) - Palik, is write protected.


      It means that I won't be able to change the mesh order because the material is protected.

      What's the solution please?
    • Guilin Sun
      Ansys Employee
      No, not that way. You have to follow my suggestion from the previous reply: two actions:
      1: enable to modify the mesh order
      2:modify the order.

      I pasted it again here


    • amora
      Subscriber
      Oh, I see, how can I do that using script? I am using script.

      I tried to use :set("set override mesh order",1); to enable override mesh but it didn't work

      Is there any command to solve that please?

    • Guilin Sun
      Ansys Employee
      there is no such "set override mesh order"!
      Please use
      ?setnamed("rectangle") if the object name is "rectangle"
      to get all the variables that can be set through script.
      Please try the following
      setnamed("rectangle","override mesh order from material database",1);
      setnamed("rectangle","mesh order", 1);

    • amora
      Subscriber
      Ok, thanks.

      I just need to know, is reducing or increasing the mesh order affect the accuracy of the result? I know that decreasing the mesh order gives the priority in the simulation but does it affect the accuracy?
    • Guilin Sun
      Ansys Employee
      No, the mesh order only affects the geometry to make sure the shape is correct.
    • amora
      Subscriber
      thanks
Viewing 8 reply threads
  • The topic ‘An inquiry regarding simulating hollow cylinder’ is closed to new replies.