|
[Sponsors] |
Applying Spatially Varying Temperature on Nozzle Wall in SU2 Simulation |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 3, 2024, 02:46 |
Applying Spatially Varying Temperature on Nozzle Wall in SU2 Simulation
|
#1 |
Member
Sean
Join Date: May 2023
Posts: 53
Rep Power: 3 |
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! |
|
February 3, 2024, 04:34 |
|
#2 |
Senior Member
bigfoot
Join Date: Dec 2011
Location: Netherlands
Posts: 676
Rep Power: 21 |
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 |
|
February 3, 2024, 04:47 |
|
#3 | |
Member
Sean
Join Date: May 2023
Posts: 53
Rep Power: 3 |
Quote:
|
||
February 16, 2024, 12:59 |
Applying Spatially Varying Temperature Profile on Nozzle Wall in SU2
|
#4 | |
Member
Sean
Join Date: May 2023
Posts: 53
Rep Power: 3 |
Quote:
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) 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! |
||
February 17, 2024, 10:34 |
|
#5 |
Senior Member
bigfoot
Join Date: Dec 2011
Location: Netherlands
Posts: 676
Rep Power: 21 |
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) |
|
February 17, 2024, 12:26 |
|
#6 | |
Member
Sean
Join Date: May 2023
Posts: 53
Rep Power: 3 |
Quote:
|
||
March 26, 2024, 06:32 |
|
#7 | |
Member
Sean
Join Date: May 2023
Posts: 53
Rep Power: 3 |
Quote:
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. |
||
|
|
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 |