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

Applying Spatially Varying Temperature on Nozzle Wall in SU2 Simulation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 3, 2024, 02:46
Default Applying Spatially Varying Temperature on Nozzle Wall in SU2 Simulation
  #1
Member
 
Sean
Join Date: May 2023
Posts: 53
Rep Power: 3
bgulzar22 is on a distinguished road
Hello CFD community,

I am working on a compressible fluid flow simulation using SU2, and I am currently facing a challenge in applying a spatially varying temperature on the nozzle wall. I initially used the isothermal condition, but now I need to introduce a more realistic temperature distribution along the nozzle wall.

Could someone provide guidance on how to modify the SU2 configuration file to implement a spatially varying temperature profile?
I appreciate any insights or examples that can help me achieve this in SU2. Thank you!
bgulzar22 is offline   Reply With Quote

Old   February 3, 2024, 04:34
Default
  #2
Senior Member
 
bigfoot
Join Date: Dec 2011
Location: Netherlands
Posts: 676
Rep Power: 21
bigfootedrockmidget is on a distinguished road
You can do this with the python wrapper. There are a couple of examples for unsteady spatially changing wall temperature and heat flux in the testcases repository:
https://github.com/su2code/SU2/tree/...ses/py_wrapper
A presentation on the python wrapper:

https://www.youtube.com/watch?v=tEDPWybcrfs
bigfootedrockmidget is offline   Reply With Quote

Old   February 3, 2024, 04:47
Default
  #3
Member
 
Sean
Join Date: May 2023
Posts: 53
Rep Power: 3
bgulzar22 is on a distinguished road
Quote:
Originally Posted by bigfootedrockmidget View Post
You can do this with the python wrapper. There are a couple of examples for unsteady spatially changing wall temperature and heat flux in the testcases repository:
https://github.com/su2code/SU2/tree/...ses/py_wrapper
A presentation on the python wrapper:

https://www.youtube.com/watch?v=tEDPWybcrfs
Thank you for the suggestions. I will look into it and update accordingly.
bgulzar22 is offline   Reply With Quote

Old   February 16, 2024, 12:59
Default Applying Spatially Varying Temperature Profile on Nozzle Wall in SU2
  #4
Member
 
Sean
Join Date: May 2023
Posts: 53
Rep Power: 3
bgulzar22 is on a distinguished road
Quote:
Originally Posted by bigfootedrockmidget View Post
You can do this with the python wrapper. There are a couple of examples for unsteady spatially changing wall temperature and heat flux in the testcases repository:
https://github.com/su2code/SU2/tree/...ses/py_wrapper
A presentation on the python wrapper:

https://www.youtube.com/watch?v=tEDPWybcrfs
I have successfully installed the pywrapper, and now I am seeking assistance on how to apply the temperature profile obtained from an in-house material response code to the SU2 flow simulation.

Here is a brief overview of my current setup:

I am running a steady flow simulation in SU2.

The boundary conditions in my configuration file include an isothermal temperature on the nozzle wall, as follows:

Code:
MARKER_ISOTHERMAL = (WALL, 315)
I obtain the heat flux from the SU2 simulation and use it as input to an in-house material response code, which provides the corresponding temperature distribution on the nozzle wall.
Now, I want to incorporate this spatially varying temperature profile back into the SU2 simulation. Could you please guide me on how to modify the SU2 configuration file or use the Python wrapper to implement this temperature distribution on the nozzle wall?

I would appreciate any insights, examples, or step-by-step instructions that could help me achieve this. Thank you in advance for your assistance!
bgulzar22 is offline   Reply With Quote

Old   February 17, 2024, 10:34
Default
  #5
Senior Member
 
bigfoot
Join Date: Dec 2011
Location: Netherlands
Posts: 676
Rep Power: 21
bigfootedrockmidget is on a distinguished road
There is an example in the directory Testcases/py_wrapper/flatplate_unsteady_CHT, First run this one to see if everything is working for you.


This case is for a time dependent wall temperature. But if you get the coordinates of the vertices:
Code:
MarkerCoords = SU2Driver.MarkerCoordinates(MarkerID)

x = MarkerCoords(iVertex, 0)
y = MarkerCoords(iVertex, 1)


You can use it for spatially varying temperature when you know T(x,y)
bigfootedrockmidget is offline   Reply With Quote

Old   February 17, 2024, 12:26
Default
  #6
Member
 
Sean
Join Date: May 2023
Posts: 53
Rep Power: 3
bgulzar22 is on a distinguished road
Quote:
Originally Posted by bigfootedrockmidget View Post
There is an example in the directory Testcases/py_wrapper/flatplate_unsteady_CHT, First run this one to see if everything is working for you.


This case is for a time dependent wall temperature. But if you get the coordinates of the vertices:
Code:
MarkerCoords = SU2Driver.MarkerCoordinates(MarkerID)

x = MarkerCoords(iVertex, 0)
y = MarkerCoords(iVertex, 1)


You can use it for spatially varying temperature when you know T(x,y)
Thank you bigfoot. Yeah I will try this one and see how I can improve on it. Thank you.
bgulzar22 is offline   Reply With Quote

Old   March 26, 2024, 06:32
Default
  #7
Member
 
Sean
Join Date: May 2023
Posts: 53
Rep Power: 3
bgulzar22 is on a distinguished road
Quote:
Originally Posted by bigfootedrockmidget View Post
There is an example in the directory Testcases/py_wrapper/flatplate_unsteady_CHT, First run this one to see if everything is working for you.


This case is for a time dependent wall temperature. But if you get the coordinates of the vertices:
Code:
MarkerCoords = SU2Driver.MarkerCoordinates(MarkerID)

x = MarkerCoords(iVertex, 0)
y = MarkerCoords(iVertex, 1)


You can use it for spatially varying temperature when you know T(x,y)
Dear bigfoot,

I attempted to implement the approach you recommended, but unfortunately, I am still encountering some issues. I have attached my Python script, as well as the corresponding configuration (cfg) and mesh files for your review. https://drive.google.com/drive/folde...7L?usp=sharing
Could you please take a look at my script and help me identify any errors I may have made?

Your guidance would be greatly appreciated.
bgulzar22 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
[openSmoke] libOpenSMOKE Tobi OpenFOAM Community Contributions 562 January 25, 2023 10:21
A question related to writing expression for (htc)Heat transfer coefficient Hamda CFX 11 April 17, 2020 01:57
Nozzle Simulation temperature Extrapolation Error xuexingyu24 CONVERGE 1 July 17, 2018 13:05
Multiphase flow - incorrect velocity on inlet Mike_Tom CFX 6 September 29, 2016 02:27
Basic Nozzle-Expander Design karmavatar CFX 20 March 20, 2016 09:44


All times are GMT -4. The time now is 14:11.