1 |
|
|
2 |
* |
* |
3 |
* $Id: gpspev.F,v 3.2 2005/06/21 02:42:27 cafagna Exp $ |
* $Id: gpspev.F,v 3.5 2005/12/13 10:31:29 pam-ba Exp $ |
4 |
* |
* |
5 |
* $Log: gpspev.F,v $ |
* $Log: gpspev.F,v $ |
6 |
* Revision 3.2 2005/06/21 02:42:27 cafagna |
* Revision 3.5 2005/12/13 10:31:29 pam-ba |
7 |
* Major modification to the geometry and to the random number chain |
* added a new volume, TPGI, in the spectrometer |
8 |
* |
* |
9 |
* Revision 3.1.1.1 2002/07/11 16:02:14 cafagna |
* Revision 3.4 2005/12/05 12:15:21 pam-ba |
10 |
* First GPAMELA release on CVS |
* new spectrometer geometry and internal magnetic field |
11 |
* |
* |
12 |
* |
* Revision 3.3 2005/07/25 11:53:21 cafagna |
13 |
*CMZ : 2.01/00 05/04/2000 14.35.18 by Marialuigia Ambriola |
* Several updates. See history for details |
14 |
*CMZ : 2.00/00 03/03/2000 15.39.06 by Francesco Cafagna |
* |
15 |
*CMZ : 1.02/00 07/03/97 14.48.41 by Francesco Cafagna |
* Revision 3.2 2005/06/21 02:42:27 cafagna |
16 |
*CMZ : 1.00/02 06/02/96 17.34.50 by Francesco Cafagna |
* Major modification to the geometry and to the random number chain |
17 |
*-- Author : Francesco Cafagna 09/12/95 |
* |
18 |
SUBROUTINE GPSPEV |
* Revision 3.1.1.1 2002/07/11 16:02:14 cafagna |
19 |
************************************************************************ |
* First GPAMELA release on CVS |
20 |
* * |
* |
21 |
* Volumes definition for the silicon tracking system and magnet * |
* |
22 |
* Called by: GPGEM * |
*CMZ : 2.01/00 05/04/2000 14.35.18 by Marialuigia Ambriola |
23 |
* Author: Francesco Cafagna, 05/12/95 13.39.41 * |
*CMZ : 2.00/00 03/03/2000 15.39.06 by Francesco Cafagna |
24 |
* * |
*CMZ : 1.02/00 07/03/97 14.48.41 by Francesco Cafagna |
25 |
************************************************************************ |
*CMZ : 1.00/02 06/02/96 17.34.50 by Francesco Cafagna |
26 |
#include "gpgeo.inc" |
*-- Author : Francesco Cafagna 09/12/95 |
27 |
#include "gpmed.inc" |
SUBROUTINE GPSPEV |
28 |
* |
************************************************************************ |
29 |
INTEGER IROT,IVOLU,N,NMED,NUM |
* * |
30 |
REAL X,Y,Z |
* Volumes definition for the silicon tracking system and magnet * |
31 |
* |
* Called by: GPGEM * |
32 |
* Define the SPEB volume |
* Author: Francesco Cafagna, 05/12/95 13.39.41 * |
33 |
* |
* * |
34 |
NMED= MN2 |
************************************************************************ |
35 |
CALL GSVOLU('SPEB','BOX ',NMED,SPEB, 3,IVOLU) |
#include "gpgeo.inc" |
36 |
* |
#include "gpmed.inc" |
37 |
* Define the MGFR volume |
* |
38 |
* |
INTEGER IROT,IVOLU,N,NMED,NUM |
39 |
NMED= MAL |
REAL X,Y,Z |
40 |
CALL GSVOLU('MGFR','BOX ',NMED,MGFR, 3,IVOLU) |
* |
41 |
* |
* Define the SPEB volume |
42 |
* Define the MGPL volume |
* |
43 |
* |
NMED= MN2 |
44 |
NMED= MMAG |
CALL GSVOLU('SPEB','BOX ',NMED,SPEB, 3,IVOLU) |
45 |
CALL GSVOLU('MGPL','BOX ',NMED,MGPL, 3,IVOLU) |
* |
46 |
* |
* Define the MGFR volume |
47 |
* Define the MGPI volume |
* |
48 |
* |
NMED= MAL |
49 |
NMED= MN2 |
CALL GSVOLU('MGFR','BOX ',NMED,MGFR, 3,IVOLU) |
50 |
CALL GSVOLU('MGPI','BOX ',NMED,MGPI, 3,IVOLU) |
* |
51 |
* |
* Define the MGPL volume |
52 |
* Define the TRPB volume |
* |
53 |
* |
NMED= MMAG |
54 |
NMED= MAL |
CALL GSVOLU('MGPL','BOX ',NMED,MGPL, 3,IVOLU) |
55 |
CALL GSVOLU('TRPB','BOX ',NMED,TRPB, 3,IVOLU) |
* |
56 |
***** |
* Define the MGPI volume |
57 |
cC ml 20/04/05: |
* |
58 |
* |
NMED= MN2 |
59 |
cc* Define the TRPL volume |
CALL GSVOLU('MGPI','BOX ',NMED,MGPI, 3,IVOLU) |
60 |
* Define the TPAS and TPAI volume |
* |
61 |
* |
* Define the TRPB volume |
62 |
NMED= MN2 |
* |
63 |
CC CALL GSVOLU('TRPL','BOX ',NMED,TRPL, 3,IVOLU) |
NMED= MAL |
64 |
CALL GSVOLU('TPAS','BOX ',NMED,TPAS, 3,IVOLU) |
CALL GSVOLU('TRPB','BOX ',NMED,TRPB, 3,IVOLU) |
65 |
NMED= MAL |
***** |
66 |
CALL GSVOLU('TPAI','BOX ',NMED,TPAI, 3,IVOLU) |
cC ml 20/04/05: |
67 |
CC end ml. |
* |
68 |
**************** |
cc* Define the TRPL volume |
69 |
* |
* Define the TPAS and TPAI volume |
70 |
* Define the TRSL volume |
* |
71 |
* |
NMED= MN2 |
72 |
c ml: 26/11/04: |
CC CALL GSVOLU('TRPL','BOX ',NMED,TRPL, 3,IVOLU) |
73 |
c NMED= MN2 |
CALL GSVOLU('TPAS','BOX ',NMED,TPAS, 3,IVOLU) |
74 |
NMED=MSIT |
NMED= MAL |
75 |
CALL GSVOLU('TRSL','BOX ',NMED,TRSL, 3,IVOLU) |
CALL GSVOLU('TPAI','BOX ',NMED,TPAI, 3,IVOLU) |
76 |
* |
CC end ml. |
77 |
* Define the THBP volume |
**************** |
78 |
* |
* |
79 |
NMED=MG10C |
* Define the TRSL volume |
80 |
CALL GSVOLU('THBP','BOX ',NMED,THBP, 3,IVOLU) |
* |
81 |
C end ml. |
c ml: 26/11/04: |
82 |
* |
c NMED= MN2 |
83 |
* Define the TSPA volume |
NMED=MSIT |
84 |
* |
CALL GSVOLU('TRSL','BOX ',NMED,TRSL, 3,IVOLU) |
85 |
NMED= MSIT |
* |
86 |
CALL GSVOLU('TSPA','BOX ',NMED,TSPA, 3,IVOLU) |
* Define the THBP volume |
87 |
* |
* |
88 |
* Define the TRCP volume |
NMED=MG10C |
89 |
* |
CALL GSVOLU('THBP','BOX ',NMED,THBP, 3,IVOLU) |
90 |
NMED= MCF |
C end ml. |
91 |
CALL GSVOLU('TRCP','BOX ',NMED,TRCP, 3,IVOLU) |
* |
92 |
* |
* Define the TSPA volume |
93 |
* Positioning volume TSPA into the mother TRSL |
* |
94 |
* |
NMED= MSIT |
95 |
N= 1 |
CALL GSVOLU('TSPA','BOX ',NMED,TSPA, 3,IVOLU) |
96 |
X= 0. |
* |
97 |
c ml: 26/11/66: |
* Define the TRCP volume |
98 |
c Y= TRSL(2) - TSPA(2) |
* |
99 |
C # Y=+TRSL(2)/2 |
NMED= MCF |
100 |
Y= 0. |
CALL GSVOLU('TRCP','BOX ',NMED,TRCP, 3,IVOLU) |
101 |
Z= 0. |
* |
102 |
CALL GSPOS('TSPA',N,'TRSL',X,Y,Z,0,'ONLY') |
* Define the TBAL volume |
103 |
C # N= 2 |
* |
104 |
C # C Y= Y - 2.*TSPA(2) |
NMED= MAL |
105 |
C # Y=-TRSL(2)/2 |
CALL GSVOLU('TBAL','BOX ',NMED,TBAL, 3,IVOLU) |
106 |
C # CALL GSPOS('TSPA',N,'TRSL',X,Y,Z,0,'ONLY') |
* |
107 |
c ml: 26/11/04: |
* Define the MGPA volume |
108 |
* |
* |
109 |
c* Positioning volume TRCP into the mother TRSL |
NMED= MAL |
110 |
CC ml 20/04/05: |
CALL GSVOLU('MGPA','BOX ',NMED,MGPA, 3,IVOLU) |
111 |
CC* Positioning volume TRCP into mother TRPL |
* |
112 |
* Positioning volume TRCP into mother TRPB |
* Define the TPGA volume |
113 |
* |
* |
114 |
c N= 1 |
NMED= MN2 |
115 |
CC ml 20/04/05: |
CALL GSVOLU('TPGA','BOX ',NMED,TPGA, 3,IVOLU) |
116 |
cc Z= 0. |
* |
117 |
cc Y= 0. |
* Define the TPGI volume |
118 |
C # Caf mod on 19 Jul 2005 all volumes are placed inside the TPAS one |
* |
119 |
C # Z=-TRPB(3)+0.11+TRCP(3) |
NMED= MN2 |
120 |
C # Y=-TRPB(2)+1.5-0.225+TRCP(2) |
CALL GSVOLU('TPGI','BOX ',NMED,TPGI, 3,IVOLU) |
121 |
CC end ml. |
* |
122 |
Z=-0.005 |
* Define the TPGU volume |
123 |
y=-0.225-TPAS(2)+TRCP(2) |
* |
124 |
C # end CAF mod |
NMED= MN2 |
125 |
DO I=1,4 |
CALL GSVOLU('TPGU','BOX ',NMED,TPGU, 3,IVOLU) |
126 |
CC ml 20/04/05: |
* |
127 |
CC X=-TRPL(1)+(2*I-1)*TRCP(1)+2*(I-1)*TRSL(1) |
* Define the TPGD volume |
128 |
C # Caf mod on 19 Jul 2005 all volumes are placed inside the TPAS one |
* |
129 |
C # X=-TRPB(1)+2.29+(2*I-1)*TRCP(1)+2*(I-1)*TRSL(1) |
NMED= MN2 |
130 |
X=-TPAS(1)+(2*I-1)*TRCP(1)+2*(I-1)*TRSL(1) |
CALL GSVOLU('TPGD','BOX ',NMED,TPGD, 3,IVOLU) |
131 |
CC end ml |
|
132 |
c CALL GSPOS('TRCP',I,'TRPL',X,Y,Z,0,'ONLY') |
* |
133 |
C # CALL GSPOS('TRCP',I,'TRPB',X,Y,Z,0,'ONLY') |
* Positioning volume TSPA into the mother TRSL |
134 |
CALL GSPOS('TRCP',I,'TPAS',X,Y,Z,0,'ONLY') |
* |
135 |
C # end CAF mod |
N= 1 |
136 |
ENDDO |
X= 0. |
137 |
c X= -TRSL(1) + TRCP(1) |
Y= 0. |
138 |
c CALL GSPOS('TRCP',N,'TRSL',X,Y,Z,0,'ONLY') |
Z= 0. |
139 |
C N= 2 |
CALL GSPOS('TSPA',N,'TRSL',X,Y,Z,0,'ONLY') |
140 |
C X= -X |
C # N= 2 |
141 |
C CALL GSPOS('TRCP',N,'TRSL',X,Y,Z,0,'ONLY') |
C # C Y= Y - 2.*TSPA(2) |
142 |
***** |
C # Y=-TRSL(2)/2 |
143 |
cc ml 20/04/05: |
C # CALL GSPOS('TSPA',N,'TRSL',X,Y,Z,0,'ONLY') |
144 |
* |
c ml: 26/11/04: |
145 |
*** Positioning volume TRSL into the mother TRPL |
* Positioning volume TRCP into mother TPAS |
146 |
* Positioning volume TRSL into the mother TRPB |
C # Caf mod on 19 Jul 2005 all volumes are placed inside the TPAS one |
147 |
* |
C # Z=-TRPB(3)+0.11+TRCP(3) |
148 |
c ml: 26/11/04: |
C # Y=-TRPB(2)+1.5-0.225+TRCP(2) |
149 |
C Y= 0. |
CC end ml. |
150 |
cc Y=THBP(2) |
c Z=-TRPB(3)+2*TPAI(3)+TRCP(3) |
151 |
C # Caf mod on 19 Jul 2005 all volumes are placed inside the TPAS one |
Z=TRPB(3)-2*TPAI(3)-TRCP(3) |
152 |
C # Y=-TRPB(2)+1.5+2*THBP(2)+TRSL(2) |
y=-0.225-TPAS(2)+TRCP(2) |
153 |
C Y=2.75 |
C # end CAF mod |
154 |
CC Z= 0. |
TPASSPACE=TPAS(1)-(3*TRSL(1)+4*TRCP(1)+3*XGLUE) |
155 |
C # Z=-TRPB(3)+0.11+TRCP(3) |
DO I=1,4 |
156 |
Z=-0.005 |
CC ml 20/04/05: |
157 |
DO I=1, NTRSL |
CC X=-TRPL(1)+(2*I-1)*TRCP(1)+2*(I-1)*TRSL(1) |
158 |
X=-TPAS(1)+2*(MOD(I-1,3)+1)*TRCP(1)+ |
C # Caf mod on 19 Jul 2005 all volumes are placed inside the TPAS one |
159 |
+ (2*(MOD(I-1,3)+1)-1)*TRSL(1) |
C # X=-TRPB(1)+2.29+(2*I-1)*TRCP(1)+2*(I-1)*TRSL(1) |
160 |
IF(I.LE.3) THEN |
c ml: 19/9/05: introducing the glue between TRCP and the silicon ladders. |
161 |
Y=TPAS(2)-TRSL(2) |
c for now the glue is a space of nitrogen of 0.015 mm |
162 |
ELSE |
c X=-TPAS(1)+(2*I-1)*TRCP(1)+2*(I-1)*TRSL(1) |
163 |
Y=TPAS(2)-3*TRSL(2) |
C Ml. 15/12/05: introducing a space (along x) between the inner part of the |
164 |
ENDIF |
c aluminum frame and respectively the first and the last carbon fiber barrel. |
165 |
CALL GSPOS('TRSL',I,'TPAS',X,Y,Z,0,'ONLY') |
c It is has been done increasing the dimension of TPAS along x: |
166 |
ENDDO |
C X=-TPAS(1)+2*(I-1)*XGLUE+(2*I-1)*TRCP(1)+2*(I-1)*TRSL(1) |
167 |
C # end CAF mod |
X=-TPAS(1)+TPASSPACE+2*(I-1)*XGLUE+(2*I-1)*TRCP(1)+ |
168 |
********** |
+ 2*(I-1)*TRSL(1) |
169 |
cc ml: 20/04/05 |
CC end ml |
170 |
* |
CALL GSPOS('TRCP',I,'TPAS',X,Y,Z,0,'ONLY') |
171 |
********* Positioning volume THBP into the mother TRPL |
C # end CAF mod |
172 |
* Positioning volume THBP into the mother TRPB |
ENDDO |
173 |
* |
cc ml 20/04/05: |
174 |
cc Y=-TRSL(2) |
* Positioning volume TRSL into the mother TPAS |
175 |
C # Caf mod on 19 Jul 2005 all volumes are placed inside the TPAS one |
C # Caf mod on 19 Jul 2005 all volumes are placed inside the TPAS one |
176 |
C # Y=-TRPB(2)+1.5+THBP(2) |
C # Y=-TRPB(2)+1.5+2*THBP(2)+TRSL(2) |
177 |
C # cc Z= 0. |
C Y=2.75 |
178 |
C # Z=-TRPB(3)+0.11+TRCP(3) |
CC Z= 0. |
179 |
Y=-TPAS(2)+THBP(2) |
C Z=-0.005 |
180 |
Z=-0.005 |
c Z=-TRPB(3)+2*TPAI(3)+TRCP(3) |
181 |
DO I=1, NTHBP |
Z=TRPB(3)-2*TPAI(3)-TRCP(3) |
182 |
CC X= -TRPL(1) + 2*I*TRCP(1)+(2*I-1)*THBP(1) |
DO I=1, NTRSL |
183 |
C # X=-TRPB(1)+2.29+2*I*TRCP(1)+(2*I-1)*THBP(1) |
c ml: 20/9/05 introducing the glue between TRCP and the silicon ladders. |
184 |
X=-TPAS(1)+2*I*TRCP(1)+(2*I-1)*THBP(1) |
c X=-TPAS(1)+2*(MOD(I-1,3)+1)*TRCP(1)+ |
185 |
cc CALL GSPOS('THBP',I,'TRPL',X,Y,Z,0,'ONLY') |
c + (2*(MOD(I-1,3)+1)-1)*TRSL(1) |
186 |
C # CALL GSPOS('THBP',I,'TRPB',X,Y,Z,0,'ONLY') |
X=-TPAS(1)+2*(MOD(I-1,3)+1)*TRCP(1)+ |
187 |
CALL GSPOS('THBP',I,'TPAS',X,Y,Z,0,'ONLY') |
+ (2*(MOD(I-1,3)+1)-1)*XGLUE+(2*(MOD(I-1,3)+1)-1)*TRSL(1) |
188 |
ENDDO |
IF(I.LE.3) THEN |
189 |
c end ml. |
C ml: 22/9/05: |
190 |
cc ml: 20/04/05 |
c Y=TPAS(2)-TRSL(2) |
191 |
* |
Y=TPAS(2)-0.1485-TRSL(2) |
192 |
* Positioning volume TPAI into the mother TRPB |
ELSE |
193 |
* |
C Y=TPAS(2)-3*TRSL(2) |
194 |
C # Mod By Caf on 19th Jul 2005 all volumes inside the TPAS |
Y=TPAS(2)-0.1485-XGLUE-3*TRSL(2) |
195 |
X=0 |
ENDIF |
196 |
Y=-TPAS(2)+TPAI(2) |
CALL GSPOS('TRSL',I,'TPAS',X,Y,Z,0,'ONLY') |
197 |
Z=-TPAS(3)+TPAI(3) |
ENDDO |
198 |
C # X=-TRPB(1)+2.29+TPAI(1) |
C # end CAF mod |
199 |
C # Y=-TRPB(2)+1.5+2.5+TPAI(2) |
********** |
200 |
C # Z=-TRPB(3)+TPAI(3) |
cc ml: 20/04/05 |
201 |
CALL GSPOS('TPAI',I,'TPAS',X,Y,Z,0,'ONLY') |
* Positioning volume THBP into the mother TPAS |
202 |
C # end CAF mod |
C # Caf mod on 19 Jul 2005 all volumes are placed inside the TPAS one |
203 |
* |
C # Y=-TRPB(2)+1.5+THBP(2) |
204 |
* Positioning volume TPAS into the mother TRPB |
C # cc Z= 0. |
205 |
* |
C # Z=-TRPB(3)+0.11+TRCP(3) |
206 |
C # Mod By Caf on 15th Jul 2005 |
c ml: 22/9/05: |
207 |
X=0 |
c Y=-TPAS(2)+THBP(2) |
208 |
Y=-TRPB(2)+1.5+TPAS(2) |
Y=-TPAS(2)+0.1485+THBP(2) |
209 |
Z=0 |
C Z=-0.005 |
210 |
C # X=-TRPB(1)+2.29+TPAS(1) |
c Z=-TRPB(3)+2*TPAI(3)+TRCP(3) |
211 |
C # Y=-TRPB(2)+1.5+TPAS(2) |
Z=TRPB(3)-2*TPAI(3)-TRCP(3) |
212 |
C # Z=-TRPB(3)+0.11+2*TRCP(3)+TPAS(3) |
DO I=1, NTHBP |
213 |
CALL GSPOS('TPAS',I,'TRPB',X,Y,Z,0,'ONLY') |
CC X= -TRPL(1) + 2*I*TRCP(1)+(2*I-1)*THBP(1) |
214 |
c end ml. |
C # X=-TRPB(1)+2.29+2*I*TRCP(1)+(2*I-1)*THBP(1) |
215 |
|
c ml: 21/9/05 introducing the glue between the carbon barrel and the silicon |
216 |
* |
c ladders |
217 |
* Positioning volume MGPI into the mother MGPL |
c X=-TPAS(1)+2*I*TRCP(1)+(2*I-1)*THBP(1) |
218 |
* |
X=-TPAS(1)+2*I*TRCP(1)+(2*I-1)*THBP(1)+ |
219 |
N= 1 |
+ (2*(MOD(I-1,3)+1)-1)*XGLUE |
220 |
X= 0. |
CALL GSPOS('THBP',I,'TPAS',X,Y,Z,0,'ONLY') |
221 |
Y= 0. |
ENDDO |
222 |
Z= 0. |
c end ml. |
223 |
CALL GSPOS('MGPI',N,'MGPL',X,Y,Z,0,'ONLY') |
cc ml: 20/04/05 |
224 |
* |
* |
225 |
* Positioning volume MGPL into the mother MGFR |
* Positioning volume TPAI into the mother TPAS |
226 |
* |
* |
227 |
CALL GSPOS('MGPL',N,'MGFR',X,Y,Z,0,'ONLY') |
C # Mod By Caf on 19th Jul 2005 all volumes inside the TPAS |
228 |
C Ml: 20/04/05: |
X=0 |
229 |
c* |
Y=-TPAS(2)+TPAI(2) |
230 |
c* Positioning volume TRPL into the mother TRPB |
c Z=-TPAS(3)+TPAI(3) |
231 |
c* |
Z=TRPB(3)-TPAI(3) |
232 |
c N= 1 |
C # X=-TRPB(1)+2.29+TPAI(1) |
233 |
c Z= 0. |
C # Y=-TRPB(2)+1.5+2.5+TPAI(2) |
234 |
c CALL GSPOS('TRPL',N,'TRPB',X,Y,Z,0,'ONLY') |
C # Z=-TRPB(3)+TPAI(3) |
235 |
c end ml. |
CALL GSPOS('TPAI',I,'TPAS',X,Y,Z,0,'ONLY') |
236 |
* |
C # end CAF mod |
237 |
* Positioning volumes TRPB & MGPL into the mother SPEB |
* |
238 |
* |
* Positioning volume TPAS into the mother TRPB |
239 |
N= 1 |
* |
240 |
X= 0. |
C # Mod By Caf on 15th Jul 2005 |
241 |
Y= SPEB(2) - TRPB(2) |
X=0 |
242 |
Z= SPEB(3) - TRPB(3) |
Y=-TRPB(2)+1.5+TPAS(2) |
243 |
CALL GSPOS('TRPB',N,'SPEB',X,Y,Z,0,'ONLY') |
Z=0 |
244 |
DO I=1, 5 |
C # X=-TRPB(1)+2.29+TPAS(1) |
245 |
X= 0. |
C # Y=-TRPB(2)+1.5+TPAS(2) |
246 |
Y= 0. |
C # Z=-TRPB(3)+0.11+2*TRCP(3)+TPAS(3) |
247 |
Z= Z - TRPB(3) - MGFR(3) |
CALL GSPOS('TPAS',I,'TRPB',X,Y,Z,0,'ONLY') |
248 |
N= I |
c end ml. |
249 |
CALL GSPOS('MGFR',N,'SPEB',X,Y,Z,0,'ONLY') |
* |
250 |
Y= SPEB(2) - TRPB(2) |
* Positioning volume MGPA into the mother MGPL |
251 |
Z= Z - MGFR(3) - TRPB(3) |
* |
252 |
N= (I+1) |
N= 1 |
253 |
IF(I.EQ.5) THEN |
X= 0. |
254 |
CALL GSPOS('TRPB',N,'SPEB',X,Y,Z,10,'ONLY') |
Y= 0. |
255 |
ELSE |
Z= 0. |
256 |
CALL GSPOS('TRPB',N,'SPEB',X,Y,Z,0,'ONLY') |
CALL GSPOS('MGPA',N,'MGPL',X,Y,Z,0,'ONLY') |
257 |
ENDIF |
* |
258 |
ENDDO |
* Positioning volume TPGD into the mother MGFR |
259 |
* |
* |
260 |
RETURN |
X=0. |
261 |
END |
Z=-MGFR(3)+TPGD(3) |
262 |
|
Y=0. |
263 |
|
CALL GSPOS('TPGD',N,'MGFR',X,Y,Z,0,'ONLY') |
264 |
|
* |
265 |
|
<<<<<<< gpspev.F |
266 |
|
* Positioning volume TPGI into the mother MGFR under MGPL |
267 |
|
* |
268 |
|
N=1 |
269 |
|
X=0. |
270 |
|
Z=-MGFR(3)+2*TPGD(3)+TPGI(3) |
271 |
|
Y=0. |
272 |
|
CALL GSPOS('TPGI',N,'MGFR',X,Y,Z,0,'ONLY') |
273 |
|
* |
274 |
|
======= |
275 |
|
* Positioning volume TPGI into the mother MGFR under MGPL |
276 |
|
* |
277 |
|
N=1 |
278 |
|
X=0. |
279 |
|
Z=-MGFR(3)+2*TPGD(3)+TPGI(3) |
280 |
|
Y=0. |
281 |
|
CALL GSPOS('TPGI',N,'MGFR',X,Y,Z,0,'ONLY') |
282 |
|
* |
283 |
|
>>>>>>> 3.5 |
284 |
|
* Positioning volume MGPI into the mother MGPL |
285 |
|
* |
286 |
|
N= 1 |
287 |
|
X= 0. |
288 |
|
Y= 0. |
289 |
|
CC ML 10/11/05: Positioning volume MGPI into the mother MGPA |
290 |
|
Z= 0. |
291 |
|
CALL GSPOS('MGPI',N,'MGPA',X,Y,Z,0,'ONLY') |
292 |
|
C Z= -MGFR(3)+2*TPGD(3)+MGPI(3) |
293 |
|
C CALL GSPOS('MGPI',N,'MGFR',X,Y,Z,0,'ONLY') |
294 |
|
* |
295 |
|
* Positioning volume MGPL into the mother MGFR |
296 |
|
* |
297 |
|
c ml: 10/11/05 |
298 |
|
N=1 |
299 |
|
c Z=-MGFR(3)+MGPL(3) |
300 |
|
Z=-MGFR(3)+2*(TPGD(3)+TPGI(3))+MGPL(3) |
301 |
|
CALL GSPOS('MGPL',N,'MGFR',X,Y,Z,0,'ONLY') |
302 |
|
* |
303 |
|
<<<<<<< gpspev.F |
304 |
|
* Positioning volume TPGI into the mother MGFR above MGPL |
305 |
|
* |
306 |
|
N=2 |
307 |
|
X=0. |
308 |
|
Z=-MGFR(3)+2*(TPGD(3)+TPGI(3)+MGPL(3))+TPGI(3) |
309 |
|
Y=0. |
310 |
|
CALL GSPOS('TPGI',N,'MGFR',X,Y,Z,0,'ONLY') |
311 |
|
* |
312 |
|
======= |
313 |
|
* Positioning volume TPGI into the mother MGFR over MGPL |
314 |
|
* |
315 |
|
N=2 |
316 |
|
X=0. |
317 |
|
Z=-MGFR(3)+2*(TPGD(3)+TPGI(3)+MGPL(3))+TPGI(3) |
318 |
|
Y=0. |
319 |
|
CALL GSPOS('TPGI',N,'MGFR',X,Y,Z,0,'ONLY') |
320 |
|
* |
321 |
|
>>>>>>> 3.5 |
322 |
|
* Positioning volume TPGA into the mother MGFR |
323 |
|
* |
324 |
|
C ML: 10/11/05 |
325 |
|
N=1 |
326 |
|
X=0. |
327 |
|
Y=MGFR(2)-2*(MGFR(2)-TRPB(2))-TPGA(2) |
328 |
|
C Z=-MGFR(3)+2*MGPL(3)+TPGA(3) |
329 |
|
C Z=MGFR(3)-2*TPGU(3)-2*TRPB(3)-TPGA(3) |
330 |
|
Z=-MGFR(3)+2*(TPGD(3)+TPGI(3)+MGPL(3)+TPGI(3))+TPGA(3) |
331 |
|
C Y=-0.75 |
332 |
|
CALL GSPOS('TPGA',N,'MGFR',X,Y,Z,0,'ONLY') |
333 |
|
* |
334 |
|
* Positioning volumes TRPB & MGPL into the mother SPEB |
335 |
|
* |
336 |
|
N= 1 |
337 |
|
X= 0. |
338 |
|
C Y= SPEB(2) - TRPB(2) |
339 |
|
Y= -MGFR(2) + TRPB(2) |
340 |
|
C Z= SPEB(3) - TRPB(3) |
341 |
|
c Z=-MGFR(3)+2*MGPL(3)+2*TPGA(3)+TRPB(3) |
342 |
|
C Z=MGFR(3)-2*TPGU(3)-TRPB(3) |
343 |
|
Z=-MGFR(3)+2*(TPGD(3)+TPGI(3)+MGPL(3)+TPGI(3)+TPGA(3))+TRPB(3) |
344 |
|
C CALL GSPOS('TRPB',N,'SPEB',X,Y,Z,0,'ONLY') |
345 |
|
CALL GSPOS('TRPB',N,'MGFR',X,Y,Z,0,'ONLY') |
346 |
|
c CALL GSPOS('TRPB',N,'MGFR',X,Y,Z,9,'ONLY') |
347 |
|
Z=SPEB(3) |
348 |
|
DO I=1, 5 |
349 |
|
X= 0. |
350 |
|
Y= 0. |
351 |
|
C Z= Z - TRPB(3) - MGFR(3) |
352 |
|
Z=Z-MGFR(3) |
353 |
|
N= I |
354 |
|
CALL GSPOS('MGFR',N,'SPEB',X,Y,Z,0,'ONLY') |
355 |
|
C Y= SPEB(2) - TRPB(2) |
356 |
|
C Z= Z - MGFR(3) - TRPB(3) |
357 |
|
C N= (I+1) |
358 |
|
C IF(I.EQ.5) THEN |
359 |
|
CC CALL GSPOS('TRPB',N,'SPEB',X,Y,Z,10,'ONLY') |
360 |
|
C CALL GSPOS('TRPB',N,'MGFR',X,Y,Z,10,'ONLY') |
361 |
|
C ELSE |
362 |
|
CC CALL GSPOS('TRPB',N,'SPEB',X,Y,Z,0,'ONLY') |
363 |
|
C CALL GSPOS('TRPB',N,'MGFR',X,Y,Z,0,'ONLY') |
364 |
|
C ENDIF |
365 |
|
Z=Z-MGFR(3) |
366 |
|
ENDDO |
367 |
|
N=2 |
368 |
|
X=0. |
369 |
|
Y=MGFR(2) - TRPB(2) |
370 |
|
Z=Z-TRPB(3) |
371 |
|
ZTRPB=Z |
372 |
|
c CALL GSPOS('TRPB',N,'SPEB',X,Y,Z,4,'ONLY') |
373 |
|
CALL GSPOS('TRPB',N,'SPEB',X,Y,Z,10,'ONLY') |
374 |
|
* |
375 |
|
* Positioning volume TBAL into the mother SPEB |
376 |
|
* |
377 |
|
DO I=1,2 |
378 |
|
C DTBAL is the distance along x of the volumes TBAL from the end of TRPB |
379 |
|
DTBAL=3.6 |
380 |
|
N=I |
381 |
|
IF(I.EQ.1) THEN |
382 |
|
X=TRPB(1)-3.6-TBAL(1) |
383 |
|
ELSE |
384 |
|
X=-(TRPB(1)-3.6-TBAL(1)) |
385 |
|
ENDIF |
386 |
|
Y=MGFR(2) - 2*TRPB(2)-TBAL(2) |
387 |
|
Z=ZTRPB |
388 |
|
CALL GSPOS('TBAL',N,'SPEB',X,Y,Z,0,'ONLY') |
389 |
|
ENDDO |
390 |
|
* |
391 |
|
* Positioning volume TPGU into the mother MGFR |
392 |
|
* |
393 |
|
X=0. |
394 |
|
<<<<<<< gpspev.F |
395 |
|
C Z=MGFR(3)-TPGU(3) |
396 |
|
Z=-MGFR(3)+2*(TPGD(3)+TPGI(3)+MGPL(3)+TPGI(3)+TPGA(3)+TRPB(3))+ |
397 |
|
+ TPGU(3) |
398 |
|
======= |
399 |
|
C Z=MGFR(3)-TPGU(3) |
400 |
|
Z=-MGFR(3)+2*(TPGD(3)+TPGI(3)+MGPL(3)+TPGI(3)+TPGA(3)+TRPB(3))+ |
401 |
|
+ TPGU(3) |
402 |
|
>>>>>>> 3.5 |
403 |
|
Y=-MGFR(2)+TRPB(2) |
404 |
|
CALL GSPOS('TPGU',N,'MGFR',X,Y,Z,0,'ONLY') |
405 |
|
* |
406 |
|
RETURN |
407 |
|
END |