## Pad surface disappears if angle 270

Old bugs, solved problems and other topics that are no longer relevant are moved here
Andrei Fokau
Posts: 77
Joined: Thu Mar 25, 2010 12:25 am
Security question 2: 0
Location: KTH, Stockholm, Sweden
Contact:

### Pad surface disappears if angle 270

Hi, Jaakko!
I have found that if one of the two angles of pad surface is 270 degrees, then the surface disappears from the geometry. Here is an example illustrating the problem:

Code: Select all

``````% pads with 270 degrees
cell 1 0 inpad  -1 -10
cell 2 0 inpad  -2 -10
cell 3 0 inpad  -3 -10
cell 4 0 inpad  -4 -10
cell 5 0 inpad  -5 -10
cell 6 0 inpad  -6 -10
% other cells
cell 10 0 outpad  1 2 3 4 5 6 -10
cell 20 0 outside 10
% with 270
surf 1 pad 0 0 10 15   90 270
surf 2 pad 0 0 10 15      270 90
% almost 270
surf 3 pad 31 0 10 15   90 270.000001
surf 4 pad 31 0 10 15      269.999999 90
% other
surf 5 pad 0 31 10 15   0 180
surf 6 pad 0 31 10 15   180 0

surf 10 sph 0 0 0 100

plot 3 600 600 10 -20 50 -20 50

1001.03c 1

1001.03c 1``````
I have attached the PNG image generated. A test run of my original input shows that the pads really disappear.
Attachments
pad_test_geom1.png (8.06 KiB) Viewed 7532 times
KTH Reactor Physics (Stockholm, Sweden) neutron.kth.se

Jaakko Leppänen
Posts: 2446
Joined: Thu Mar 18, 2010 10:43 pm
Security question 2: 0
Location: Espoo, Finland
Contact:

### Re: Pad surface disappears if angle 270

Andrei,

Go to testsurface.c, and change lines 115 and 136 from

if (((fabs(alpha) > 90) && (fabs(alpha) < 270)))

to

if (((fabs(alpha) > 90) && (fabs(alpha) <= 270)))

Does this solve your problem, or do you get more disappearing regions with some other angles? Can you run the geometry without errors (not just plot)?
- Jaakko

Andrei Fokau
Posts: 77
Joined: Thu Mar 25, 2010 12:25 am
Security question 2: 0
Location: KTH, Stockholm, Sweden
Contact:

### Re: Pad surface disappears if angle 270

Jaakko,

Yes, the issue is solved now.
So far it was the only case when objects were disappearing.
Attachments
The first pad is now filled with the material
test_pad270_geom1.png (3.34 KiB) Viewed 7509 times
KTH Reactor Physics (Stockholm, Sweden) neutron.kth.se

Jaakko Leppänen