Pad surface disappears if angle 270

Old bugs, solved problems and other topics that are no longer relevant are moved here
Post Reply
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

Post by Andrei Fokau » Fri Jul 16, 2010 3:47 pm

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
% pads with almost 270
cell 3 0 inpad  -3 -10 
cell 4 0 inpad  -4 -10
% pads with anohter angles
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

mat inpad -1
1001.03c 1

mat outpad -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
pad_test_geom1.png (8.06 KiB) Viewed 6140 times
KTH Reactor Physics (Stockholm, Sweden) neutron.kth.se

User avatar
Jaakko Leppänen
Site Admin
Posts: 2054
Joined: Thu Mar 18, 2010 10:43 pm
Security question 2: 0
Location: Espoo, Finland
Contact:

Re: Pad surface disappears if angle 270

Post by Jaakko Leppänen » Thu Jul 22, 2010 2:39 pm

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

Post by Andrei Fokau » Mon Aug 09, 2010 8:02 pm

Jaakko,

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

User avatar
Jaakko Leppänen
Site Admin
Posts: 2054
Joined: Thu Mar 18, 2010 10:43 pm
Security question 2: 0
Location: Espoo, Finland
Contact:

Re: Pad surface disappears if angle 270

Post by Jaakko Leppänen » Thu Sep 09, 2010 10:04 pm

This problem was fixed in update 1.1.13.
- Jaakko

Post Reply