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

Time varying Inlet BC in SU2

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 2, 2024, 07:58
Post Time varying Inlet BC in SU2
  #1
New Member
 
Alessandro
Join Date: Dec 2023
Posts: 1
Rep Power: 0
argix is on a distinguished road
Hi everyone,
I am studying a case of jet impingement on a wall with a time-varying flow at the inlet. I have used compressible RANS and TOTAL_CONDITIONS as inlet BC. Specifically, I have set a time-varying stagnation pressure at inlet.

To do this, I used this Python script http://github.com/su2code/SU2/tree/m...e_unsteady_CHT, modifying some commands to suit my problem. I should mention that I do not use Python frequently, so there are likely some errors. Indeed, I checked the documentation and noticed that the command I used to vary the pressure at the inlet (SetMarkerCustomPtotal) is not listed.

However, when I run the simulation, it seems to work quite well. Unfortunately, when examining the pressure field, it appears that the time-varying boundary conditions are applied on the walls with no-slip conditions (represented by the MARKER_ISOTHERMAL command) and not at the inlet as I want.

Could you please tell me what changes I need to make in the Python script to correctly set up the problem? For completeness, I am attaching the script I modified, the configuration file, and a video of the pressure field.
https://github.com/user-attachments/...unsteady_5.zip

Thank you in advance for your help.

Best Regards.
argix is offline   Reply With Quote

Old   June 2, 2024, 19:31
Default
  #2
Senior Member
 
bigfoot
Join Date: Dec 2011
Location: Netherlands
Posts: 657
Rep Power: 19
bigfootedrockmidget is on a distinguished road
We do not have setmarkercustomPTotal, so this will not work as intended.



We currently do not even have python customizable inlets it seems. What you could do is have a look at the implementation of SetMarkerCustomTemperature and SetCustomBoundaryTemperature and implement something similar in the inlet boundary condition in the euler solver CEulerSolver::BC_Inlet




OK, I see you also posted this on github, and pcarruscag is on the case, so it should be implemented in 5,4,3,2,...
bigfootedrockmidget is offline   Reply With Quote

Reply

Tags
custom bc, su2, time varying inlet bc.


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
[OLAFLOW] The OLAFLOW Thread Phicau OpenFOAM Community Contributions 459 September 12, 2024 12:47
How to generate Time varying Inlet velocity with a particular profile faiazk OpenFOAM Pre-Processing 15 June 3, 2021 07:16
Setting up Lid driven Cavity Benchmark with 1M cells for multiple cores puneet336 OpenFOAM Running, Solving & CFD 11 April 7, 2019 01:58
Inconsistencies in reading .dat file during run time in new injection model Scram_1 OpenFOAM 0 March 23, 2018 23:29
pimpleDyMFoam computation randomly stops babapeti OpenFOAM Running, Solving & CFD 5 January 24, 2018 06:28


All times are GMT -4. The time now is 01:26.