Computer modeling methods for neurons