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

BUG : Wrong interpolation by fenics for probes #34

Closed
KikeM opened this issue Sep 30, 2021 · 1 comment
Closed

BUG : Wrong interpolation by fenics for probes #34

KikeM opened this issue Sep 30, 2021 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@KikeM
Copy link
Owner

KikeM commented Sep 30, 2021

I am implementing a linear interpolation between nodal values to compare FOM and ROM solutions.

Since I had already implemented a probe interpolation using the fenics __call__ method for CoefficientFunctions, I expected my interpolation to match these values.

To my surprise, they don't.
In fact, they do at the outflow (which is reassuring although trivial. Reassuring because the mass conservation calculation uses this value; trivial because it is a nodal value, so no interpolation takes place.), but they don't at the mid-point x=0.5.

I think there might be a problem with the moving mesh and the interpolation routine used inside fenics.
I am going to stick to my interpolation and use it to compare FOM and ROM solutions.

legend:

  • dashed: expected value.
  • cont.: interpolation.

half_0

outflow

@KikeM KikeM added the bug Something isn't working label Sep 30, 2021
@KikeM KikeM self-assigned this Sep 30, 2021
@KikeM KikeM changed the title BUG : Wrong interpolation by fenics for probe BUG : Wrong interpolation by fenics for probes Sep 30, 2021
@KikeM
Copy link
Owner Author

KikeM commented Oct 1, 2021

Closed with #35

@KikeM KikeM closed this as completed Oct 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant