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

Update VTK export to use CellValues for evalutation #703

Merged
merged 2 commits into from
May 11, 2023

Conversation

fredrikekre
Copy link
Member

This patch deprecates reshape_to_nodes in favor of the new evaluate_at_grid_nodes function which more or less does the same thing. evaluate_at_grid_nodes uses the interpolation of the field to evaluate the approximated function in the cell coordinates (by using reference_coordinates of the cell as quadrature points). This is much simpler, and more correct, compared to figuring out which Dofs live on which node etc. In particular, this now support non-standard interpolations which may not even have dofs in the nodes.

Fixes #167.

Copy link
Collaborator

@lijas lijas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice. Finally we can use super parametric elements 😆

src/Dofs/DofHandler.jl Show resolved Hide resolved
src/Dofs/DofHandler.jl Show resolved Hide resolved
This patch deprecates `reshape_to_nodes` in favor of the new
`evaluate_at_grid_nodes` function which more or less does the same
thing. `evaluate_at_grid_nodes` uses the interpolation of the field to
evaluate the approximated function in the cell coordinates (by using
`reference_coordinates` of the cell as quadrature points). This is much
simpler, and more correct, compared to figuring out which Dofs live on
which node etc. In particular, this now support non-standard
interpolations which may not even have dofs in the nodes.

Fixes #167.
@codecov-commenter
Copy link

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.07 🎉

Comparison is base (ade9292) 92.55% compared to head (a8ac1c2) 92.62%.

❗ Current head a8ac1c2 differs from pull request most recent head b240705. Consider uploading reports for the commit b240705 to get more accurate results

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #703      +/-   ##
==========================================
+ Coverage   92.55%   92.62%   +0.07%     
==========================================
  Files          30       30              
  Lines        4390     4422      +32     
==========================================
+ Hits         4063     4096      +33     
+ Misses        327      326       -1     
Impacted Files Coverage Δ
src/deprecations.jl 33.33% <ø> (-3.34%) ⬇️
src/Dofs/DofHandler.jl 92.33% <100.00%> (+0.66%) ⬆️
src/Export/VTK.jl 94.82% <100.00%> (ø)
src/L2_projection.jl 100.00% <100.00%> (ø)

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@fredrikekre fredrikekre merged commit c6c185c into master May 11, 2023
@fredrikekre fredrikekre deleted the fe/export-by-celvlalues branch May 11, 2023 10:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Export of super parametric elements
4 participants