CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (https://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   Creating animation from VTK files or SampleDict output (https://www.cfd-online.com/Forums/openfoam-post-processing/150703-creating-animation-vtk-files-sampledict-output.html)

vgoli March 27, 2015 23:05

Creating animation from VTK files or SampleDict output
 
Dear all friends
I am a new user of OpenFOAM. I simulated droplet filtration by using interFoam. Since it was a heavy mesh, I used 100 processors for reducing the calculation time. I used sampleDict to extract some surfaces (which are my droplets) while my data were decomposed.(I used this method for avoiding from reconstructing step)
Now, I have a folder which its name is surfaces and it contains several folders (at my different intervals) and each folder contains my VTK file.
I want to make an animation of all these VTK files which shows the movement of this droplet through the domain. Would you please help me in this case?

Thank you in advance,
Vahid

canopus June 8, 2015 06:22

Maybe bit late but for future-

https://openfoamwiki.net/index.php/VtkAnim

Very nice tool!

be_inspired July 7, 2015 05:15

Hi Vahid.

could you include the controlDict or the part where surface/patch is included? My problem is that I want to export vtk every time step and the geometrical information is not updated. The fields (p,U) is updated.

Code:

    surfaces
    {
        type        surfaces;

        // Where to load it from (if not already in solver)
        functionObjectLibs ("libsampling.so");

        // outputControl  outputTime;
        outputControl  timeStep;
        outputInterval 1;
        surfaceFormat  vtk;
        fields          ( p U);
        interpolationScheme cell; //cell cellPoint cellPointFace
        surfaces
          (
          blade1
          {
            type            patch;
            patchName        blade1 ;
            interpolate    false;
            needsUpdate    false; //It is not read I think
          }

Thank you


All times are GMT -4. The time now is 11:15.