Skip to content

Add a tutorial on P1 radiation with a python heat source - #236

Open
pragyaangaur wants to merge 3 commits into
su2code:developfrom
pragyaangaur:tutorial-p1-radiation-python
Open

pragyaangaur wants to merge 3 commits into
su2code:developfrom
pragyaangaur:tutorial-p1-radiation-python

Conversation

@pragyaangaur

Copy link
Copy Markdown

This adds a multiphysics tutorial on the P1 radiation model and the python wrapper, as suggested in su2code/SU2#3021. A closed air cavity is heated by a rotated elliptical source that is set point by point from python with PYTHON_CUSTOM_SOURCE. The case is run without radiation and with the P1 model at two absorption coefficients. The tutorial explains the P1 options, shows how to set a custom source and read the temperature back in python, and checks the energy balance. Without radiation the conductive heat into the walls matches the source to 0.6 percent, and with radiation the difference shows how much heat leaves by radiation.

The case file is in su2code/Tutorials#90. All numbers in the tutorial come from runs on SU2 develop.

The tutorial heats a closed air cavity with a rotated elliptical source applied through PYTHON_CUSTOM_SOURCE and the python wrapper, and compares runs without radiation and with the P1 model. It checks the energy balance and shows how much heat leaves by radiation. The case file is in the Tutorials repository under multiphysics/P1_radiation_python.
The tutorial now uses the cavity.cfg shipped with the case, drops the run at 10 1/m, and shows the converged results at 1 1/m with TOTAL_HEATFLUX including the radiative wall flux. It states that the absorption coefficient is for demonstration only and explains the 0.6 percent gap between the discrete and the exact source.
@bigfooted

bigfooted commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

thanks, can you add a convergence plot of the residuals as well
edit: and a picture of the setup (with boundary conditions) and mesh

The tutorial now shows the cavity with its boundary conditions, the mesh with the points that get the heat source, and the residual history of both runs. The mesh figure also accounts for the 0.6 percent gap between the discrete and the exact source.
@pragyaangaur

Copy link
Copy Markdown
Author

Added three figures: the setup with the boundary conditions and the heat source (figure 2), the mesh with the points that get the heat source (figure 3), and the residual history of both runs (figure 4). The mesh figure also shows where the 0.6 percent gap at k=0 comes from: 259 points lie inside the ellipse, and their control volumes add up to exactly the 15.808 W/m that both runs report.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants