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

How to create a free surface application in Openfoam ?

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 12, 2011, 10:19
Default
  #21
Senior Member
 
Kent Wardle
Join Date: Mar 2009
Location: Illinois, USA
Posts: 219
Rep Power: 21
kwardle is on a distinguished road
In your test case, have you made the top surface a wall or a constant pressure outlet patch? Sounds like that is what you want. That will help keep the 'outlet' behaving physically.
kwardle is offline   Reply With Quote

Old   September 12, 2011, 10:35
Default
  #22
Member
 
Mohammad Fereshtehpour
Join Date: Jul 2011
Location: Iran
Posts: 61
Rep Power: 14
MOHAMMAD67 is on a distinguished road
Send a message via Skype™ to MOHAMMAD67
Hi Nima
I've changed the type of outlet pressure to buoyantPressure but the following error obtained:
--> FOAM FATAL ERROR:
Continuity error cannot be removed by adjusting the outflow.
Please check the velocity boundary conditions and/or run potentialFoam to initialise the outflow.
Total flux : 1e-300
Specified mass inflow : 1.27e-05
Specified mass outflow : 0
Adjustable mass outflow : 0


From function adjustPhi(surfaceScalarField& phi, const volVectorField& U,const volScalarField& p
in file cfdTools/general/adjustPhi/adjustPhi.C at line 115.

FOAM exiting


I try to implement groovybc and tell you the result.
MOHAMMAD67 is offline   Reply With Quote

Old   September 12, 2011, 13:47
Default Outlet Pressure
  #23
Member
 
Mohammad Fereshtehpour
Join Date: Jul 2011
Location: Iran
Posts: 61
Rep Power: 14
MOHAMMAD67 is on a distinguished road
Send a message via Skype™ to MOHAMMAD67
Quote:
Originally Posted by kwardle View Post
In your test case, have you made the top surface a wall or a constant pressure outlet patch? Sounds like that is what you want. That will help keep the 'outlet' behaving physically.
Hi Kwardle,
What do u mean exactly by constant pressure outlet patch. could u please check my file for this case? I don't know how to consider constant pressure above the surafce and hydrostatic pressure below the surface.
Attached Files
File Type: zip 0.zip (2.4 KB, 12 views)
MOHAMMAD67 is offline   Reply With Quote

Old   September 13, 2011, 14:23
Default
  #24
Senior Member
 
Kent Wardle
Join Date: Mar 2009
Location: Illinois, USA
Posts: 219
Rep Power: 21
kwardle is on a distinguished road
Mohammad,
I took at your 0 BCs. You have a boundary in p_rgh called atmosphere which is not used. Anyway, your outlet patch is not set up correctly. You will want to use inletOutlet for alpha1, totalPressure for p_rgh and pressureInletOutletVelocity for U on your outlet patch. If you had not set up the inlet as you have done with a partial patch of alpha1, I think in order to get this to solve and not blow up you would have also had to make the upperWall an 'outlet' boundary with all the same BC types as your named outlet patch. Attached is a 0 directory with the changes that work for me.

Here is an animation through 1s.



Please take a close look through the BCs and make sure it is clear what I have changed so you can do it yourself in the future. Hope this helps!
-Kent
Attached Files
File Type: zip 0.new.zip (2.5 KB, 34 views)
Bashar likes this.
kwardle is offline   Reply With Quote

Old   September 14, 2011, 14:28
Default new case
  #25
Member
 
Mohammad Fereshtehpour
Join Date: Jul 2011
Location: Iran
Posts: 61
Rep Power: 14
MOHAMMAD67 is on a distinguished road
Send a message via Skype™ to MOHAMMAD67
Hi Kwardle,
Thanks a lot for your attention. I did what you said and the results obtained was the same as yours. In order to model my case, I built a model and implement the required changes. It's result is a little strange. I reallly couldn't explain what happen.
Here is my file:
http://www.4shared.com/file/4k8mRux_/D13T.html

Thanksgod, You really made me hopefull for learning openFoam better.
MOHAMMAD67 is offline   Reply With Quote

Old   September 14, 2011, 14:32
Default
  #26
Senior Member
 
Kent Wardle
Join Date: Mar 2009
Location: Illinois, USA
Posts: 219
Rep Power: 21
kwardle is on a distinguished road
Please post the file here directly. I cannot get the file from your link.
kwardle is offline   Reply With Quote

Old   September 14, 2011, 14:46
Default flow on step new case
  #27
Member
 
Mohammad Fereshtehpour
Join Date: Jul 2011
Location: Iran
Posts: 61
Rep Power: 14
MOHAMMAD67 is on a distinguished road
Send a message via Skype™ to MOHAMMAD67
really thanks Kwardle, Mesh file is bigger than the uploading limit. what shoul I do? could u please give me your email.
Attached Files
File Type: zip D13T.zip (10.9 KB, 15 views)
MOHAMMAD67 is offline   Reply With Quote

Old   September 14, 2011, 14:51
Default
  #28
Senior Member
 
Kent Wardle
Join Date: Mar 2009
Location: Illinois, USA
Posts: 219
Rep Power: 21
kwardle is on a distinguished road
Hi,
Is it generated from blockMesh? If so, just upload the blockMeshDict only without the mesh.
-Kent
kwardle is offline   Reply With Quote

Old   September 21, 2011, 03:35
Default
  #29
New Member
 
Jindo
Join Date: Mar 2011
Location: Germany
Posts: 25
Rep Power: 15
phuchuynh is on a distinguished road
Quote:
Originally Posted by MOHAMMAD67 View Post
really thanks Kwardle, Mesh file is bigger than the uploading limit. what shoul I do? could u please give me your email.
Hi Mohammad !

Can u upload file or post your solver on forum ? This is best reference.
thanks

phuc
phuchuynh is offline   Reply With Quote

Reply


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
Free Surface Ship Flow timfranke OpenFOAM Running, Solving & CFD 322 March 3, 2021 09:04
Superlinear speedup in OpenFOAM 13 msrinath80 OpenFOAM Running, Solving & CFD 18 March 3, 2015 05:36
free surface around a ship hull Stephy OpenFOAM Running, Solving & CFD 12 April 24, 2012 01:12
Porous media in free surface application chiggins OpenFOAM Running, Solving & CFD 0 July 3, 2008 11:25
Modeling Free Surface Flows Elliot Schwartz Main CFD Forum 5 August 25, 1998 21:03


All times are GMT -4. The time now is 13:02.