CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   dambreak: dams start flowing at different time (https://www.cfd-online.com/Forums/openfoam/235477-dambreak-dams-start-flowing-different-time.html)

Geb1313 April 16, 2021 04:56

dambreak: dams start flowing at different time
 
Hello Foamers,

I am running a dambreak case using interfoam solver. I have 2 boxes dams, (box1 and box2) set by setFieldsDict. I want to box2 to start flowing after sometime, say after 2 seconds. Is there any easy way to do so?

So far I tried using fvOptions to fix velocity for box2 and managed box2 not to flow. Can I fix velocity for certain cells for only for the first few seconds, say 2 seconds using fvOptions?

The fvOptions I used is:
Code:

  fixedValue
{
    type            vectorFixedValueConstraint;

    selectionMode  cellZone;
    cellZone          zone1;
    fieldValues
    {
      U  (0 0 0);      // I want this work only for the first 2 seconds
    }
}



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