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

Intersection error #16

Closed
rbe051 opened this issue Jun 1, 2017 · 1 comment
Closed

Intersection error #16

rbe051 opened this issue Jun 1, 2017 · 1 comment
Assignees

Comments

@rbe051
Copy link
Contributor

rbe051 commented Jun 1, 2017

`frac1 = np.array([[1,2,4], [1,4,1], [2,2,2]])

frac2 = np.array([[2,2,2], [2,4,1], [1,2,4]])

fracs = [frac1, frac2]

domain = {'xmin': 0, 'ymin': 0, 'zmin': 0,
'xmax': 5, 'ymax': 5, 'zmax': 5,}

path_to_gmsh = .... # Set the sytem path to gmsh

gb = tetrahedral_grid(fracs, domain, gmsh_path = path_to_gms)`

which gives following error:
Find intersections between fractures
Traceback (most recent call last):
File "", line 1, in
File "/home/runar/uib/porepy/src/porepy/fracs/simplex.py", line 92, in tetrahedral_grid
if not network.has_checked_intersections:
File "/home/runar/uib/porepy/src/porepy/fracs/fractures.py", line 869, in find_intersections
isect, _, _ = first.intersects(second, self.tol)
File "/home/runar/uib/porepy/src/porepy/fracs/fractures.py", line 345, in intersects
assert u_bound_pt.shape[1] == 1
IndexError: tuple index out of range

@keileg
Copy link
Contributor

keileg commented Jun 8, 2017

This is the case of fractures meeting in a single point. Up to now, it has not been thought of at all; mainly because it will never happen in practice.

The best option seems to be to treat this as no intersection; the two identical points should then be merged during splitting of the fractures.

Does this sound reasonable?

@keileg keileg closed this as completed in 9be51b4 Jun 9, 2017
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

No branches or pull requests

2 participants