Separation of variables in the steady heat transfer and fluid dynamics in a cylindrical sector domain