Free-shape modeling and optimization for straight channel of cold plate involving passage pattern, cross-section, and twist of channel