We have an exciting announcement about badges coming in May 2025. Until then, we will temporarily stop issuing new badges for course completions and certifications. However, all completions will be recorded and fulfilled after May 2025.

Ansys Learning Forum Forums Discuss Simulation Photonics lumopt errors Reply To: lumopt errors

anna.wirth-singh
Ansys Employee

Hi Ashish,

I'm sorry to hear you are having issues with lumopt. Can you please provide some more information about the line geometry = FunctionDefinedPolygon(arguments) ? I am not able to see the function arguments in the post, so perhaps you can paste the code in plain text. That will help to diagnose the problem. 

Here is an example of how a geometry can be defined:

geometry = FunctionDefinedPolygon(func = your_function,
                                 initial_params = initial_params,
                                 bounds = bounds,
                                 z = 0.0,
                                 depth = depth,
                                 eps_out = eps_out,
                                 eps_in = eps_in,
                                 dx = 1.0e-11)

 

Where 'your_function' is a function you have written to return the points in a polygon, ordered in a counter clockwise direction.

I do not see 'unfold_symmetry' as one of the keywords of FunctionDefinedPolygon, so that is likely where the error is coming from. The available keyword parameters are listed here: Geometries — LumOpt documentation

Best,

Anna