CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (https://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   OF11: how to map values at cyclic patch? (https://www.cfd-online.com/Forums/openfoam-pre-processing/251541-of11-how-map-values-cyclic-patch.html)

STK August 24, 2023 02:13

OF11: how to map values at cyclic patch?
 
Hello foamer.

I'm trying to simulate internal face act like closed wall at certain time while act like open channel (cyclic) at different time.

First, I tried activeBaffleVelocity boundary condition, following Marpole's method(modifying boundary files to introduce baffle and wall shared identical faces.). However 1e-6 hard-cap in both closeness and openness cannot gives air-tight baffle, which is required in my case. Since activeBaffleVelocity boundary condition works as reducing superficial area Sf in calculation, removing hard cap might be not a good idea (which can introduce div by 0 err).

Then, I follow the method miotto did in 2020, where boundary types and conditions are changed between simulation, using utilities changeDictionary and foamDictionary.

From wall to cyclic is OK, but when I tried to comeback wall from cyclic, I faced with problem. Since cyclic BC doesn't require value entry at all.

However, when I comeback from cyclic to wall, I have no values to assign in new wall boundary condition. Thus I assign arbitrary uniform values in attached file. Of course, these values are different from values at baffles thus it introduce unwanted disturbs in domain.

Now I need 2 things to do
  1. Get values at cyclic boundary at certain time in nonunifom List
  2. Assign these nonuniform value through changeDictionary or foamDictionary
Does anybody have an idea how I can do these things?


All times are GMT -4. The time now is 16:49.