CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[OpenFOAM] data saved via plot over line filter is not equal to number of cells along that line

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By babakflame
  • 1 Post By babakflame

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 10, 2016, 01:45
Default 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
babakflame is on a distinguished road
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)

);
I have uploaded four files including pictures of my paraview settings and the file achieved by saving data on the desired line using 'plot over line' filter plus the blockMeshDict.


Any hint is appreciated.

Regards
Attached Images
File Type: jpg Screenshot from 2016-10-10 00:10:52.jpg (73.1 KB, 30 views)
File Type: jpg Screenshot from 2016-10-10 00:10:33.jpg (70.8 KB, 31 views)
Attached Files
File Type: xlsx X_10,j0_1b.xlsx (4.2 KB, 0 views)
File Type: txt blockMeshDict.txt (1.8 KB, 2 views)
babakflame is offline   Reply With Quote

Old   October 10, 2016, 15:05
Default
  #2
Senior Member
 
Bobby
Join Date: Oct 2012
Location: Michigan
Posts: 454
Rep Power: 16
babakflame is on a distinguished road
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
babakflame is offline   Reply With Quote

Old   October 10, 2016, 15:40
Default
  #3
Senior Member
 
Bobby
Join Date: Oct 2012
Location: Michigan
Posts: 454
Rep Power: 16
babakflame is on a distinguished road
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.
Tobi likes this.
babakflame is offline   Reply With Quote

Old   October 10, 2016, 15:41
Default
  #4
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Hi Bobi,

second picture of you - below RESOLUTION 100. Therefore, you have only 100 probe points.
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   October 10, 2016, 15:43
Default
  #5
Senior Member
 
Bobby
Join Date: Oct 2012
Location: Michigan
Posts: 454
Rep Power: 16
babakflame is on a distinguished road
Yeah, I know Tobi.

Some times , I make strange mistakes.
Tobi likes this.
babakflame is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 01:12.