|
[Sponsors] |
![]() |
![]() |
#1 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,712
Blog Entries: 6
Rep Power: 52 ![]() ![]() ![]() |
Hi all,
just a question to all who are using interFoam. I made a lot of simulations with that solver but never with a closed tank or something like that. My idea was to create a tank with p=101300 Pa in it. I have one inlet and the rest are walls. Now I want that a fluid (water) gets into the tank with 200000 Pa. Normally the water get in the tank till the compressed air has exact 200000Pa. The problem I have is to set correct BC for that. Or is it possible to calculate this problem with cfd? Due to the fact of momentum equation ... mass is going into the system but not out of the system! Thanks in advance Tobi |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,268
Blog Entries: 1
Rep Power: 25 ![]() |
well, i guess interFoam is not suitable as it consider both phases incompressible, you may want to use compressibleInterFoam
__________________
My Personal Website (http://nimasamkhaniani.ir/) Telegram channel (https://t.me/cfd_foam) |
|
![]() |
![]() |
![]() |
![]() |
#4 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,712
Blog Entries: 6
Rep Power: 52 ![]() ![]() ![]() |
Hi,
okay the solver is running. But I am not sure how I should set the BC for the inlet? As I mentioned in the first post, the water should go inside with 2 bar while the air is with 1 bar. After compression of air to 2bar no water is going into the tank. |
|
![]() |
![]() |
![]() |
![]() |
#5 |
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,268
Blog Entries: 1
Rep Power: 25 ![]() |
well, i guess i use pressureInletVelocity
![]() please share the result here ![]()
__________________
My Personal Website (http://nimasamkhaniani.ir/) Telegram channel (https://t.me/cfd_foam) |
|
![]() |
![]() |
![]() |
![]() |
#6 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,712
Blog Entries: 6
Rep Power: 52 ![]() ![]() ![]() |
Hi all,
well my first quess was to set U to pressureInletVelocity and p to fixedValue like you mentioned. But it is not working. The simulations is total unphysical and I got an Floating Point exeption. First: p_inlet = 2 bar P_internalField = 1 bar Second: p_inlet = 1.005 bar p_internalField = 1 bar (Nothing changed) hmmm any hints are appreciate |
|
![]() |
![]() |
![]() |
![]() |
#7 |
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,268
Blog Entries: 1
Rep Power: 25 ![]() |
at least post the error file
![]() ![]()
__________________
My Personal Website (http://nimasamkhaniani.ir/) Telegram channel (https://t.me/cfd_foam) |
|
![]() |
![]() |
![]() |
![]() |
#9 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,712
Blog Entries: 6
Rep Power: 52 ![]() ![]() ![]() |
Here the U - file:
Code:
boundaryField { wall { type fixedValue; value uniform (0 0 0); } inlet { type pressureInletVelocity; value uniform (0 0 0); } } Code:
boundaryField { wall { type fixedFluxPressure; value uniform 1e5; } inlet { type fixedValue; value uniform 1.01e5; } } |
|
![]() |
![]() |
![]() |
![]() |
#10 |
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,268
Blog Entries: 1
Rep Power: 25 ![]() |
1- whats your alpha1 file?
2- how is your initial setup? 3-how is your mesh? 4-which version of OF do you use?
__________________
My Personal Website (http://nimasamkhaniani.ir/) Telegram channel (https://t.me/cfd_foam) |
|
![]() |
![]() |
![]() |
![]() |
#11 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,712
Blog Entries: 6
Rep Power: 52 ![]() ![]() ![]() |
Hi,
initialValues: Code:
p = 1e5 (boundary = calculated) p_rgh = 1e5 U = (0 0 0) alphaWater = 0 (boundary = ZeroGradient for the wall and inlet = fixedValue = 1) T = 300 (boundary = zeroGradient; inlet 300 fixed) I think alphaWater = 1 = phase1 (water) and alphaWater = 0 = phase2 (air) I use always the latest OpenFOAM Version (2.2.x). |
|
![]() |
![]() |
![]() |
![]() |
#12 |
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,268
Blog Entries: 1
Rep Power: 25 ![]() |
what about air and water properties
![]()
__________________
My Personal Website (http://nimasamkhaniani.ir/) Telegram channel (https://t.me/cfd_foam) |
|
![]() |
![]() |
![]() |
![]() |
#13 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,712
Blog Entries: 6
Rep Power: 52 ![]() ![]() ![]() |
Hi,
well ![]() I will have a look at that file today evening. Question to you - did you ever simulated a closed tank or something like that? |
|
![]() |
![]() |
![]() |
![]() |
#14 | ||
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,268
Blog Entries: 1
Rep Power: 25 ![]() |
Quote:
Quote:
![]()
__________________
My Personal Website (http://nimasamkhaniani.ir/) Telegram channel (https://t.me/cfd_foam) |
|||
![]() |
![]() |
![]() |
![]() |
#17 |
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,268
Blog Entries: 1
Rep Power: 25 ![]() |
well
1- how did you solve your first problem (float exception?) 2- whats wrong with alpha1 gradient? distribution seems OK with me ![]()
__________________
My Personal Website (http://nimasamkhaniani.ir/) Telegram channel (https://t.me/cfd_foam) |
|
![]() |
![]() |
![]() |
![]() |
#18 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,712
Blog Entries: 6
Rep Power: 52 ![]() ![]() ![]() |
Hi,
I thought that I solved the first problem ![]() Hmmm ... I am out of mind and it is so a simple geometry... hmmm ![]() Last edited by Tobi; September 23, 2013 at 07:34. |
|
![]() |
![]() |
![]() |
![]() |
#19 |
New Member
Join Date: Sep 2012
Posts: 23
Rep Power: 14 ![]() |
don't mind to hijack this thread, but can anyone assist me here too:
http://www.cfd-online.com/Forums/ope...modelling.html my problem seems easier to solve compared to the one here. ![]() |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
interFoam / bubbleFoam to simulate an aerated tank | Meratb | OpenFOAM Running, Solving & CFD | 3 | November 6, 2020 12:45 |
Strange Results at Tank Outlet with InterFoam | mgdenno | OpenFOAM | 18 | November 29, 2019 00:05 |
tank filling (water/air), I think I messed up the BCs | simpomann | OpenFOAM Running, Solving & CFD | 2 | August 21, 2017 08:16 |
How to set velocity-inlet as a boundary of a tank in interfoam? | waynezoon | OpenFOAM | 3 | January 11, 2013 10:30 |
Rotating tank problem using interFoam and an axisymmetric model | Krishna Sandeep | OpenFOAM | 0 | July 3, 2012 05:10 |