This page provides several examples of code blocks that may be used to perform energy balance, 1D profiles, etc. in cs_user_extra_operations.
Here is the list of examples dedicated to different physics: