Hi,Sir.
I've just read up very carefully your project and attached document.
And reviewed the python package loopfield 1.0.4.
I think that if we know the number of turns and length of every coils, we can consider a coil as a linked loop and calculate the positions of every loop within the coil using these information and given (xi,yi,zi) , theta and phi.
Please discuss more details in chat.
Thanks.