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

[mesh manipulation] Creating porous baffle

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 10, 2023, 08:28
Question Creating correct patchField entries for porous baffle
  #1
New Member
 
Wilhelm Furian
Join Date: Apr 2023
Location: Berlin
Posts: 16
Rep Power: 2
Florian Mlehliw is on a distinguished road
Dear all!

I'm slowly getting to know a little more of OpenFOAM, but there is just SO much^^

I'm still trying to understand how to best simulate a dam break at a lake, a bit similar to this question (Dam-break with a vertical-lifting gate (without dynamic mesh technique?)). There, I got the idea of creating the dam as a baffle which then gets more and more porous until it is completely "gone" (I hope something like that's possible). Or can I create a baffle which does dome kind of solidMotion into the ground?

I want to show you what I've done so far and I would then like for someone to tell me if I'm on the right track at all.

The OpenFoam user guide says that a searchablePlate can be used to create a baffle. I've created the plate using snappyHexMeshDict:
Code:
geometry
{
    [...]
    dam
    {
        type            searchablePlate;
        origin          (4000 3463 4582);
        span            (300 0 90);
     }
}

refinementSurfaces
    {
        dam
        {
            level (6 6);
            patchInfo
            {
            type searchablePlate;
            }
        }
      }
and it looks promising: https://ibb.co/VHGbrNt

To create a faceZone, I then used topoSetDict like this:
Code:
actions
(
    {
        name    dam;
        type      faceZoneSet;
        action    new;
        origin    (4000 3463 4582);
        span      (300 0 90);

        source    searchableSurfaceToFaceZone;
        surfaceType    searchablePlate;
        surfaceName    dam;
    }
);
In an older Youtube tutorial, the createBafflesDict looked like this:
Code:
baffles
{
    dam
    {
        type    faceZone;
        zoneName    dam;
        flip    false;
        patches
        {
            master
            {
                name    dam;
                type    wall;
            }
            slave { ${..master} }
        }
     }
 }
But when I run createBaffles, it gives me an error because I didn't include patchField entries for dam in the files in 0 (like U, alpha.water etc.). What would be the correct way to include my dam baffle there?

Can any of this lead to me simulating a dam breach?^^

Thank you all!

Last edited by Florian Mlehliw; August 11, 2023 at 04:42. Reason: better title
Florian Mlehliw is offline   Reply With Quote

Old   August 10, 2023, 11:35
Question
  #2
New Member
 
Wilhelm Furian
Join Date: Apr 2023
Location: Berlin
Posts: 16
Rep Power: 2
Florian Mlehliw is on a distinguished road
I've looked a lot at activeBaffleVelocity, because that seems to be a good way to "move" my dam baffle.
According to the OpenFOAM guide, I should define a velocity boundary condition for my baffle. It could look something like this:
Code:
dam
     {
         type            activeBaffleVelocity;
         p               p;
         cyclicPatch     cyclic1;
         orientation     1;
         openFraction    1;
         openingTime     10.0;
         maxOpenFractionDelta 0.1;
     }
I have a few (very beginner) questions:
In what Dict does this belong? The other boundary conditions are in all the files in the 0 directory, would that be the right place?
Under cyclicPatch, I should put the name of the cyclic patch - would that be "dam" in this case, so it recognizes my baffle?
Florian Mlehliw is offline   Reply With Quote

Reply

Tags
baffles, dam break, porous baffle, snappy hex mesh

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
using toposet for creating porous zone zeinelserfy OpenFOAM Pre-Processing 1 December 17, 2018 01:05
Segmentation Fault Error due to the zero flow in porous jump boundary zypresse FLUENT 0 December 8, 2018 14:13
[snappyHexMesh] Problem in creating a baffle in snappyHexMesh kmallick OpenFOAM Meshing & Mesh Conversion 2 February 10, 2017 00:35
Porous media setup issues in Fluent Bernard Van FLUENT 29 January 26, 2017 04:09
Possible Bug in pimpleFoam (or createPatch) (or fluent3DMeshToFoam) cfdonline2mohsen OpenFOAM 3 October 21, 2013 09:28


All times are GMT -4. The time now is 17:56.