CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Would solidBodyMotion work here? (https://www.cfd-online.com/Forums/openfoam-solving/251279-would-solidbodymotion-work-here.html)

Florian Mlehliw August 7, 2023 06:35

Would solidBodyMotion work here?
 
Hi everyone!

I want to connect a static mesh (a digital elevation model of a lake) and a dynamic mesh (the dam in front of the lake). I want to gradually lower the dam to simulate a breach using interfoam.

Could I use something like this for the dynamic part?

Code:

dynamicFvMesh solidBodyMotionFvMesh; 
  solidBodyMotionFvMeshCoeffs 
  {       
    cellZone                            lakeDam;       
    solidBodyMotionFunction    linearMotion;       
    linearMotionCoeffs       
    {           
          velocity        (1.0 0.0 0.25);       
      } 
  }

I'm new to OpenFOAM and would be happy about some pointers as to better understand this.

Thanks a lot!

Yann August 8, 2023 11:15

Hello Florian,

You might want to have a look at this, it seems to be pretty close to what you are trying to achieve: https://www.youtube.com/watch?v=DoAwPhJ1nzU

Full case by Nicolás Diego Badano on github, ready to run on v2112: https://github.com/nicolasbadano/WeirWithMovingGate

Cheers,
Yann


All times are GMT -4. The time now is 09:06.