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

Unsteady Sample Patchs visualization

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 13, 2012, 11:34
Default Unsteady Sample Patchs visualization
  #1
Senior Member
 
Julien
Join Date: Jun 2012
Location: France
Posts: 152
Rep Power: 13
Djub is on a distinguished road
Hi!

I am using the sample function on a patch, but I don't which is the best file format:
Code:
controlDict
functions
{p_Building    {
        type surfaces;
        functionObjectLibs ("libsampling.so");
        enabled         true;
        outputControl   timeStep;
        interpolationScheme cellPoint;
        surfaceFormat vtk;    //    or foamfile
        fields        (      p        );
        surfaces        (
            P_build            {
                type            patch;
                patches         ( Building_patch0 );
                interpolate     true;
            }        );    }}
My wish is to visualize the results with paraView.
I tried foamFile , but was not able to open it with paraView.
I tried vtk, but paraView can open only one vtk-file (only one time step).
If I rename each file with an index, and put them together in a unique folder, paraView opens the whole as a "movie". BUT it loses the time information (it references the different time steps as indexes, not in seconds). Thus this solution is not convenient (I have to rename each file carefully, and then move it), and not 100% efficient (time disappeared).

Does anybody has a suggestion to solve this problem?
Djub is offline   Reply With Quote

Old   January 21, 2013, 05:01
Default
  #2
Senior Member
 
Julien
Join Date: Jun 2012
Location: France
Posts: 152
Rep Power: 13
Djub is on a distinguished road
Hi Everybody!

Finally, I wrote a script that change the location and the name of each VTK file. For instance:
/0.1246/P_build.vtk
is moved to
/P_build_125.vtk

So, all the time step are compiled in a unique folder with a unique name format: ParaView is able to understand it and can make a movie. Nevertheless, the "time" decomes only an index.

About this index: I had to choose to work with miliseconds, because paraview needs an integer (/P_build_124.6.vtk is not recognized by paraview to be linked with /P_build_131.4.vtk ). So my solution is not perfect! If anybody has a better idea...
Djub 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
Sample issues MikePo OpenFOAM Post-Processing 1 February 7, 2010 19:20
heat conducting in a solid domain Rogerio Fernandes Brito Fidelity CFD 0 March 18, 2008 17:24
heat conducting in a solid domain Rogerio Fernandes Brito Phoenics 0 March 18, 2008 17:23
heat conducting in a solid domain Rogerio Fernandes Brito Siemens 0 March 18, 2008 17:23
about my old post Rogerio Fernandes Brito CFX 1 February 8, 2008 19:19


All times are GMT -4. The time now is 04:16.