Ansys Learning Forum › Forums › Discuss Simulation › Photonics › lumopt errors › Reply To: lumopt errors
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