Calling the temperature distribution in user function
Posted: Tue Dec 08, 2020 3:22 am
Hello,
I am working on a radiative heat transfer problem, and it is necessary to define the absorption coefficient around the field. I have noticed that the "cs_user_radiative_transfer.c" file in the example folder, and I am quite confused that the formal parameters of the "cs_user_rad_transfer_absorption" function does not include the temperature.
So I am very eager to find out how to call the temperature of each cell (which I defined in the GUI, thermal option).
In the .C file, it is easy to call the ID and coordinate of each cell by the struct "cs_glob_mesh_quantities" and "cs_glob_mesh", should I consider the similar method to achieve my goal?
And last, the .C file have a step of reading from file, declaring arrays with 78 dimensions, this makes me confused too.
Thanks for your generous help.
I am working on a radiative heat transfer problem, and it is necessary to define the absorption coefficient around the field. I have noticed that the "cs_user_radiative_transfer.c" file in the example folder, and I am quite confused that the formal parameters of the "cs_user_rad_transfer_absorption" function does not include the temperature.
So I am very eager to find out how to call the temperature of each cell (which I defined in the GUI, thermal option).
In the .C file, it is easy to call the ID and coordinate of each cell by the struct "cs_glob_mesh_quantities" and "cs_glob_mesh", should I consider the similar method to achieve my goal?
And last, the .C file have a step of reading from file, declaring arrays with 78 dimensions, this makes me confused too.
Thanks for your generous help.