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

Rotating cylinder with fluid

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 12, 2014, 14:15
Unhappy Rotating cylinder with fluid
  #1
New Member
 
Deutschland
Join Date: May 2014
Posts: 12
Rep Power: 12
Dhruval is on a distinguished road
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
Attached Images
File Type: jpg small_rotating_cylinder.jpg (29.4 KB, 129 views)
Dhruval is offline   Reply With Quote

Old   November 15, 2014, 11:42
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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.
wyldckat is offline   Reply With Quote

Old   November 15, 2014, 11:46
Default
  #3
New Member
 
Deutschland
Join Date: May 2014
Posts: 12
Rep Power: 12
Dhruval is on a distinguished road
thanks for reply but i need round cavity instead of square or cube.
so how can i give patches?
Dhruval is offline   Reply With Quote

Old   November 15, 2014, 12:37
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer: In the same tutorials sub-folder I mentioned, there is another tutorial named "mixerVesselAMI".
wyldckat is offline   Reply With Quote

Old   November 15, 2014, 20:15
Default
  #5
New Member
 
Deutschland
Join Date: May 2014
Posts: 12
Rep Power: 12
Dhruval is on a distinguished road
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 is offline   Reply With Quote

Old   November 15, 2014, 22:15
Unhappy Problem whle simulation with changing geometry in dambreak
  #6
New Member
 
Deutschland
Join Date: May 2014
Posts: 12
Rep Power: 12
Dhruval is on a distinguished road
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..
Attached Files
File Type: zip damBreak.zip (8.3 KB, 17 views)
Dhruval is offline   Reply With Quote

Old   November 16, 2014, 18:25
Default
  #7
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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
Dhruval likes this.
wyldckat is offline   Reply With Quote

Old   October 1, 2021, 14:53
Default
  #8
New Member
 
Nasos_bal
Join Date: Oct 2021
Posts: 8
Rep Power: 5
Nasos_bal is on a distinguished road
Quote:
Originally Posted by Dhruval View Post
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?
Nasos_bal is offline   Reply With Quote

Reply

Tags
openfoam 2.1.1, rotating cylinder, snappy hex mesh


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
how to simulate a VIV of the cylinder in a fluid domian use rigid body solution? Mal CFX 13 April 14, 2014 14:44
Shaft rotating in fluid CHT Jonny6001 STAR-CCM+ 0 May 26, 2013 19:16
rotating cylinder using sliding mesh Tim Daly FLUENT 1 November 10, 2008 00:02
Vertical rotating cylinder Abhishek V FLUENT 0 December 16, 2006 17:20
Terrible Mistake In Fluid Dynamics History Abhi Main CFD Forum 12 July 8, 2002 10:11


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