Ansys Learning Forum › Forums › Discuss Simulation › Photonics › How to use ”initial guess” in topology optimization? › Reply To: How to use ”initial guess” in topology optimization?
Thank you for your response, Niki.
I have read through the post you shared, but I still don't know how to solve my problem.
In my lsf file, the opt_fields is a square with a size of 1.52e-6, and the FDTD region has mesh accuracy set to 3. The opt_fields does not have additional grid settings.
In the Python code, I set:
size_x = 1520
x_points = int(size_x / 20) + 1
x_pos = np.linspace(-size_x / 2 * 1e-9, size_x / 2 * 1e-9, x_points)
(the same as y)
I'm not sure if this setup is correct. The example seems to be configured similarly, but I don't understand why it 'reports 1 parameter.' Even when I change the shape of the geometry or grid size, it still reports only 1 parameter.