Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix for multilines #66

Merged
merged 2 commits into from
Jul 10, 2023
Merged

fix for multilines #66

merged 2 commits into from
Jul 10, 2023

Conversation

HelgeGehring
Copy link
Owner

@simbilod could you have a look?

@HelgeGehring
Copy link
Owner Author

from collections import OrderedDict

import shapely

from femwell.mesh import mesh_from_OrderedDict

line1 = shapely.LineString(((0, 0), (0, 1)))
line2 = shapely.LineString(((6, 0), (6, 1)))
line_bottom = shapely.LineString(((0, 0), (15, 0)))
line_top = shapely.LineString(((0, 1), (15, 1)))
waveguide1 = shapely.box(0, 0, 5, 1)
waveguide2 = shapely.box(5, 0, 15, 1)
mesh_from_OrderedDict(
OrderedDict(
line1=line1,
line2=line2,
line_top=line_top,
line_bottom=line_bottom,
waveguide2=waveguide2,
waveguide1=waveguide1,
),
resolutions=dict(),
default_resolution_max=0.05,
filename="test.msh",
)
This was failing before

@simbilod
Copy link
Contributor

yes this is exactly how I deal with this problem elsewhere in the code :)

@HelgeGehring HelgeGehring merged commit 2aca65c into main Jul 10, 2023
6 checks passed
@HelgeGehring HelgeGehring deleted the fix-multiline-meshing branch July 10, 2023 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants