|
[Sponsors] |
August 10, 2023, 08:28 |
Creating correct patchField entries for porous baffle
|
#1 |
New Member
Wilhelm Furian
Join Date: Apr 2023
Location: Berlin
Posts: 16
Rep Power: 3 |
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; } } } 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; } ); Code:
baffles { dam { type faceZone; zoneName dam; flip false; patches { master { name dam; type wall; } slave { ${..master} } } } } 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 |
|
August 10, 2023, 11:35 |
|
#2 |
New Member
Wilhelm Furian
Join Date: Apr 2023
Location: Berlin
Posts: 16
Rep Power: 3 |
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; } 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? |
|
Tags |
baffles, dam break, porous baffle, snappy hex mesh |
Thread Tools | Search this Thread |
Display Modes | |
|
|
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 |