Repository navigation
Add a tutorial on P1 radiation with a python heat source - #236
Open
pragyaangaur wants to merge 2 commits into
Open
pragyaangaur wants to merge 2 commits into
pragyaangaur wants to merge 2 commits into
Conversation
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.
bigfooted
approved these changes
Nov 29, 2026
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.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.