CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Rotating cylinder with fluid (https://www.cfd-online.com/Forums/openfoam/144344-rotating-cylinder-fluid.html)

Dhruval November 12, 2014 13:15

Rotating cylinder with fluid
 
1 Attachment(s)
hallo,
I need to do fluid simulation in Open Foam which I uploaded sketch..
in sketch I have one round drum which filled with fluid half and half is air (multiphase) and drum rotates in its axis. so which type of geometry should I use? hollow cylinder or solid cylinder?
and how can I give rotation to drum? does it change the mesh?
I thought to use VOF method to create fluid in cylinder as in (dam break Example) in set Field. so is it right? please guide me further or if anyone has same case then kindly upload it .
thanks

wyldckat November 15, 2014 10:42

Quick answer: Have a look into the "tutorials" folder, namely in the sub-folder "multiphase/interDyMFoam/ras": https://github.com/OpenFOAM/OpenFOAM...terDyMFoam/ras
Run the "sloshingTank*" tutorials and "testTubeMixer" tutorial and study how they are set-up.

Dhruval November 15, 2014 10:46

thanks for reply but i need round cavity instead of square or cube.
so how can i give patches?

wyldckat November 15, 2014 11:37

Quick answer: In the same tutorials sub-folder I mentioned, there is another tutorial named "mixerVesselAMI".

Dhruval November 15, 2014 19:15

thanks.. i looked at this tutoriial also.. but i only need small roatating drum not whole mixer and i want this drum rotate itself.. so i have also STL or block-mesh file of cylinder
but i am sufuring difficulty to create fluid like damBreak so if you can guid me further it would be very helpful

Dhruval November 15, 2014 21:15

Problem whle simulation with changing geometry in dambreak
 
1 Attachment(s)
hi..i am trying to run multiphase/interFoam/laminar/damBreak example with changing geometry rectangle to round cylinder .. i did block mesh with cylinder patches -- works
but while simulation it gives error.. i am uploading my case , please try once and tell me problem.. thanks .
as i need same dam break example with change geometry..:)

wyldckat November 16, 2014 17:25

Hi Dhruval,

Sorry, I was in a hurry the other day (still am today as well) and had hoped you would have tried to look into the other tutorial folders as well. The tutorial I had in mind was in fact "mixerVessel2D" and not "mixerVesselAMI". One such tutorial is "multiphase/MRFMultiphaseInterFoam/mixerVessel2D".

As for the case you attached, there are a few problems that I can see:
  1. The file "setFieldsDict" has the box incorrectly defined. You have this:
    Code:

            box (0 1 0) (0.1461 0.292 1);
    Which is incorrect, because the first vector is meant to be the lower left-most corner.
    In your case, according to the "blockMeshDict" you have, the correct box should be something like:
    Code:

            box (-0.01 -0.01 0.0) (0.01 0.0 1.0);
  2. The mesh will give you several headaches, because there are cells very small and distorted at some locations. Have a look at the tutorial I mentioned this time, namely "multiphase/MRFMultiphaseInterFoam/mixerVessel2D". It uses m4, which is explained in more detail here: http://openfoamwiki.net/index.php/Ho...ckMesh_with_m4
Beyond this, I didn't manage to find the time to see any more details.

Good luck! Best regards,
Bruno

Nasos_bal October 1, 2021 13:53

Quote:

Originally Posted by Dhruval (Post 518806)
hallo,
I need to do fluid simulation in Open Foam which I uploaded sketch..
in sketch I have one round drum which filled with fluid half and half is air (multiphase) and drum rotates in its axis. so which type of geometry should I use? hollow cylinder or solid cylinder?
and how can I give rotation to drum? does it change the mesh?
I thought to use VOF method to create fluid in cylinder as in (dam break Example) in set Field. so is it right? please guide me further or if anyone has same case then kindly upload it .
thanks

Did you find a solution?


All times are GMT -4. The time now is 06:26.