Fatal error in function SurfaceNormal: Unsupported surface type 12

Report all good and bad behavior here
Post Reply
KHK
Posts: 21
Joined: Fri Nov 06, 2020 6:04 pm
Security question 1: No
Security question 2: 7

Fatal error in function SurfaceNormal: Unsupported surface type 12

Post by KHK » Fri Sep 24, 2021 11:17 am

What does this error mean?

It appears when I insert the following into my deck:

Code: Select all

% --- Weight window generation

wwgen 1      % wwgen identifier
1E-9 10000          % convergence criteria
3 -1         % Global variance reduction
1            % Cartesian mesh
-456.5 456.5 51  % x
-456.5 456.5 10  % y
-456.5 456.5 10  % z

% --- Generation of Adaptive mesh and iterations

wwin 1
wi 1 3       % 3 iterations using the same mesh
1 1.0
1 1.0
1 1.0

Ana Jambrina
Posts: 691
Joined: Tue May 26, 2020 5:32 pm
Security question 1: No
Security question 2: 7

Re: Fatal error in function SurfaceNormal: Unsupported surface type 12

Post by Ana Jambrina » Fri Sep 24, 2021 11:50 am

Routine 'surfacenormal.c' evaluates the normal vector for a given surface at (x,y,z). Currently, it doesn't include all surfaces available in Serpent (for multiple reasons). Surface type 12 corresponds with the 'CUBE' type definition.
Meaning, you have a surface defined as a 'CUBE' type and, Serpent can't calculate the normal vector for the given surface, e.g., in super-imposed detectors (not necessarily physical ones), to evaluate whether the surface is or isn't crossed during the particle(s) tracking.

Note: it might be possible to include additional regular surfaces.
- Ana

KHK
Posts: 21
Joined: Fri Nov 06, 2020 6:04 pm
Security question 1: No
Security question 2: 7

Re: Fatal error in function SurfaceNormal: Unsupported surface type 12

Post by KHK » Fri Sep 24, 2021 2:04 pm

OK, so if I replace the cubes with cuboids, I should be good?

Ana Jambrina
Posts: 691
Joined: Tue May 26, 2020 5:32 pm
Security question 1: No
Security question 2: 7

Re: Fatal error in function SurfaceNormal: Unsupported surface type 12

Post by Ana Jambrina » Fri Sep 24, 2021 2:17 pm

If the input/calculation triggers that error, the 'CUBOID' surface type (15) might not work either. - Which Serpent version are you running?
Note: you can take a look at the routine 'surfacenormal.c' and check the surface's types where the normal vector is evaluated.
- Ana

Post Reply