Add some factory functions for (Tensor)B-splines#881
Draft
hverhelst wants to merge 6 commits into
Draft
Conversation
- gsBasis::uniformRefine/Coarsen_withTransfer - gsConstantFunction - gsField - gsFunctionExpr::set_u - trampoline for gsFunctionSet and gsFunction - Extra functions (refinement, degree elevation etc) for gsMultiBasis - Improvements of templated basis bindings (gsHTensorBasis, gsTHBSpline) - gsOptionList: add function that writes to python dict - Improve argument names and default args of gsWriteParaview bindings - SparseMatrix Major template exposure to Pybind (for transfer matrix) - SparseMatrix cast to CSC Python structure - System, matrix and rhs independent assembly code for gsL2Projection - Exposure of quasi interpolation
- Add knot removal to gsBSpline and gsTensorBSpline(Basis) - Add factory functions to gsTensorBSpline for: * Bezier * Squared spline * Cubed spline * Gradient(s) of a spline * Divergence of a spline * Laplacian and Hessian of a spline
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.
Provided a spline$S(\xi,\eta,\dots)$ , this PR provides methods to obtain $S^2(\xi,\eta,\dots)$ , $S^3(\xi,\eta,\dots)$ , $\nabla S(\xi,\eta,\dots)$ , $\nabla \cdot S(\xi,\eta,\dots)$ , $\nabla^2 S(\xi,\eta,\dots)$ .
The PR also adds the knot removal algorithm which is used to go from a Bezier representation of a spline to a higher-continuous representation.
I have added an example, which compares the spline factories w.r.t.$L2$ projection and Quasi-Interpolation. There is no clear winner between the
interpolateAtAnchors,interpolateAtAnchorsand the spline factories. See the table here:NEW:
Add knot removal algorithm to gsBoehm (based on Piegl & Tiller)
Add knot removal to gsBSpline and gsTensorBSpline(Basis)
Add factory functions to gsTensorBSpline for Bezier, Squared spline, Cubed spline, Gradient(s) of a spline, Divergence of a spline, Laplacian and Hessian of a spline
Please consider the following checklist before issuing a pull
request:
you'd like us to include them?