Advertisement
Guest User

Untitled

a guest
Sep 24th, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. << NDSolve`FEM`
  2. a = ImplicitRegion[x >= 0 && y >= 0 && x <= 1 && y <= 1, {x, y}];
  3. b = ImplicitRegion[x >= 1/4 && y >= 1 && x <= 3/4 && y <= 2, {x, y}];
  4. o = RegionUnion[a, b];
  5. m = ToElementMesh[o];
  6. m["Wireframe"]
  7. isec = RegionIntersection[a, b];
  8. bm = ToBoundaryMesh[o, "BoundaryElements" -> {isec}]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement