CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Running, Solving & CFD

Free slip moving wall BC

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   July 26, 2012, 12:41
Default Free slip moving wall BC
  #1
New Member
 
Claudio
Join Date: May 2010
Location: Boston, MA
Posts: 28
Rep Power: 6
Claudio is on a distinguished road
I'm trying to solve the sloshing tank 2D problem, but would like the walls to be free slip.
However, if I change the BC for U from "movingWallVelocity" to "slip", I get a solution with a flat free surface, and the velocity at the walls are shown as zero, not the same as the wall.

Any idea on how to solve this?

THanks
Claudio is offline   Reply With Quote

Old   July 27, 2012, 03:18
Default
  #2
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Rotterdam, The Netherlands
Posts: 1,530
Rep Power: 23
ngj will become famous soon enoughngj will become famous soon enough
Hi Claudio

I sounds like you need to make your own boundary condition, which is a merge of (i) slip and (ii) movingWallVelocity, i.e. enforcing the slip condition tangential to the plane but keeping the movingWallVelocity in order to have the velocity of the wall enforced into the momentum equation.

Good luck,

Niels
ngj is offline   Reply With Quote

Old   August 13, 2012, 12:28
Default
  #3
New Member
 
Claudio
Join Date: May 2010
Location: Boston, MA
Posts: 28
Rep Power: 6
Claudio is on a distinguished road
Hi Niels,

Thanks for your reply.
I have very limited knowledge of C/C++ (grew up with Fortran)., so I was wondering if you or somebody else out there would be willing to give a hand in writing the "movingfreeslipwall" BC for OF.

Claudio
Claudio is offline   Reply With Quote

Old   January 10, 2014, 11:14
Default
  #4
Senior Member
 
louisgag's Avatar
 
Louis Gagnon
Join Date: Mar 2009
Location: Québec, QC, Canada
Posts: 176
Rep Power: 7
louisgag is on a distinguished road
Send a message via ICQ to louisgag
I'm working on the same BC...
louisgag is offline   Reply With Quote

Old   August 22, 2014, 14:20
Default
  #5
Member
 
Hassan Kassem
Join Date: May 2010
Posts: 52
Rep Power: 6
hk318i is on a distinguished road
Quote:
Originally Posted by louisgag View Post
I'm working on the same BC...
I am working on the same BC too for a while. I tried the concept for 2D cases, it worked fine but it seems that it is not working for 3D.
Did you managed to implement it? any ideas?
hk318i is offline   Reply With Quote

Old   September 8, 2014, 03:21
Default
  #6
Senior Member
 
louisgag's Avatar
 
Louis Gagnon
Join Date: Mar 2009
Location: Québec, QC, Canada
Posts: 176
Rep Power: 7
louisgag is on a distinguished road
Send a message via ICQ to louisgag
Hello Hassan,
I did implement the BC. If you are interested I will post the code here.
-Louis
louisgag is offline   Reply With Quote

Old   September 8, 2014, 05:02
Default
  #7
Member
 
Hassan Kassem
Join Date: May 2010
Posts: 52
Rep Power: 6
hk318i is on a distinguished road
Quote:
Originally Posted by louisgag View Post
Hello Hassan,
I did implement the BC. If you are interested I will post the code here.
-Louis
Indeed, please post here it will be really helpful for me. I was working on it and I have a serious doubts about my implementation.
hk318i is offline   Reply With Quote

Old   September 8, 2014, 05:15
Default
  #8
Senior Member
 
louisgag's Avatar
 
Louis Gagnon
Join Date: Mar 2009
Location: Québec, QC, Canada
Posts: 176
Rep Power: 7
louisgag is on a distinguished road
Send a message via ICQ to louisgag
Hassan,
try including this in your 2.3.x personal folder and compiling it, I think all the files are there.
Code:
    wallName
    {
        type            myMovingWallSlip;
        value           uniform (0 0 0);
    }
Cheers.
-Louis
Attached Files
File Type: gz finiteVolume.tar.gz (4.7 KB, 8 views)
louisgag is offline   Reply With Quote

Old   September 8, 2014, 05:55
Default
  #9
Member
 
Hassan Kassem
Join Date: May 2010
Posts: 52
Rep Power: 6
hk318i is on a distinguished road
Quote:
Originally Posted by louisgag View Post
Hassan,
try including this in your 2.3.x personal folder and compiling it, I think all the files are there.
Code:
    wallName
    {
        type            myMovingWallSlip;
        value           uniform (0 0 0);
    }
Cheers.
-Louis
Thank you very much. It is similar to what I was recently wrote but didn't test it. Also it proves that my old implementation was totally wrong.

BTW in the new version 2.3.x, the if condition (mesh.changing()) changed to (mesh.moving()), I think it was even changed in the latest version of 2.2.x. It was reported as a bug because for some cases if you have auto mesh refinement with moving dynamicMesh, the boundary condition will be updated with mesh refinement not with mesh movement only.

Thanks again for your help!
hk318i is offline   Reply With Quote

Old   September 11, 2014, 11:02
Smile
  #10
Senior Member
 
louisgag's Avatar
 
Louis Gagnon
Join Date: Mar 2009
Location: Québec, QC, Canada
Posts: 176
Rep Power: 7
louisgag is on a distinguished road
Send a message via ICQ to louisgag
You're welcome Hassan and thanks for pointing out the new function call for mesh.moving().

I've updated my code so if anyone else is reading get this new version...

Cheers


-Louis
Attached Files
File Type: c myMovingWallSlipFvPatchVectorField.C (4.7 KB, 3 views)
louisgag is offline   Reply With Quote

Reply

Tags
free slip wall, moving wall, moving walls

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Water subcooled boiling Attesz CFX 7 January 5, 2013 03:32
wall slip law for newtonian fluid tsi07 FLUENT 0 April 19, 2012 12:13
[ICEM] Export ICEM mesh to Gambit / Fluent romekr ANSYS Meshing & Geometry 1 November 26, 2011 12:11
Stationary wall and Moving wall Sri FLUENT 1 July 29, 2008 04:33
Pressure on the free slip wall yliu CFX 5 March 30, 2007 03:47


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