|
[Sponsors] |
December 7, 2013, 00:10 |
Internal Baffle Dynamic Boundary Condition
|
#1 |
Member
W. Schuyler Hinman
Join Date: Apr 2013
Location: Calgary, Alberta, Canada
Posts: 38
Rep Power: 13 |
Hi Everyone,
I am working on a simulation where I essentially want a shock tube with a driver and a driven section (high pressure low pressure). But instead of like in the shock tube tutorial, I want to have the two sections separated by an interior baffle (inf thin) face that will open with time, given a function of time that I will define. Has anybody attempted to do something like this? The simulation would be 2dimensional, x and y and frontandback would be empty. Making the internal face using toposet and createBaffles seems straight forward enough... but I don't know how to approach the time varying aspect. Can I have two baffles that shorten with time? Or is there a way I could code a boundary condition in the middle that has some sort of No flux->flux varying with time etc? I have been using OpenFoam for just over a year and this is my first problem that has stepped outside the "standard" type of boundary condition. Any wise tips to save any fools errands would be greatly appreciated. Thanks S. |
|
December 9, 2013, 18:19 |
|
#2 |
Senior Member
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 740
Rep Power: 28 |
The attachDetach mesh modifier sounds like it could do the trick. Note that you would need to create your own mesh class for it. Its working in OpenFOAM 2.1.x-2.2.x, you can look at my bug reports getting it to work here:
http://www.openfoam.org/mantisbt/view.php?id=572 Good luck! |
|
December 13, 2013, 13:17 |
|
#3 |
Member
W. Schuyler Hinman
Join Date: Apr 2013
Location: Calgary, Alberta, Canada
Posts: 38
Rep Power: 13 |
Thanks a lot Marco,
You are right the attachDetach utility is what I am looking for I think. So if I were to approach the problem by making a large number of internal faces in my tube that by using trigger times would subsequently attach to simulate the valve opening would this work? S. |
|
December 13, 2013, 13:30 |
|
#4 |
Senior Member
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 740
Rep Power: 28 |
Attach detach would definitely do what you are asking as far as mesh topology changes. If you are at high pressure or velocity you may have to work a little harder to keep the simulation stable. There is a case included in the bug report that works once the fixes described in the thread are implemented. Please let me know if you have any questions.
|
|
Tags |
changing internal face, dynamic boundary, dynamic internal baffle, dynamic internal face, internal baffle |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
CFX fails to calculate a diffuser pipe flow | shenying0710 | CFX | 7 | March 26, 2013 05:13 |
inlet velocity boundary condition | murali | CFX | 5 | August 3, 2012 09:56 |
boundary condition of an internal surface | ynsudo | OpenFOAM Running, Solving & CFD | 7 | September 14, 2011 05:17 |
RPM in Wind Turbine | Pankaj | CFX | 9 | November 23, 2009 05:05 |
How to define Dynamic Mesh boundary condition? | David | FLUENT | 0 | February 11, 2004 09:48 |