Repository navigation
Split the generated triangles with two sides on the boundary - #183
Merged
Merged
Conversation
At some sizes the Delaunay refinement left a triangle in a corner of the domain with both sides on the walls. Five of its six velocity nodes were then fixed, and the Taylor-Hood creeping flow near the corner was wrong: in the lid-driven cavity at size 0.35, 0.3 or 0.15 the strongest return flow moved into a lid corner (u = -0.3455 instead of about -0.323). After the refinement, such a triangle gets a vertex in the middle of its inner side, which the Delaunay triangulation joins to the corner, and a triangle with three sides on the boundary a vertex at its centroid. The halves are refined again, so minAngle still holds. A corner of less than twice minAngle keeps its triangle, since its halves would have smaller angles and their refinement would not end. Closes #147 Signed-off-by: Nikos Chamakos <nikoscham@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #147.
At some sizes the triangle generator left a triangle in a corner of the domain with both sides on the walls. With velocity set on the walls, five of the six velocity nodes of such a quadratic (Taylor-Hood) triangle were fixed, and the creeping flow near the corner was wrong.
Fix (
src/mesh/triangleMesh.js,splitCornerTriangles): after the refinement, a triangle with two sides on the boundary gets a vertex in the middle of its inner side. The vertex lies inside the triangle's circumcircle, so the Delaunay triangulation always joins it to the corner, and each half has one side on the boundary. A triangle with three sides on the boundary gets a vertex at its centroid. The mesh is then refined again, sominAnglestill holds.Sizes 0.3 and 0.15 behave the same way. The structured 12 × 6 mesh gives −0.3245. The smallest angle did not drop in any geometry tried (rectangle, L-shape, rectangle with a hole, thin strip, triangle).
Decisions:
minAngle(40° at the default of 20) keeps its triangle. Splitting it would make angles smaller thanminAngle, and the refinement would then never finish. Flow in a corner that sharp is nearly still anyway. Nothing tells the user this happened.sizewent from 2 to 6.Tests:
minAnglestill holds. They also check that a 15° corner keeps its triangle.node --testpasses all 30 test files on Node 22.dist/is not changed.CHANGELOG entry under Unreleased, Fixed. The docs (Mesh and mesh generators pages) are on the
release/0.5.0-rcbranch of FEAScript-documentation.