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

add vtk streamlines of the fluid velocity field #434

Open
mvanzulli opened this issue Mar 25, 2022 · 6 comments
Open

add vtk streamlines of the fluid velocity field #434

mvanzulli opened this issue Mar 25, 2022 · 6 comments
Labels
enhancement New feature or request
Milestone

Comments

@mvanzulli
Copy link
Member

mvanzulli commented Mar 25, 2022

Add vtk automatic generator for fluid stream lines when a velocity function is declared.

@mvanzulli mvanzulli added the enhancement New feature or request label Mar 25, 2022
@mvanzulli mvanzulli changed the title add vtk streamlines for fluid velocities profile add vtk streamlines oh the fluid velocities field Mar 25, 2022
@jorgepz
Copy link
Member

jorgepz commented Mar 25, 2022

Good idea!

@jorgepz
Copy link
Member

jorgepz commented Mar 25, 2022

We could do it after the analysis is done and we compute a box in the space where the structure is included...then compute the velocities in that box....

@mvanzulli mvanzulli changed the title add vtk streamlines oh the fluid velocities field add vtk streamlines of the fluid velocity field Mar 25, 2022
@jorgepz jorgepz added this to the version 0.3.0 milestone Aug 30, 2022
@mvanzulli
Copy link
Member Author

mvanzulli commented Sep 2, 2022

We can use StremLinesRepresentation plugin

Here is an simple way to test this new feature:

  1. Load the plugin “StreamLinesRepresentation”, enable the AutoLoad checkbox for it and restart ParaView (if you don’t, stream lines will not correctly animate).
  2. Create a “Wavelet” source. Apply a “Gradient” filter on it.
  3. Switch representation from “Outline” to “Stream Lines”.
  4. Play with the StreamLines options in the Representation panel.
  5. Change the Coloring array – see Figure 3.

Screenshot from 2022-09-02 16-47-32

@mvanzulli
Copy link
Member Author

mvanzulli commented Sep 2, 2022

The file to reproduce the example you can change de .png for .vtk
foo

# vtk DataFile Version 2.0
Cube example
ASCII
DATASET STRUCTURED_POINTS
DIMENSIONS 3 3 3
ORIGIN 0 0 0
SPACING 1 1 1
POINT_DATA 27
SCALARS scalar_name float 1
LOOKUP_TABLE default
1.0
2.0
3.0
4.0
5.0
6.0
7.0
8.0
9.0
10.0
11.0
12.0
13.0
14.0
15.0
16.0
17.0
18.0
19.0
20.0
21.0
22.0
23.0
24.0
25.0
26.0
27.0
VECTORS vector_name float
1.0 27.0 1.0
2.0 26.0 2.0
3.0 25.0 3.0
4.0 24.0 4.0
5.0 23.0 5.0
6.0 22.0 6.0
7.0 21.0 7.0
8.0 20.0 8.0
9.0 19.0 9.0
10.0 18.0 10.0
11.0 17.0 11.0
12.0 16.0 12.0
13.0 15.0 13.0
14.0 14.0 14.0
15.0 13.0 15.0
16.0 12.0 16.0
17.0 11.0 17.0
18.0 10.0 18.0
19.0 9.0 19.0
20.0 8.0 20.0
21.0 7.0 21.0
22.0 6.0 22.0
23.0 5.0 23.0
24.0 4.0 24.0
25.0 3.0 25.0
26.0 2.0 26.0
27.0 1.0 27.0

@mvanzulli mvanzulli modified the milestones: version 0.3.0, v0.4.0 Sep 25, 2022
@mvanzulli
Copy link
Member Author

This how it should look like:

animation.mp4

@jorgepz
Copy link
Member

jorgepz commented Sep 26, 2022

pretty nice. i think that we can still discuss the options for this before implementing it in ONSAS. at some onsas meeting we can talk aboutit. i will write it down in the future meeting agenda!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants