Current dependent particle radius

Is there any example python function for current dependent particle radius?

What will be the input to the function?