CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Probing line data into a single file

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By Taataa

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 19, 2018, 21:50
Default Probing line data into a single file
  #1
Senior Member
 
cyln
Join Date: Jul 2016
Posts: 102
Rep Power: 10
cyln is on a distinguished road
Hello,


I am probing line data in openfoam, and use the following code within the controlDict file.

Code:
probeLineData  
  {
    type sets;
    enabled true;
    verbose true;
    interpolationScheme cellPoint;
    outputControl timeStep;
    outputInterval 1;
    setFormat raw;
    fields (U); // the fields
    sets
    (
      X1 // line name
        type uniform;
        axis y;
        start           (-1 -1 0);
        end             (-1 1 0);
        nPoints         50;
      }
    );
}
When I use this, each line data probed are written into a different time directory within postProcessing folder. However, I would like the line data to be written into a single file so that I can easily post-process the time history of the line data.


Does anyone know a way to do this? or Can you suggest me any solution?



Cheers,
Cyln
cyln is offline   Reply With Quote

Old   May 20, 2018, 06:12
Default
  #2
Senior Member
 
anonymous
Join Date: Jan 2016
Posts: 416
Rep Power: 14
simrego is on a distinguished road
Hi!


Honestly I don't know if you can do that, maybe you can. But if you use "setFormat gnupot;", then you can plot the different time levels in the same figure easily.
simrego is offline   Reply With Quote

Old   May 20, 2018, 11:27
Default
  #3
Senior Member
 
Taher Chegini
Join Date: Nov 2014
Location: Houston, Texas
Posts: 125
Rep Power: 13
Taataa is on a distinguished road
You can use singleGraph function. Include this line in your controlDict:
Code:
functions 
{ 
    #includeFunc  singleGraph
}
Then use this command to copy the dictionary to your system:
Code:
cp $FOAM_ETC/caseDicts/postProcessing/graphs/singleGraph system
Just modify the dictionary based on your specifications.
David* and manuc like this.
Taataa 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
[foam-extend.org] Problems installing foam-extend-4.0 on openSUSE 42.2 and Ubuntu 16.04 ordinary OpenFOAM Installation 19 September 3, 2019 19:13
[swak4Foam] swak4foam building problem GGerber OpenFOAM Community Contributions 54 April 24, 2015 17:02
Trouble compiling utilities using source-built OpenFOAM Artur OpenFOAM Programming & Development 14 October 29, 2013 11:59
centOS 5.6 : paraFoam not working yossi OpenFOAM Installation 2 October 9, 2013 02:41
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 20:08


All times are GMT -4. The time now is 00:20.