|
[Sponsors] |
September 29, 2011, 14:04 |
Correct boundary condition
|
#1 |
Senior Member
Andrea Ferrari
Join Date: Dec 2010
Posts: 319
Rep Power: 17 |
Hi all,
I would like to perform this simulation using interFoam: 1) Inject a fluid in a certain domain (a box for example). My boundary conditon are (i guess standard BC for this case): alpha1 inlet fixedValue outlet inletOutlet U inlet fixedValue outlet zeroGradient p_rgh inlet zeroGradient outlet fixedValue left and right simmetryPlane 2) After a certain period of time i would like to stop the injection and let the system relaxes. Now, i'm quite confused about which boundary condition for alpha1 U and p_rgh is better to use at the inlet. I do not want to put simply a "wall" boundary condition, because i guess it is not physical so, in your opinion, which are the correct boundary conditions to have no fluid that comes in from the inlet? Then i have a second question. Is possibile with openFoam to switch (during the same simulation) from a boundary condition to an other? thanks a lot andrea |
|
September 30, 2011, 04:57 |
|
#3 |
New Member
Lee Yin Jen
Join Date: May 2011
Location: Malaysia
Posts: 10
Rep Power: 15 |
Hi,
Perhaps you can extend the inlet section to have an inflow pipe/duct of reasonable length. Then during relaxation time, apply wall boundary condition in the pipe/duct which is equivalent to pipe/duct closing? Then there will be reasonable interaction between the domain of interest and the inlet section during relaxation. |
|
September 30, 2011, 05:06 |
|
#4 |
Senior Member
Andrea Ferrari
Join Date: Dec 2010
Posts: 319
Rep Power: 17 |
Hi, and thanks for the answer.
1)Because physically there isn't a wall (if you think for example an experiment). simply i want no flow that comes in. Put a "wall" boundary condition is the only choise i have? Something like: alpha1: zeroGradient U: fixedValue (0 0 0) p_rgh: zeroGradient or buoyantyPressure ?? 2)no, i'm not familiar with groovyBC, but if you are saying that you can easily implement a sort of "switching BC", i wiil give a look for sure. Best andrea |
|
September 30, 2011, 05:25 |
|
#5 |
Senior Member
Andrea Ferrari
Join Date: Dec 2010
Posts: 319
Rep Power: 17 |
Another idea could be to impose a "correct" pressure gradient between the inlet and the outlet and then to simulate until nothing moves (until there is no flow from the inlet). Is possibile with OF?
andrea |
|
September 30, 2011, 07:02 |
|
#6 | ||
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25 |
Quote:
Quote:
|
|||
September 30, 2011, 10:34 |
|
#7 |
Senior Member
Andrea Ferrari
Join Date: Dec 2010
Posts: 319
Rep Power: 17 |
Hi,
i found the "timeVaryingUniformFixedValue" BC, which is probably what i was looking for (it seems easier than groovyBC). I set alpha1 inlet inletOutlet, inletValue 1, value 1 outlet inletOutlet , inletValue 0, value 0 p_rgh inlet zeroGradient outlet fixedValue U inlet timeVaryingUniformFixedValue outlet zeroGradient and then i used the "ramp" file to switch between fixed velocity and zero velocity at the inlet. The inletOutlet BC at the inlet for alpha1 should ensure fixedValue =1 when the velocity is non-zero and zeroGradient when the velocity is zero. It seems to work. thanks again andrea |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
External Radiation Boundary Condition (Two sided wall), Grid Interface | CFD XUE | FLUENT | 0 | July 8, 2010 07:49 |
vorticity boundary condition | bearcharge | Main CFD Forum | 0 | May 14, 2010 12:32 |
SymmetryPlane Boundary Condition | raytracer | OpenFOAM Running, Solving & CFD | 0 | July 11, 2008 18:04 |
CFX Solver : Sudden crash | Hervé | CFX | 2 | June 16, 2008 07:40 |
Rotating interpolated boundary condition | hani | OpenFOAM Running, Solving & CFD | 0 | July 4, 2006 08:09 |