|
[Sponsors] |
Multiple curves in same plot of volume output |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 17, 2021, 09:07 |
Multiple curves in same plot of volume output
|
#1 | |
Senior Member
Arijit Saha
Join Date: Feb 2019
Location: Singapore
Posts: 132
Rep Power: 7 |
Hello everyone,
Hope you all are doing good. I'm using SU2 for my numerical simulation and I noticed a very weird behavior while visualizing the volume output (cp, y+ etc). For example if I consider the cp vs the x-cord it should be consisting of only line which is pretty basic but here I noticed two line pretty much overlapping on each other. I need to get rid of one line and plot a normal cp plot. I'm attaching the pic of the upper surface of airfoil and the cp curves. If anyone is aware of the solution please let me know with your idea, will be really helpful. Quote:
|
||
September 17, 2021, 13:00 |
|
#2 | |
Member
Ravi
Join Date: May 2017
Posts: 32
Rep Power: 9 |
Quote:
Hope this message finds you well. I am curious to know one thing, given that I am also performing a similar simulation. Would it be physical to use a volume output Cp when plotting a surface quantity such as pressure, which is calculated purely on the airfoil surface? The reason I mention this is because from my (limited) experience, I have plotted the Cp curve as a volume output before, and I did get some unphysical lines. Another suggestion would be to use a dotted line in Paraview (which I assume is your post-processing software) instead of the solid line. Many a times, the correct trend is not plotted in an unsteady simulation because the same solution is iterated multiple times, and Paraview basically reads all time steps and plots the Cp variation on the same plot. Hope one of these solutions helps your cause. With warm regards, Ravi |
||
September 17, 2021, 14:34 |
|
#3 | |
Senior Member
Arijit Saha
Join Date: Feb 2019
Location: Singapore
Posts: 132
Rep Power: 7 |
Quote:
Also, I m running my simulation with steady case. Bdw Ravi, if you figured out the unphysical behaviour of your cp with volume output can you share the solution here as well? |
||
September 18, 2021, 06:11 |
|
#4 |
Senior Member
Arijit Saha
Join Date: Feb 2019
Location: Singapore
Posts: 132
Rep Power: 7 |
Hello SU2 users,
After spending couple of hours behind this issue somehow I was able to figure out the reason behind this multiple curves. I have put a pic in the attachment section and there you can notice that in between two successive geometry points there are multiple cells (tri mesh) projecting a point on the curve. To be clear, I used gmsh as the meshing tool and used distance & threshold command to create the mesh. So, after the simulation when the surface.vtk file was opened I observed that the values corresponding to geometrical points(circle marked in pic) and projecting point(due to mesh) were separately noted in the file, which usually supposed to be in a continuous manner. It can be separately plotted with Python or MATLAB not a big issue but I'm wondering is this quite common in SU2 or can it be eradicated somehow? |
|
September 18, 2021, 08:10 |
|
#5 |
Senior Member
bigfoot
Join Date: Dec 2011
Location: Netherlands
Posts: 657
Rep Power: 19 |
Hi,
I'm not sure what you mean with geometric points and projecting points, but the issue here seems to be not related to su2 but to the way a mesh is defined (in general, bu in this case in the paraview file). A mesh is just a collection of points with connectivity information. These points are not ordered in any way, because 'ordering' is ill defined. So when you want to visualize data on the surface of some mesh (say: a horizontal line), you might get the points {1,2,3,4,5,6,7} that are on the surface. But they might not be adjacent to each other. points 1 and 2 might be corner points, and 3,4,5,6 might be in between. A line plot will plot the points in the order 1,2,3,4,5,6,7 and then assume that they are connected in that order. The solution is to either plot the result as symbols like points, without connecting lines, or when the surface is a single line (so it has a starting point and an ending point), you can make a plot with 'distance over the curve' on the horizontal axis. Last edited by bigfootedrockmidget; September 18, 2021 at 14:17. |
|
September 18, 2021, 08:21 |
|
#6 | |
Senior Member
Arijit Saha
Join Date: Feb 2019
Location: Singapore
Posts: 132
Rep Power: 7 |
Quote:
Have a nice day. |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] outputTime in Swak function | immortality | OpenFOAM Community Contributions | 20 | October 6, 2022 13:08 |
How to use "translation" in solidBodyMotionFunction in OpenFOAM | rupesh_w | OpenFOAM Running, Solving & CFD | 5 | August 16, 2016 05:27 |
[snappyHexMesh] sHM layer process keeps getting killed | MBttR | OpenFOAM Meshing & Mesh Conversion | 4 | August 15, 2016 04:21 |
problem with surface creation in ICEM from multiple curves | dialolema | ANSYS Meshing & Geometry | 2 | October 27, 2014 14:14 |
OpenFOAM static build on Cray XT5 | asaijo | OpenFOAM Installation | 9 | April 6, 2011 13:21 |