CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > SU2

write bc data and read it for other simulation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 5, 2021, 10:05
Default write bc data and read it for other simulation
  #1
Member
 
Jose Daniel
Join Date: Jun 2020
Posts: 36
Rep Power: 5
jdp810 is on a distinguished road
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
jdp810 is offline   Reply With Quote

Old   May 8, 2021, 17:04
Default
  #2
Senior Member
 
bigfoot
Join Date: Dec 2011
Location: Netherlands
Posts: 499
Rep Power: 17
bigfootedrockmidget is on a distinguished road
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.
bigfootedrockmidget is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem running in parralel Val OpenFOAM Running, Solving & CFD 1 June 12, 2014 02:47
How to setup a simple OpenFOAM cluster? TommiPLaiho OpenFOAM Installation 3 October 27, 2013 15:15
[Commercial meshers] fluentMeshToFoam multidomain mesh conversion problem Attesz OpenFOAM Meshing & Mesh Conversion 12 May 2, 2013 10:52
Problem in running ICEM grid in Openfoam Tarak OpenFOAM 6 September 9, 2011 17:51
How to read or write case by commands during simulation with Fluent lzgwhy FLUENT 4 April 20, 2011 22:02


All times are GMT -4. The time now is 03:38.