Hello,
The code for SAM's wind model is not available. However, the draft reference manual explains the equations and algorithms. You can download the manual from the performance model documentation page of the SAM website:
/performance
Best regards,
Paul.