|
[Sponsors] |
[General] Wisualising streamlines using ParaView |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 23, 2019, 12:18 |
Wisualising streamlines using ParaView
|
#1 |
New Member
Hubert
Join Date: Nov 2019
Location: Poland
Posts: 13
Rep Power: 7 |
Hello everyone, I am having trouble with using streamlines in ParaView.
I have made a 2D simulation of the attached geometry using SU2. The results of the simulation are attached - there are 2 calculators added for Vx and Vy, since they were not in the default variable list. Now, I have looked up other topics on this forum, and they recommended using surfaceLIC plugin. I loaded the plugin, made it autoload, restarted the program and tried it on my case, and it did nothing. If I pick "streamlines" in the visualization dropbox (where "surface", "outline", etc. are located), the whole element and its domain vanishes. Not only that, the Stream tracer tool is unavailable. Now I have looked up the source code of this file (Written in ASCII) and found out that there are no defined variables, apart from the results that I couldn't modify in my config file for SU2. Since surfaceLIC requires a vector input to visualize it, I don't think I can use it. Here's my question. Is there any way I can use streamlines to visualize the streamlines on anything that has been calculated in my case? Or would I need to implement vectors in source code or something so I can use said plugin? I have also attached the config file, in case there is something I omitted in the settings which would allow me to enable any of the options. Thank you in advance for any tips and help. |
|
November 24, 2019, 07:45 |
|
#2 |
Senior Member
Carlo_P
Join Date: May 2019
Location: Italy
Posts: 176
Rep Power: 8 |
I'm not a SU2 user, but if you need a vector, you can do in paraview as well.
You can use the calculator and write something like u*ihat+v*jhat+w*khat, where the ihat,jhat and khat are the versor of x,,y,z axes. In this way, you are trasforming the three scalar of the velocity in a vector. Can be this the solution? |
|
November 24, 2019, 15:21 |
|
#3 |
New Member
Hubert
Join Date: Nov 2019
Location: Poland
Posts: 13
Rep Power: 7 |
Hi Carlo_P,
the solution you suggested worked. I have managed to get vectors from calculator option. I have managed to get Vx and Vy as vectors on separate calculators, and now I can use Stream Tracer function. The result for Vx is what is shown in the attached file. If I make a huge close-up, black straight lines appear, but in the overview shot, it looks like the edges are just rugged. Should it look like that? I have attached another image, which shows the place where the air is flowing out (24,44 m/s). There are 2 outlets like that - on the top and bottom of the right side of the model. Now, I tried to get the velocity magnitude by putting sqrt((Vx^2)+(Vy^2)) Into the calculator formula. But, I can only get one of those vectors (either Vx or Vy) depending on which calculator I try to compute from. If I try to add another calculator from my imported .vtk file as a third child, I cannot select those vectors. I also tried getting the velocity magnitude from one single computation by inputing sqrt(((X-Momentum/Density)^2)*iHat+((Y-Momentum/Density)^2*jHat)) since apparently dividing X-momentum by Density in incompressible flow should result in Velocity for that axis, but it resulted in an error. If I input that formula without iHat and jHat, it works, but it gives me a scalar, which I don't want. Is there an option for me to get those two vectors from both calculators in one go? Do I have to save the file with all of those computations with "Save Data" function and then try to get the vectors? |
|
November 27, 2019, 14:16 |
|
#4 |
New Member
Hubert
Join Date: Nov 2019
Location: Poland
Posts: 13
Rep Power: 7 |
So, upon fooling around with various options, I can get both Vx and Vy for computation. I just add each new Calculator after each other, not branching from my main file.
Now, I am stuck on making velocity magnitude a vector. Since V = sqrt((Vx^2)+(Vy^2)) , and in order to use Surface LIC plugin I need a vector, how do I make a vector out of the velocity magnitude I want to compute? I cannot input vectors into the formula since I cannot make a vector go to the power of 2, so adding versors to compute Vx and Vy is pointless. But I also cannot add those versors after computing V, since adding both of them makes an error pop out. EDIT: I was using wrong formula. I should have been: (X-Momentum/Density)*iHat + (Y-Momentum/Density)*jHat Everything works well. Thank you for helping out. Last edited by IwantTobeGood; November 29, 2019 at 12:39. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM] Paraview not showing streamlines | ErenC | ParaView | 0 | August 13, 2019 21:13 |
[General] ParaView - limited Streamlines | Kappa | ParaView | 7 | July 5, 2019 15:27 |
[General] Generating streamlines in paraview | ahirekar10 | ParaView | 0 | November 1, 2017 08:01 |
[OpenFOAM] Streamlines through cyclic patches in Paraview | kornickel | ParaView | 3 | January 28, 2016 07:59 |
paraFoam reader for OpenFOAM 1.6 | smart | OpenFOAM Installation | 13 | November 16, 2009 22:41 |