detrapmj3
PURPOSE
calculations of losscone angle and detrapping momentum
SYNOPSIS
function [thetabanane,thetaloss,pndetrap,Eseuil,delta] = detrapmj3(zeff,a,B0,R0,BeLi,Ip,ne,rho)
DESCRIPTION
CROSS-REFERENCE INFORMATION
This function calls:
- deltacalmj3 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- fracmircalcmj3 Calcul de la fraction restant dans les miroirs en fonction de l'energie :
- thetaconemj3 calculation of ripple losscone angles
This function is called by:
SOURCE CODE
0001 function [thetabanane,thetaloss,pndetrap,Eseuil,delta] = detrapmj3(zeff,a,B0,R0,BeLi,Ip,ne,rho)
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018 D0 = a^2*(BeLi-0.5)/(2*R0);
0019
0020
0021 delta = deltacalmj3(R0 + a*rho,zeros(size(rho)));
0022
0023
0024 thetaconemj3;
0025
0026
0027
0028 E = [0:1:350];
0029 le = length(E);
0030
0031 for k2=1:le;
0032 F(k2) = fracmircalcmj3(E(k2),delta,ne,zeff,a,R0,B0,NBOB);
0033 end
0034 indF = find(F<=1);
0035 Eseuil = sum(E(indF).*(1-F(indF)))/sum(1-F(indF));
0036
0037
0038
0039 Es = Eseuil;
0040 pndetrap = sqrt((Es/511+1).^2-1);
0041
Community support and wiki are available on Redmine. Last update: 18-Apr-2019.