


{"id":216988,"date":"2022-06-28T04:53:51","date_gmt":"2022-06-28T04:53:51","guid":{"rendered":"\/forum\/forums\/topic\/inverse-design-of-polymer-y-branch-modify-the-example-provided\/"},"modified":"2023-04-18T06:46:08","modified_gmt":"2023-04-18T06:46:08","slug":"inverse-design-of-polymer-y-branch-modify-the-example-provided","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/inverse-design-of-polymer-y-branch-modify-the-example-provided\/","title":{"rendered":"Inverse design of polymer y-branch &#8211; modify the example provided"},"content":{"rendered":"<p>Hi all,<\/p>\n<p>I tried to optimize a polymer y-branch according to the example here (https:\/\/optics.ansys.com\/hc\/en-us\/articles\/360042305274).<\/p>\n<p>Since polymer (SU-8) has a much lower refractive index, the main different is the size. I modified all sizes in the base setup .py file and the simulation .py file, yet error occured saying &#8220;The initial X is infeasible. &nbsp;Restart with its projection.&#8221; As a result, the polygon structure extends beyond the bounds defined, and FoM could not be calculated.<\/p>\n<p>Attached please find the screenshot and codes. Please help to check if I made anything wrong.<\/p>\n<p>Thank you very much!<\/p>\n<p style=\"padding-left: 40px\">[File 1]<\/p>\n<p style=\"padding-left: 40px\">#############################################################################<\/p>\n<p style=\"padding-left: 40px\"># Scriptfile: y_branch_opt_2D.py<\/p>\n<p style=\"padding-left: 40px\">#<\/p>\n<p style=\"padding-left: 40px\"># Description:<\/p>\n<p style=\"padding-left: 40px\"># This script sets up and runs the adjoint shape-based optimization for inverse<\/p>\n<p style=\"padding-left: 40px\"># design of the SOI Y-branch in 2D<\/p>\n<p style=\"padding-left: 40px\">#<\/p>\n<p style=\"padding-left: 40px\"># Steps include:<\/p>\n<p style=\"padding-left: 40px\"># 1. Define the base simulation<\/p>\n<p style=\"padding-left: 40px\"># 2. Define the optimizable geometry and optimization parameters<\/p>\n<p style=\"padding-left: 40px\"># 3. Run optimization<\/p>\n<p style=\"padding-left: 40px\"># 4. Save results<\/p>\n<p style=\"padding-left: 40px\">#<\/p>\n<p style=\"padding-left: 40px\"># Copyright 2019, Lumerical Solutions, Inc.<\/p>\n<p style=\"padding-left: 40px\"># Copyright chriskeraly<\/p>\n<p style=\"padding-left: 40px\">##############################################################################<\/p>\n<p style=\"padding-left: 40px\">&nbsp;<\/p>\n<p style=\"padding-left: 40px\">import os, sys<\/p>\n<p style=\"padding-left: 40px\">import numpy as np<\/p>\n<p style=\"padding-left: 40px\">import scipy as sp<\/p>\n<p style=\"padding-left: 40px\">import lumapi<\/p>\n<p style=\"padding-left: 40px\">&nbsp;<\/p>\n<p style=\"padding-left: 40px\">from lumopt.utilities.wavelengths import Wavelengths<\/p>\n<p style=\"padding-left: 40px\">from lumopt.geometries.polygon import FunctionDefinedPolygon<\/p>\n<p style=\"padding-left: 40px\">from lumopt.utilities.materials import Material<\/p>\n<p style=\"padding-left: 40px\">from lumopt.figures_of_merit.modematch import ModeMatch<\/p>\n<p style=\"padding-left: 40px\">from lumopt.optimizers.generic_optimizers import ScipyOptimizers<\/p>\n<p style=\"padding-left: 40px\">from lumopt.optimization import Optimization<\/p>\n<p style=\"padding-left: 40px\">&nbsp;<\/p>\n<p style=\"padding-left: 40px\">######## BASE SIMULATION ########<\/p>\n<p style=\"padding-left: 40px\">sys.path.append(os.path.dirname(__file__))<\/p>\n<p style=\"padding-left: 40px\">from varFDTD_y_branch import y_branch_init_<\/p>\n<p style=\"padding-left: 40px\">y_branch_base = y_branch_init_<\/p>\n<p style=\"padding-left: 40px\">&nbsp;<\/p>\n<p style=\"padding-left: 40px\">######## DIRECTORY FOR GDS EXPORT #########<\/p>\n<p style=\"padding-left: 40px\">example_directory = os.getcwd()<\/p>\n<p style=\"padding-left: 40px\">&nbsp;<\/p>\n<p style=\"padding-left: 40px\">######## SPECTRAL RANGE #########<\/p>\n<p style=\"padding-left: 40px\">wavelengths = Wavelengths(start = 1530e-9, stop = 1570e-9, points = 21)<\/p>\n<p style=\"padding-left: 40px\">&nbsp;<\/p>\n<p style=\"padding-left: 40px\">######## DEFINE OPTIMIZABLE GEOMETRY ########<\/p>\n<p style=\"padding-left: 40px\"># The class FunctionDefinedPolygon needs a parameterized Polygon (with points ordered<\/p>\n<p style=\"padding-left: 40px\"># in a counter-clockwise direction). Here the geometry is defined by 10 parameters defining<\/p>\n<p style=\"padding-left: 40px\"># the knots of a spline, and the resulting Polygon has 200 edges, making it quite smooth.<\/p>\n<p style=\"padding-left: 40px\">&nbsp;<\/p>\n<p style=\"padding-left: 40px\"># Define the span and number of points<\/p>\n<p style=\"padding-left: 40px\">initial_points_x = np.linspace(-12.5e-6, 12.5e-6, 10)<\/p>\n<p style=\"padding-left: 40px\">initial_points_y = np.linspace(5e-6, 5e-6, initial_points_x.size)<\/p>\n<p style=\"padding-left: 40px\">def splitter(params):<\/p>\n<p style=\"padding-left: 40px\">&#8221;&#8217; Defines a taper where the paramaters are the y coordinates of the nodes of a cubic spline. &#8221;&#8217;<\/p>\n<p style=\"padding-left: 40px\">&nbsp;<\/p>\n<p style=\"padding-left: 40px\">## Include two set points based on the initial guess. The should attach the optimizeable geometry to the input and output<\/p>\n<p style=\"padding-left: 40px\">points_x = np.concatenate(([initial_points_x.min() &#8211; 0.01e-6], initial_points_x, [initial_points_x.max() + 0.01e-6]))<\/p>\n<p style=\"padding-left: 40px\">points_y = np.concatenate(([initial_points_y.min()], params, [initial_points_y.max()]))<\/p>\n<p style=\"padding-left: 40px\">&nbsp;<\/p>\n<p style=\"padding-left: 40px\">## Up sample the polygon points for a smoother curve. Some care should be taken with interp1d object. Higher degree fit<\/p>\n<p style=\"padding-left: 40px\"># &#8220;cubic&#8221;, and &#8220;quadratic&#8221; can vary outside of the footprint of the optimization. The parameters are bounded, but the<\/p>\n<p style=\"padding-left: 40px\"># interpolation points are not. This can be particularly problematic around the set points.<\/p>\n<p style=\"padding-left: 40px\">n_interpolation_points = 100<\/p>\n<p style=\"padding-left: 40px\">polygon_points_x = np.linspace(min(points_x), max(points_x), n_interpolation_points)<\/p>\n<p style=\"padding-left: 40px\">interpolator = sp.interpolate.interp1d(points_x, points_y, kind = &#8216;cubic&#8217;)<\/p>\n<p style=\"padding-left: 40px\">polygon_points_y = interpolator(polygon_points_x)<\/p>\n<p style=\"padding-left: 40px\">print(polygon_points_y)<\/p>\n<p style=\"padding-left: 40px\">&nbsp;<\/p>\n<p style=\"padding-left: 40px\">### Zip coordinates into a list of tuples, reflect and reorder. Need to be passed ordered in a CCW sense<\/p>\n<p style=\"padding-left: 40px\">polygon_points_up = [(x, y) for x, y in zip(polygon_points_x, polygon_points_y)]<\/p>\n<p style=\"padding-left: 40px\">polygon_points_down = [(x, -y) for x, y in zip(polygon_points_x, polygon_points_y)]<\/p>\n<p style=\"padding-left: 40px\">polygon_points = np.array(polygon_points_up[::-1] + polygon_points_down)<\/p>\n<p style=\"padding-left: 40px\">return polygon_points<\/p>\n<p style=\"padding-left: 40px\">&nbsp;<\/p>\n<p style=\"padding-left: 40px\"># L-BFGS methods allows the parameters to be bound. These should enforse the optimization footprint defined in the setup<\/p>\n<p style=\"padding-left: 40px\">bounds = [(0.2e-6, 0.8e-6)] * initial_points_y.size<\/p>\n<p style=\"padding-left: 40px\">print(&#8220;Bounds:&#8221;)<\/p>\n<p style=\"padding-left: 40px\">print(bounds)<\/p>\n<p style=\"padding-left: 40px\">&nbsp;<\/p>\n<p style=\"padding-left: 40px\">#Load from 2D results if availble<\/p>\n<p style=\"padding-left: 40px\">try:<\/p>\n<p style=\"padding-left: 40px\">prev_results = np.loadtxt(&#8216;2D_parameters.txt&#8217;)<\/p>\n<p style=\"padding-left: 40px\">except:<\/p>\n<p style=\"padding-left: 40px\">print(&#8220;Couldn&#8217;t find the file containing 2D optimization parameters. Starting with default parameters&#8221;)<\/p>\n<p style=\"padding-left: 40px\">prev_results = initial_points_y<\/p>\n<p style=\"padding-left: 40px\">&nbsp;<\/p>\n<p style=\"padding-left: 40px\"># Set device and cladding materials, as well as as device layer thickness<\/p>\n<p style=\"padding-left: 40px\">eps_in = Material(name = &#8216;SU-8&#8217;)<\/p>\n<p style=\"padding-left: 40px\">eps_out = Material(name = &#8216;air&#8217;)<\/p>\n<p style=\"padding-left: 40px\">depth = 2e-6<\/p>\n<p style=\"padding-left: 40px\">&nbsp;<\/p>\n<p style=\"padding-left: 40px\"># Initialize FunctionDefinedPolygon class<\/p>\n<p style=\"padding-left: 40px\">polygon = FunctionDefinedPolygon(func = splitter,<\/p>\n<p style=\"padding-left: 40px\">initial_params = prev_results,<\/p>\n<p style=\"padding-left: 40px\">bounds = bounds,<\/p>\n<p style=\"padding-left: 40px\">z = 0.0,<\/p>\n<p style=\"padding-left: 40px\">depth = depth,<\/p>\n<p style=\"padding-left: 40px\">eps_out = eps_out, eps_in = eps_in,<\/p>\n<p style=\"padding-left: 40px\">edge_precision = 5,<\/p>\n<p style=\"padding-left: 40px\">dx = 1.0e-9)<\/p>\n<p style=\"padding-left: 40px\">&nbsp;<\/p>\n<p style=\"padding-left: 40px\">&nbsp;<\/p>\n<p style=\"padding-left: 40px\">######## FIGURE OF MERIT ########<\/p>\n<p style=\"padding-left: 40px\">fom = ModeMatch(monitor_name = &#8216;fom&#8217;,<\/p>\n<p style=\"padding-left: 40px\">mode_number = &#8216;fundamental mode&#8217;,<\/p>\n<p style=\"padding-left: 40px\">direction = &#8216;Forward&#8217;,<\/p>\n<p style=\"padding-left: 40px\">target_T_fwd = lambda wl: np.ones(wl.size),<\/p>\n<p style=\"padding-left: 40px\">norm_p = 1)<\/p>\n<p style=\"padding-left: 40px\">&nbsp;<\/p>\n<p style=\"padding-left: 40px\">######## OPTIMIZATION ALGORITHM ########<\/p>\n<p style=\"padding-left: 40px\">optimizer = ScipyOptimizers(max_iter = 30,<\/p>\n<p style=\"padding-left: 40px\">method = &#8216;L-BFGS-B&#8217;,<\/p>\n<p style=\"padding-left: 40px\">#scaling_factor = scaling_factor,<\/p>\n<p style=\"padding-left: 40px\">pgtol = 1.0e-5,<\/p>\n<p style=\"padding-left: 40px\">ftol = 1.0e-5,<\/p>\n<p style=\"padding-left: 40px\">#target_fom = 0.0,<\/p>\n<p style=\"padding-left: 40px\">scale_initial_gradient_to = 0.0)<\/p>\n<p style=\"padding-left: 40px\">&nbsp;<\/p>\n<p style=\"padding-left: 40px\">######## PUT EVERYTHING TOGETHER ########<\/p>\n<p style=\"padding-left: 40px\">opt = Optimization(base_script = y_branch_base,<\/p>\n<p style=\"padding-left: 40px\">wavelengths = wavelengths,<\/p>\n<p style=\"padding-left: 40px\">fom = fom,<\/p>\n<p style=\"padding-left: 40px\">geometry = polygon,<\/p>\n<p style=\"padding-left: 40px\">optimizer = optimizer,<\/p>\n<p style=\"padding-left: 40px\">use_var_fdtd = True,<\/p>\n<p style=\"padding-left: 40px\">hide_fdtd_cad = False,<\/p>\n<p style=\"padding-left: 40px\">use_deps = True,<\/p>\n<p style=\"padding-left: 40px\">plot_history = True,<\/p>\n<p style=\"padding-left: 40px\">store_all_simulations = False)<\/p>\n<p style=\"padding-left: 40px\">&nbsp;<\/p>\n<p style=\"padding-left: 40px\">######## RUN THE OPTIMIZATION ########<\/p>\n<p style=\"padding-left: 40px\">results = opt.run()<\/p>\n<p style=\"padding-left: 40px\">&nbsp;<\/p>\n<p style=\"padding-left: 40px\">######## SAVE THE BEST PARAMETERS TO FILE ########<\/p>\n<p style=\"padding-left: 40px\">np.savetxt(&#8216;..\/2D_parameters.txt&#8217;, results[1])<\/p>\n<p style=\"padding-left: 40px\">&nbsp;<\/p>\n<p style=\"padding-left: 40px\">######## EXPORT OPTIMIZED STRUCTURE TO GDS ########<\/p>\n<p style=\"padding-left: 40px\">gds_export_script = str(&#8220;gds_filename = &#8216;y_branch_2D.gds&#8217;;&#8221; +<\/p>\n<p style=\"padding-left: 40px\">&#8220;top_cell = &#8216;model&#8217;;&#8221; +<\/p>\n<p style=\"padding-left: 40px\">&#8220;layer_def = [1, {0}, {1}];&#8221;.format(-depth\/2, depth\/2) +<\/p>\n<p style=\"padding-left: 40px\">&#8220;n_circle = 64;&#8221; +<\/p>\n<p style=\"padding-left: 40px\">&#8220;n_ring = 64;&#8221; +<\/p>\n<p style=\"padding-left: 40px\">&#8220;n_custom = 64;&#8221; +<\/p>\n<p style=\"padding-left: 40px\">&#8220;n_wg = 64;&#8221; +<\/p>\n<p style=\"padding-left: 40px\">&#8220;round_to_nm = 1;&#8221; +<\/p>\n<p style=\"padding-left: 40px\">&#8220;grid = 1e-9;&#8221; +<\/p>\n<p style=\"padding-left: 40px\">&#8220;max_objects = 10000;&#8221; +<\/p>\n<p style=\"padding-left: 40px\">&#8220;Lumerical_GDS_auto_export;&#8221;)<\/p>\n<p style=\"padding-left: 40px\">&nbsp;<\/p>\n<p style=\"padding-left: 40px\">with lumapi.MODE(hide = False) as mode:<\/p>\n<p style=\"padding-left: 40px\">mode.cd(example_directory)<\/p>\n<p style=\"padding-left: 40px\">y_branch_init_(mode)<\/p>\n<p style=\"padding-left: 40px\">mode.addpoly(vertices = splitter(results[1]))<\/p>\n<p style=\"padding-left: 40px\">mode.set(&#8216;x&#8217;, 0.0)<\/p>\n<p style=\"padding-left: 40px\">mode.set(&#8216;y&#8217;, 0.0)<\/p>\n<p style=\"padding-left: 40px\">mode.set(&#8216;z&#8217;, 0.0)<\/p>\n<p style=\"padding-left: 40px\">mode.set(&#8216;z span&#8217;, depth)<\/p>\n<p style=\"padding-left: 40px\">mode.set(&#8216;material&#8217;,&#8217;SU-8&#8242;)<\/p>\n<p style=\"padding-left: 40px\">mode.save(&#8220;y_branch_2D_FINAL&#8221;)<\/p>\n<p style=\"padding-left: 40px\">input(&#8216;Enter&#8230;&#8217;)<\/p>\n<p style=\"padding-left: 40px\">mode.eval(gds_export_script)<\/p>\n<p>&nbsp;<\/p>\n<p><a class=\"wp-colorbox-image cboxElement\" href=\"\/forum\/wp-content\/uploads\/sites\/2\/2022\/06\/28-06-2022-1656391844-Capture.PNG\"><img decoding=\"async\" style=\"font-size: 18.6667px\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2022\/06\/28-06-2022-1656391844-Capture.PNG\" alt=\"\"><\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"template":"","class_list":["post-216988","topic","type-topic","status-closed","hentry","topic-tag-coupling","topic-tag-design-optimization","topic-tag-fdtd","topic-tag-optimization","topic-tag-polymer","topic-tag-waveguides"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"Hi all,I tried to optimize a polymer y-branch according to the example here (https:\/\/optics.ansys.com\/hc\/en-us\/articles\/360042305274).Since polymer (SU-8) has a much lower refractive index, the main different is the size. I modified all sizes in the base setup .py file and the simulation .py file, yet error occured saying &quot;The initial X is infeasible. Restart with its\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/inverse-design-of-polymer-y-branch-modify-the-example-provided\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Ansys Learning Forum | Ansys Innovation Space\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Inverse design of polymer y-branch \u2013 modify the example provided | Ansys Learning Forum\" \/>\n\t\t<meta property=\"og:description\" content=\"Hi all,I tried to optimize a polymer y-branch according to the example here (https:\/\/optics.ansys.com\/hc\/en-us\/articles\/360042305274).Since polymer (SU-8) has a much lower refractive index, the main different is the size. I modified all sizes in the base setup .py file and the simulation .py file, yet error occured saying &quot;The initial X is infeasible. Restart with its\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/inverse-design-of-polymer-y-branch-modify-the-example-provided\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/innovationspace.ansys.com\/forum\/forum\/wp-content\/uploads\/sites\/2\/2022\/06\/28-06-2022-1656391844-Capture.PNG\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/innovationspace.ansys.com\/forum\/forum\/wp-content\/uploads\/sites\/2\/2022\/06\/28-06-2022-1656391844-Capture.PNG\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2022-06-28T04:53:51+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2023-04-18T06:46:08+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Inverse design of polymer y-branch \u2013 modify the example provided | Ansys Learning Forum\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Hi all,I tried to optimize a polymer y-branch according to the example here (https:\/\/optics.ansys.com\/hc\/en-us\/articles\/360042305274).Since polymer (SU-8) has a much lower refractive index, the main different is the size. I modified all sizes in the base setup .py file and the simulation .py file, yet error occured saying &quot;The initial X is infeasible. Restart with its\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/innovationspace.ansys.com\/forum\/forum\/wp-content\/uploads\/sites\/2\/2022\/06\/28-06-2022-1656391844-Capture.PNG\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/inverse-design-of-polymer-y-branch-modify-the-example-provided\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/topics\\\/#listItem\",\"name\":\"Topics\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/topics\\\/#listItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/topics\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic-tag\\\/optimization\\\/#listItem\",\"name\":\"optimization\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic-tag\\\/optimization\\\/#listItem\",\"position\":3,\"name\":\"optimization\",\"item\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic-tag\\\/optimization\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/inverse-design-of-polymer-y-branch-modify-the-example-provided\\\/#listItem\",\"name\":\"Inverse design of polymer y-branch &#8211; modify the example provided\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/topics\\\/#listItem\",\"name\":\"Topics\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/inverse-design-of-polymer-y-branch-modify-the-example-provided\\\/#listItem\",\"position\":4,\"name\":\"Inverse design of polymer y-branch &#8211; modify the example provided\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic-tag\\\/optimization\\\/#listItem\",\"name\":\"optimization\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#organization\",\"name\":\"Ansys Learning Forum\",\"description\":\"Ansys Innovation Space\",\"url\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/inverse-design-of-polymer-y-branch-modify-the-example-provided\\\/#webpage\",\"url\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/inverse-design-of-polymer-y-branch-modify-the-example-provided\\\/\",\"name\":\"Inverse design of polymer y-branch \\u2013 modify the example provided | Ansys Learning Forum\",\"description\":\"Hi all,I tried to optimize a polymer y-branch according to the example here (https:\\\/\\\/optics.ansys.com\\\/hc\\\/en-us\\\/articles\\\/360042305274).Since polymer (SU-8) has a much lower refractive index, the main different is the size. I modified all sizes in the base setup .py file and the simulation .py file, yet error occured saying \\\"The initial X is infeasible. Restart with its\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/inverse-design-of-polymer-y-branch-modify-the-example-provided\\\/#breadcrumblist\"},\"datePublished\":\"2022-06-28T04:53:51+00:00\",\"dateModified\":\"2023-04-18T06:46:08+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#website\",\"url\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/\",\"name\":\"Ansys Learning Forum\",\"description\":\"Ansys Innovation Space\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Inverse design of polymer y-branch \u2013 modify the example provided | Ansys Learning Forum","description":"Hi all,I tried to optimize a polymer y-branch according to the example here (https:\/\/optics.ansys.com\/hc\/en-us\/articles\/360042305274).Since polymer (SU-8) has a much lower refractive index, the main different is the size. I modified all sizes in the base setup .py file and the simulation .py file, yet error occured saying \"The initial X is infeasible. Restart with its","canonical_url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/inverse-design-of-polymer-y-branch-modify-the-example-provided\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BreadcrumbList","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/inverse-design-of-polymer-y-branch-modify-the-example-provided\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum#listItem","position":1,"name":"Home","item":"https:\/\/innovationspace.ansys.com\/forum","nextItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/topics\/#listItem","name":"Topics"}},{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/topics\/#listItem","position":2,"name":"Topics","item":"https:\/\/innovationspace.ansys.com\/forum\/topics\/","nextItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/optimization\/#listItem","name":"optimization"},"previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/optimization\/#listItem","position":3,"name":"optimization","item":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/optimization\/","nextItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/inverse-design-of-polymer-y-branch-modify-the-example-provided\/#listItem","name":"Inverse design of polymer y-branch &#8211; modify the example provided"},"previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/topics\/#listItem","name":"Topics"}},{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/inverse-design-of-polymer-y-branch-modify-the-example-provided\/#listItem","position":4,"name":"Inverse design of polymer y-branch &#8211; modify the example provided","previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/optimization\/#listItem","name":"optimization"}}]},{"@type":"Organization","@id":"https:\/\/innovationspace.ansys.com\/forum\/#organization","name":"Ansys Learning Forum","description":"Ansys Innovation Space","url":"https:\/\/innovationspace.ansys.com\/forum\/"},{"@type":"WebPage","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/inverse-design-of-polymer-y-branch-modify-the-example-provided\/#webpage","url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/inverse-design-of-polymer-y-branch-modify-the-example-provided\/","name":"Inverse design of polymer y-branch \u2013 modify the example provided | Ansys Learning Forum","description":"Hi all,I tried to optimize a polymer y-branch according to the example here (https:\/\/optics.ansys.com\/hc\/en-us\/articles\/360042305274).Since polymer (SU-8) has a much lower refractive index, the main different is the size. I modified all sizes in the base setup .py file and the simulation .py file, yet error occured saying \"The initial X is infeasible. Restart with its","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/#website"},"breadcrumb":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/inverse-design-of-polymer-y-branch-modify-the-example-provided\/#breadcrumblist"},"datePublished":"2022-06-28T04:53:51+00:00","dateModified":"2023-04-18T06:46:08+00:00"},{"@type":"WebSite","@id":"https:\/\/innovationspace.ansys.com\/forum\/#website","url":"https:\/\/innovationspace.ansys.com\/forum\/","name":"Ansys Learning Forum","description":"Ansys Innovation Space","inLanguage":"en-US","publisher":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/#organization"}}]},"og:locale":"en_US","og:site_name":"Ansys Learning Forum | Ansys Innovation Space","og:type":"article","og:title":"Inverse design of polymer y-branch \u2013 modify the example provided | Ansys Learning Forum","og:description":"Hi all,I tried to optimize a polymer y-branch according to the example here (https:\/\/optics.ansys.com\/hc\/en-us\/articles\/360042305274).Since polymer (SU-8) has a much lower refractive index, the main different is the size. I modified all sizes in the base setup .py file and the simulation .py file, yet error occured saying &quot;The initial X is infeasible. Restart with its","og:url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/inverse-design-of-polymer-y-branch-modify-the-example-provided\/","og:image":"https:\/\/innovationspace.ansys.com\/forum\/forum\/wp-content\/uploads\/sites\/2\/2022\/06\/28-06-2022-1656391844-Capture.PNG","og:image:secure_url":"https:\/\/innovationspace.ansys.com\/forum\/forum\/wp-content\/uploads\/sites\/2\/2022\/06\/28-06-2022-1656391844-Capture.PNG","article:published_time":"2022-06-28T04:53:51+00:00","article:modified_time":"2023-04-18T06:46:08+00:00","twitter:card":"summary_large_image","twitter:title":"Inverse design of polymer y-branch \u2013 modify the example provided | Ansys Learning Forum","twitter:description":"Hi all,I tried to optimize a polymer y-branch according to the example here (https:\/\/optics.ansys.com\/hc\/en-us\/articles\/360042305274).Since polymer (SU-8) has a much lower refractive index, the main different is the size. I modified all sizes in the base setup .py file and the simulation .py file, yet error occured saying &quot;The initial X is infeasible. Restart with its","twitter:image":"https:\/\/innovationspace.ansys.com\/forum\/forum\/wp-content\/uploads\/sites\/2\/2022\/06\/28-06-2022-1656391844-Capture.PNG"},"aioseo_meta_data":{"post_id":"216988","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"content","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":true,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2024-10-28 19:16:03","updated":"2024-10-28 19:16:03","ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/innovationspace.ansys.com\/forum\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/innovationspace.ansys.com\/forum\/topics\/\" title=\"Topics\">Topics<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/optimization\/\" title=\"optimization\">optimization<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tInverse design of polymer y-branch \u2013 modify the example provided\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/innovationspace.ansys.com\/forum"},{"label":"Topics","link":"https:\/\/innovationspace.ansys.com\/forum\/topics\/"},{"label":"optimization","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/optimization\/"},{"label":"Inverse design of polymer y-branch &#8211; modify the example provided","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/inverse-design-of-polymer-y-branch-modify-the-example-provided\/"}],"acf":[],"custom_fields":[{"0":{"_bbp_author_ip":["23.218.93.111"]," _bbp_last_reply_id":["0"]," _bbp_likes_count":["0"],"_btv_view_count":["1783"],"_edit_lock":["1681800406:76718"],"_bbp_subscription":["2592"],"_edit_last":["76718"],"_yoast_wpseo_content_score":["30"],"_yoast_wpseo_estimated-reading-time-minutes":["4"],"_yoast_wpseo_wordproof_timestamp":[""],"_bbp_topic_status":["unanswered"],"_bbp_status":["publish"],"_bbp_topic_id":["216988"],"_bbp_forum_id":["27833"],"_bbp_engagement":["2592","243032"],"_bbp_voice_count":["2"],"_bbp_reply_count":["2"],"_bbp_last_reply_id":["219604"],"_bbp_last_active_id":["219604"],"_bbp_last_active_time":["2022-07-23 00:01:09"]},"test":"taige-liconnect-polyu-hk"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/216988","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics"}],"about":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/216988\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=216988"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}