|
[Sponsors] |
[OpenFOAM] data saved via plot over line filter is not equal to number of cells along that line |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 10, 2016, 01:45 |
data saved via plot over line filter is not equal to number of cells along that line
|
#1 |
Senior Member
Bobby
Join Date: Oct 2012
Location: Michigan
Posts: 454
Rep Power: 16 |
Dear Fellows
Its a while that I am using Paraview for post-processing my Foam based results. However, I hadn't noticed this issue before, probably because I did not need it. I have made a roughly 1 dimensional grid with the length of 10 in X direction (desired direction). In blockMeshDict I have used the value of 1400 for the edge between first and last points in X direction. So, I expect each cell has the length of 10/400 ( =0.00714 ) in X direction. When I use the 'plot over line' filter in x direction for plotting a variable (for instance, phi), I expect to have 1400 data on my line. However, paraview just gives me 101 points, which is significantly lower than what I expect. Why this happens? Is there any way to exploit 1400 data along X axis as I have mentioned for the devisions between first and last point (1400 cells in X direction) in blockMeshDict file? This snippet in my blockMeshDict shows that I have 1400 cells in X direction: Code:
vertices #codeStream { codeInclude #{ #include "pointField.H" #}; code #{ pointField points(8); points[0] = point(0, 0, 0); points[1] = point(10, 0, 0); points[2] = point(10, 0.05, 0); points[3] = point(0, 0.05, 0); points[4] = point(0, 0, 0.05); points[5] = point(10, 0, 0.05); points[6] = point(10, 0.05, 0.05); points[7] = point(0, 0.05, 0.05); os << points; #}; }; blocks ( hex (0 1 2 3 4 5 6 7) (1400 7 1) simpleGrading (1 1 1) ); Any hint is appreciated. Regards |
|
October 10, 2016, 15:05 |
|
#2 |
Senior Member
Bobby
Join Date: Oct 2012
Location: Michigan
Posts: 454
Rep Power: 16 |
Hey Foamers
I am thinking of using sampleDict to extract data along the desired line with appropriate number of points. However, still interested to find the method in paraview to use 'plot over line' filter with correct number of cells in simulation not reduced. Any hint is appreciated. Reagards |
|
October 10, 2016, 15:40 |
|
#3 |
Senior Member
Bobby
Join Date: Oct 2012
Location: Michigan
Posts: 454
Rep Power: 16 |
Dear Fellows
Although you can use sampleDict to extract data, I am gonna put the answer of this question for others that may make this mistake (the same as me): Dont forget to increase the resolution of 'plot over line filter'. Otherwise, you may keep struggling with increasing grid resolution with the same plots with paraview. |
|
October 10, 2016, 15:43 |
|
#5 |
Senior Member
Bobby
Join Date: Oct 2012
Location: Michigan
Posts: 454
Rep Power: 16 |
Yeah, I know Tobi.
Some times , I make strange mistakes. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
CFD by anderson, chp 10.... supersonic flow over flat plate | varunjain89 | Main CFD Forum | 18 | May 11, 2018 08:31 |
[mesh manipulation] Importing Multiple Meshes | thomasnwalshiii | OpenFOAM Meshing & Mesh Conversion | 18 | December 19, 2015 19:57 |
[snappyHexMesh] No layers in a small gap | bobburnquist | OpenFOAM Meshing & Mesh Conversion | 6 | August 26, 2015 10:38 |
SigFpe when running ANY application in parallel | Pj. | OpenFOAM Running, Solving & CFD | 3 | April 23, 2015 15:53 |
Problems of Duns Codes! | Martin J | Main CFD Forum | 8 | August 15, 2003 00:19 |