CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

Question about 'postProcess -func'

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 14, 2020, 03:58
Default Question about 'postProcess -func'
  #1
Member
 
Haoran Zhou
Join Date: Nov 2019
Posts: 51
Rep Power: 7
Stan Zhou is on a distinguished road
Hi all,

I try to use sampleDict to extract the velocity of several points on my computer but after I execute 'postProcess -func sampleDictU' there is no 'postProcessing' folder. However, on my cluster this command works well.

Is there anything that needed to be done before using the command 'postProcess -func sampledict*'?

By the way, is it the problem caused by different versions? The OpenFOAM I installed on my computer is OpenFOAM-7 and the one on my cluster is OpenFOAM4.0.



Best regards,
Stan
Stan Zhou is offline   Reply With Quote

Old   July 15, 2020, 12:16
Default
  #2
Senior Member
 
Join Date: Aug 2015
Posts: 494
Rep Power: 15
clapointe is on a distinguished road
On your local machine no folder is created because it wasn't successful. The way you set up the sample dictionary will likely be different between openfoam versions. In any case here's an example I use for version 7 that works fine :

Code:
        libs ("libsampling.so");
        
        type                    sets;
        writeControl            outputTime;
        writeInterval           1;
        setFormat               raw;
        interpolationScheme     cellPoint;

        fields
        (
	    U
        );
        
        sets
        (
            line1
            {
                type            lineUniform;
                axis             y;
                start           (0 0 0);
                end             (0 1 0);
                nPoints        10;
            }
        );
Caelan
clapointe is offline   Reply With Quote

Old   July 15, 2020, 23:53
Default
  #3
Member
 
Haoran Zhou
Join Date: Nov 2019
Posts: 51
Rep Power: 7
Stan Zhou is on a distinguished road
Quote:
Originally Posted by clapointe View Post
On your local machine no folder is created because it wasn't successful. The way you set up the sample dictionary will likely be different between openfoam versions. In any case here's an example I use for version 7 that works fine :

Code:
        libs ("libsampling.so");
        
        type                    sets;
        writeControl            outputTime;
        writeInterval           1;
        setFormat               raw;
        interpolationScheme     cellPoint;

        fields
        (
	    U
        );
        
        sets
        (
            line1
            {
                type            lineUniform;
                axis             y;
                start           (0 0 0);
                end             (0 1 0);
                nPoints        10;
            }
        );
Caelan
Thanks for your suggestion. The example also works pretty well on my machine. And I just found that the 'sampling' folder is no longer located in the folder 'applications' and it is in the folder 'src'. I'll look into the differences of sample dictionaries. Thanks again!

Best regards,
Stan
Stan Zhou 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
Question about symmetry in Autodesk Cfd 2016 ecto Autodesk Simulation CFD 0 October 20, 2015 05:16
small question about the functionalities of topological changes in OpenFoam ngj OpenFOAM Running, Solving & CFD 2 February 28, 2013 11:02
Question Re Engineering Data Source imnull ANSYS 0 March 5, 2012 14:51
internal field question - PitzDaily Case atareen64 OpenFOAM Running, Solving & CFD 2 January 26, 2011 16:26
Poisson Solver question Suresh Main CFD Forum 3 August 12, 2005 05:37


All times are GMT -4. The time now is 13:23.