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

Moment fitting with simplices #74

Open
pmartorell opened this issue Dec 20, 2023 · 0 comments
Open

Moment fitting with simplices #74

pmartorell opened this issue Dec 20, 2023 · 0 comments

Comments

@pmartorell
Copy link
Collaborator

Dear @ericneiva ,

the moment fitting machinery is not working for simplex background meshes.

Since the JacobiPolynomialBasis are a tensor product, the following line tries to invert a rectangular matrix.

I guess that we should use pinv instead. What do you think?

Here a MWE:

using GridapEmbedded
using GridapEmbedded.LevelSetCutters
using GridapEmbedded.Interfaces
using Gridap
using Gridap.ReferenceFEs
geo = sphere(0.5,x0=Point(0.0,0.0))
domain = (-1,1,-1,1)
partition = (5,5)
model = CartesianDiscreteModel(domain,partition) |> simplexify
cutgeo = cut(model,geo)
act = Triangulation(cutgeo,ACTIVE)
Measure(act,Quadrature(momentfitted,cutgeo,2))
pmartorell added a commit to janmodderman/STLCutters.jl that referenced this issue Jan 31, 2024
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

1 participant