* Tue May 17 13:46:03 EDT 1994 /plas1/h1/mzh/src/test cuprsp.f C GSG jr. changed area to 102 to corespond to RLM MEMO of June 25,1994 C done as literal, did not change anrm SUBROUTINE CUPRSP(V,R) c c Routine to calculate the normalized response of the c main and side sensors of the Voyager instrument. c Normalized response is defined as the cup transparency c times sensitive area for the direction defined by V c devided by the cup transparency times sensitive area c at normal incidence. It is assumed that all modulator c and suppressor voltages are set to zero. c INPUT: c v(3): Plasma bulk speed in S/C coordinates c It will be converted to cup coordinates within this c routine. (V(3) is left unchanged) c OUTPUT: c R(4): The above defined normalized response of the c four Voyager cups. c DIMENSION V(3),R(4),VCP(3),VN(3),TM(9,4),v0(3) LOGICAL FIRST c c TRANSFORMATION MATRIX FROM SC TO CUP COORDINATES FOR ALL 4 CUPS c DATA TM/0.5,0.8137977,0.2961981, -0.8660254,0.4698463,0.1710101, 1 0.,-0.3420201,0.9396926, 2 0.5,-0.8137977,-0.2961981, 0.8660254,0.4698463,0.1710101, *0.,-0.3420201,0.9396926, 3 -1.,0.,0., 0.,-0.9396926,-0.3420201, 0.,-0.3420201,0.9396926, 4 -0.6819984,-0.02552388,-0.7309082, * 0.7313537,-0.02380140,-0.6815829, 0.,-0.9993908,0.03489950/ c c Null vector required by the vector transformation routine c DATA v0 /3*0.0/ c c Unit vector along the cup axis to find response for normal incidence c DATA VN/0.0,0.0,1.0/ DATA FIRST/.TRUE./ c c Normal incidence response needs to be calculated only once c first time around. c IF (.not.FIRST) GO TO 10 c c ANRM is the normal incidence response of the main cups. c It is equal to (1-c)^18*Atot = 67.3676 cm^2 c ANRM=CPRESP(VN,0.,0.,1.,1.,1) c c ANRD is the normal incidence response of the side cup. c It is equal to (1-c)^16*Atotside = 56.2438 cm^2 c ANRD=CPRESP(VN,0.,0.,1.,1.,4) FIRST=.FALSE. WRITE(6,30) ANRM,ANRD 30 FORMAT(1H ,' CUP RESPONSE AT NORMAL INCIDENCE',2F10.2) c 10 CONTINUE c c Loop through the four cups c DO 20 I=1,4 c c Rotate velocity vector to cup coordinates from S/C coordinates c CALL VTRNS(VCP,TM(1,I),V,v0) R(I)=0.0 c c If there is no flow into the cup teave response at zero c IF(VCP(3).EQ.0.) GO TO 20 c c Calculate the response at the actual incidence angle with c the modulator and supressor voltage zero, the charge and c mass of the particle 1. (The value used for charge and mass c is not important because it will be cancelled at normalization) c C IF(I.LE.3) R(I)=CPRESP(VCP,0.,0.,1.,1.,I)/(VCP(3)*ANRM) IF(I.LE.3) R(I)=CPRESP(VCP,0.,0.,1.,1.,I)/(VCP(3)*102.) IF(I.EQ.4) R(I)=CPRESP(VCP,0.,0.,1.,1.,I)/(VCP(3)*ANRD) 20 CONTINUE RETURN END