CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   SU2 (https://www.cfd-online.com/Forums/su2/)
-   -   write bc data and read it for other simulation (https://www.cfd-online.com/Forums/su2/235919-write-bc-data-read-other-simulation.html)

jdp810 May 5, 2021 10:05

write bc data and read it for other simulation
 
Hi all,

I'm trying to do an external/internal flow simulation of an object that has holes so air goes into those holes and exit through other holes of the object. I've tried to simulate it and always diverged, so I've split the problem between external flow problem and internal flow problem. These simulations are incompressible RANS sims.

For the internal flow simulation, the holes where air goes in are treated as velocity inlets (giving temperature, velocity magnitude and flow direction) and the outlet holes are treated as pressure outlets (gauge pressure). For the first simulation, I'm using a random reasonable velocity as inlet.

My idea is to get the velocities that I get in the outlets as a result of the internal flow simulation and apply this velocity with velocity inlet boundary conditions to the external flow simulation.

In this external flow simulation, the holes where the air goes in will be treated as outflow with a static pressure obtained in the internal flow simulation. Then, I will get the velocity that I get from the result of the external simulation to later feed the velocity inlet in the next iteration of internal flow simulation.

My question now is, how can I feed the velocities profiles of the pressure outlets of one simulation to the velocity inlets of the next simulation? (same with pressures from inlet velocities to pressure outlets)

I'm not sure if I explained myself clearly

Thanks,
Jose

bigfootedrockmidget May 8, 2021 17:04

You first run simulation 1, then save the resulting flow variables at the outlet to a file using for instance paraview (just load the vtu file, slice at the outlet and save the data). You then rewrite this output file (with python for instance if you are using paraview) so SU2 can use it as an inlet.dat boundary condition file for simulation 2.


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