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

Dam-break with a vertical-lifting gate (without dynamic mesh technique?)

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

Like Tree2Likes
  • 2 Post By zfaraday

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 6, 2016, 18:32
Default Dam-break with a vertical-lifting gate (without dynamic mesh technique?)
  #1
Senior Member
 
David Long
Join Date: May 2012
Location: Germany
Posts: 104
Rep Power: 14
keepfit is on a distinguished road
Dear Foamers,

I want to make a simple dam break test with a lifting gate. The gate is lifted with a velocity of 0.5 m/s at Z+ direction. I was wondering if it is possible to realize this without dynamic mesh.



The gate could be implemented as a zero thickness wall or baffle in OpenFOAM, the problem is that, how to "move" this baffle according to the lifting velocity without using dynamic mesh, since all we need is to set some fixed internal faces as walls.

The first idea comes to my mind is that: at every 0.1 sec, use the "createBaffles" command to update the gate position. But the baffle can only be created once at the beginning, do we have any method to change these faces that consist of the gate baffle?

Any idea?

Best regards,

David

Last edited by keepfit; February 7, 2016 at 00:04.
keepfit is offline   Reply With Quote

Old   February 7, 2016, 15:35
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer: Without dynamic mesh, then:
  1. The baffle cannot move on its own. At least the top will never move.
  2. The closest you can have is an effect similar to it dissolving. This can be done with a "porous baffle". Google:
    Code:
    openfoam "porousBaffle*"
  3. The problem is that currently there isn't one in OpenFOAM that is able to do change the porous values in function of height and time. You will have to code one yourself, where the Darcy coefficients change in function of height and time, where the height is also in function of time.
__________________
wyldckat is offline   Reply With Quote

Old   February 7, 2016, 17:04
Default
  #3
Senior Member
 
Alex
Join Date: Oct 2013
Posts: 337
Rep Power: 22
zfaraday will become famous soon enough
Maybe activeBaffleVelocity may help you, although I am not sure about it... Here you can find a little bit of information.

Best regards,

Alex
wyldckat and saatt like this.
__________________
Web site where I present my Master's Thesis: foamingtime.wordpress.com

The case I talk about in this site was solved with chtMultiRegionSimpleFoam solver and involves radiation. Some basic tutorials are also resolved step by step in the web. If you are interested in these matters, you are invited to come in!
zfaraday is offline   Reply With Quote

Old   February 7, 2016, 17:28
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Alex,
Quote:
Originally Posted by zfaraday View Post
Maybe activeBaffleVelocity may help you, although I am not sure about it... Here you can find a little bit of information.
I thought about that as well, but that boundary condition requires a special PDR mesh, which only PDRFoam uses at the moment.

Either way, a new boundary condition will have to be coded.

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   February 7, 2016, 17:44
Default
  #5
Senior Member
 
Alex
Join Date: Oct 2013
Posts: 337
Rep Power: 22
zfaraday will become famous soon enough
Quote:
Originally Posted by wyldckat View Post
Hi Alex,

I thought about that as well, but that boundary condition requires a special PDR mesh, which only PDRFoam uses at the moment.

Either way, a new boundary condition will have to be coded.

Best regards,
Bruno
I don't even know what a PDR mesh is... :P


By the way, maybe groovyBC has something to say about this problem! Just to avoid the hard work of coding a whole new BC... However, if it was possible I have no clue on how to do it...
__________________
Web site where I present my Master's Thesis: foamingtime.wordpress.com

The case I talk about in this site was solved with chtMultiRegionSimpleFoam solver and involves radiation. Some basic tutorials are also resolved step by step in the web. If you are interested in these matters, you are invited to come in!
zfaraday is offline   Reply With Quote

Old   February 7, 2016, 19:29
Default
  #6
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quote:
Originally Posted by zfaraday View Post
I don't even know what a PDR mesh is... :P
The one example that uses the PDR mesh is "activePressureForceBaffleVelocity"... I studied it sometime ago for fixing a bug: http://www.openfoam.org/mantisbt/view.php?id=1793#c5281 - the one you mentioned, namely "activeBaffleVelocity", is a simpler form of this boundary condition.

Last edited by wyldckat; February 7, 2016 at 19:30. Reason: updated link
wyldckat is offline   Reply With Quote

Old   February 7, 2016, 22:38
Default
  #7
Senior Member
 
David Long
Join Date: May 2012
Location: Germany
Posts: 104
Rep Power: 14
keepfit is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Hi Alex,

I thought about that as well, but that boundary condition requires a special PDR mesh, which only PDRFoam uses at the moment.

Either way, a new boundary condition will have to be coded.

Best regards,
Bruno
Quote:
Originally Posted by zfaraday View Post
Maybe activeBaffleVelocity may help you, although I am not sure about it... Here you can find a little bit of information.

Best regards,

Alex
Thanks @wyldckat and @zfaraday for the tips, it seems that its not an easy task. If the dynamic mesh is used in this case, does the faceID, CellID change over time? since the zero-thickness baffle is moving vertically.

I could not find any example with "activeBaffleVelocity" BC in tutorials folder, nor in the OpenFOAM forum. It would be great if someone can give some advice on how to use this BC.

Can we first use Createbaffles to create the gate, and then apply activeBaffleVelocity BC like this:

Code:
Gate
{
	type     activeBaffleVelocity;
	p      p;
	cyclicPatch     myCyclic;  // change the position
	orientation     -1;
	openFraction     0.2;
	openingTime     0.05;
	maxOpenFractionDelta     0.1;
}
As for the porousBafflePressure BC, how can we change some properties of this BC over time? For example to increase the permeability at the bottom with a very high value to mimic the opening.

Last edited by keepfit; February 8, 2016 at 17:12.
keepfit is offline   Reply With Quote

Old   May 5, 2021, 15:25
Default
  #8
Senior Member
 
Join Date: Jul 2019
Posts: 148
Rep Power: 7
Bodo1993 is on a distinguished road
Hello David,
I am wondering if you figured out a way to solve your problem without dynamic meshing. Thanks.
Bodo1993 is offline   Reply With Quote

Old   July 8, 2021, 05:52
Default
  #9
Member
 
UOCFD
Join Date: Oct 2020
Posts: 40
Rep Power: 6
uosilos is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Hi Alex,

I thought about that as well, but that boundary condition requires a special PDR mesh, which only PDRFoam uses at the moment.

Either way, a new boundary condition will have to be coded.

Best regards,
Bruno

Hi Bruno,


Can't activePressureForceBaffleVelocity be used with a "normal" mesh, for instance one imported .msh??
uosilos is offline   Reply With Quote

Old   October 22, 2021, 06:45
Default Openfoam dam break with gate lifting velocity
  #10
New Member
 
Mohamed rozki
Join Date: Feb 2021
Posts: 5
Rep Power: 5
mrozki is on a distinguished road
Hi foamers,

Did anyone managed to do a dam-break in openFoam and controling the gate velocity lifting ?
mrozki is offline   Reply With Quote

Reply

Tags
dam-break, valve simulation, vof method

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[DesignModeler] DesignModeler Scripting: How to get Full Command Access ANT ANSYS Meshing & Geometry 53 February 16, 2020 16:13
Dam break simulation water level decreases over time aarratia FLUENT 1 May 9, 2014 11:25
3D dam break modeling(earthen dam) yasharif FLUENT 0 December 11, 2011 02:25
Free surface boudary conditions with SOLA-VOF Fan Main CFD Forum 10 September 9, 2006 13:24
BFC for Dam break problem Mehdi BEN ELHADJ Phoenics 0 January 18, 2001 16:22


All times are GMT -4. The time now is 12:18.