[proof-of-concept] Visualization of curved meshes with VTK + ParaView#539
Closed
[proof-of-concept] Visualization of curved meshes with VTK + ParaView#539
Conversation
Member
Author
|
@bennibolm @erik-f @NichtLucas I just added some comments to the implementation for your benefit. Right now, it is a very hacky way of visualizing the structured DG solution in VTK: The original DG nodes are interpreted as the vertices of quadrilateral, straight-sided VTK cells, and the mean of the four vertices is used as the value of the enclosing cell. This approach extends straightforward to 3D and should allow for an initial, minimum effort visualization of 3D results. In the intermediate term, it would make sense to
I think these two extensions are also relatively easy to implement if one is familiar with all the interpolation routines etc. If you're up for it, we can sit together and talk through it. |
Member
Author
|
Not relevant anymore. |
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 is just to demonstrate how to visualize a structured curved mesh with VTK + ParaView. The intent is to have a simple, working prototype for @bennibolm @erik-f @NichtLucas that can be extended to supersampling (= better resolution) and 3D. If you have questions, please let me know.
Usage
Run the waving flag elixir:
Then open the resulting file

curved.vtsin ParaView. This should result in something like the following (grid lines shown for illustrative purposes):