$addsourceworkfunc
This function is to set up the work function of source contact. Just fill in the work function of the metal and this function should be used with the $affinity.
Example
$addsourceworkfunc 4.5
The $addsourceworkfunc setting in GUI interface is here
Press Contact Setting, remember to check both boxes, and fill in the field as needed!