set up a heat source (electronic cooling)

Is it possible to set up a heat source and control the heat source value based on the current and voltage of a component? (The electronic component in a Power converter.)

SolidworksSimulation