MeshTools::all_rbb() to generate IGA rational quadratic meshes#4442
Open
roystgnr wants to merge 19 commits into
Open
MeshTools::all_rbb() to generate IGA rational quadratic meshes#4442roystgnr wants to merge 19 commits into
roystgnr wants to merge 19 commits into
Conversation
This takes an interpolated quadratic Lagrange mesh and turns it into an IGA (Rational Bezier-Bernstein) mapped mesh, assuming that all curves are intended to be circular/cylindrical/spherical.
1D on the X axis is pointless, but 1D meshes embedded in 2D or 3D space may still benefit from perfect circles.
This still gets us isogeometry on aligned cylinders, but also on cones and some types of spheres, and gets us a sort of optimality on non-exactly-representable surfaces.
It's the same either way but it just read wrong the other way.
I was about to stop capturing it, to fix an unused var warning, but this is better.
GiudGiud
reviewed
May 21, 2026
Comment on lines
+17
to
+22
| /** | ||
| * The goal of this test is to verify proper operation of the Mesh Extruder | ||
| * with the optional object callback for setting custom subdomain IDs. | ||
| * We pass a custom object for generating subdomains based on the old element | ||
| * ID and the current layer and assert the proper values. | ||
| */ |
Contributor
There was a problem hiding this comment.
Suggested change
| /** | |
| * The goal of this test is to verify proper operation of the Mesh Extruder | |
| * with the optional object callback for setting custom subdomain IDs. | |
| * We pass a custom object for generating subdomains based on the old element | |
| * ID and the current layer and assert the proper values. | |
| */ |
or update
| const Real w = node->get_extra_datum<Real>(weight_index); | ||
|
|
||
| CPPUNIT_ASSERT_EQUAL(Real(1), w); | ||
| } |
Contributor
There was a problem hiding this comment.
volume should be easy to check too
as well as hmin/hmax ? these change with the mapping right
| MeshTools::Generation::build_sphere (interior_mesh, radius, | ||
| n_refinements, QUAD9); | ||
|
|
||
| // Get just the outer EDGE9 circle mesh |
Contributor
There was a problem hiding this comment.
Suggested change
| // Get just the outer EDGE9 circle mesh | |
| // Get just the outer EDGE3 circle mesh |
|
|
||
| // We only use [4,8) but matching indices is nice and stack is | ||
| // cheap. | ||
| // that we're only using what we set, though. |
| almost_equal(w[22], w[24])) | ||
| extrude_dir = 0; | ||
|
|
||
| if (almost_equal(w[0], w[3]) && |
| almost_equal(w[21], w[23])) | ||
| extrude_dir = 1; | ||
|
|
||
| if (almost_equal(w[0], w[4]) && |
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.
This needs proper test coverage before merging but I've been letting it sit in a separate branch for too long and I want to at least make sure it's not interfering with any CI builds.