CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   ParaView (https://www.cfd-online.com/Forums/paraview/)
-   -   [OpenFOAM] How to draw vortex by paraview? (https://www.cfd-online.com/Forums/paraview/133954-how-draw-vortex-paraview.html)

Wais April 23, 2014 02:51

How to draw vortex by paraview?
 
I use openFoam to run a multiphase case, but the code doesn't put out the data of vortex, how can I draw vortex by paraview?

seju April 23, 2014 04:19

Quote:

Originally Posted by Wais (Post 487622)
I use openFoam to run a multiphase case, but the code doesn't put out the data of vortex, how can I draw vortex by paraview?

dear Wais
you can add this code into creatFields and see the vorticity:
Code:

volVectorField vorticity
    (
        IOobject
        (
            "vorticity",
            runTime.timeName(),
            mesh,
            IOobject::NO_READ,
            IOobject::AUTO_WRITE
        ),
        curl U
    );

or you can Add "curl(U) leastSquares;" into gradSchemes block (fvSchemes dictionary). After that, you run the utility 'vorticity'

Wais April 23, 2014 04:54

I think the two methods calculate the vorticity, and I want to know how to put out vorticity? Maybe I will add vorticity file to 0 folder?

seju April 24, 2014 00:08

Quote:

Originally Posted by Wais (Post 487652)
I think the two methods calculate the vorticity, and I want to know how to put out vorticity? Maybe I will add vorticity file to 0 folder?

you must go to the fvSchemes in system folder and add
Code:

curl(U) leastSquares;
into gradSchemes block
After Run your case type in terminal:
Code:

vorticity > Vortex
know you can see mount of the vorticity in Vortex in your run folder.
best regards.

Wais April 24, 2014 05:08

Quote:

Originally Posted by seju (Post 487843)
you must go to the fvSchemes in system folder and add
Code:

curl(U) leastSquares;
into gradSchemes block
After Run your case type in terminal:
Code:

vorticity > Vortex
know you can see mount of the vorticity in Vortex in your run folder.
best regards.

I will try, thanks for your reply!

Wais April 24, 2014 08:31

Quote:

Originally Posted by seju (Post 487843)
you must go to the fvSchemes in system folder and add
Code:

curl(U) leastSquares;
into gradSchemes block
After Run your case type in terminal:
Code:

vorticity > Vortex
know you can see mount of the vorticity in Vortex in your run folder.
best regards.

It works.Thanks very much.

Wais April 24, 2014 08:51

Quote:

Originally Posted by seju (Post 487843)
you must go to the fvSchemes in system folder and add
Code:

curl(U) leastSquares;
into gradSchemes block
After Run your case type in terminal:
Code:

vorticity > Vortex
know you can see mount of the vorticity in Vortex in your run folder.
best regards.

Could I draw vortex by lambda 2 method?


All times are GMT -4. The time now is 08:44.