Define variable cooling power by temperature

Hey, i want to define a variable heat flux to a surface or Volume that is temperature dependent. I asked about this a while ago already and was given the info that i would have to write a subroutine. Since then i’ve managed to recompile the basic calculix and Prepomax and have found the calculix documentation and the dflux.f subroutine which i think is the one i need?
But i don’t really understand what my subroutine would need to look like?
ideally i would like to be able to define a temperature/heat flux table and assign the flux to one volume in my model.
are there any tutorials where i can see how to write a custom subroutine? i could only find a few where a keyword is used but none regarding the actual subroutine.
Or did somebody maybe even do something similar and could send me his subroutine so i have a refrence for what i need.

thanks a lot for the help

It would be better to ask on the CalculiX forum (https://calculix.discourse.group/) since it’s strictly solver-related and there should be no need to modify anything in PrePoMax if you recompile CalculiX with a custom subroutine. Then you just modify the heat flux label to user the subroutine.

makes sense, i’ll ask there thanks :slight_smile: