MCNP’s trc surface

This category replaces the missing input manual
Post Reply
User avatar
markdehart
Posts: 40
Joined: Fri May 17, 2013 6:10 pm
Security question 1: No
Security question 2: 92
Location: Idaho National Laboratory

MCNP’s trc surface

Post by markdehart » Fri Nov 02, 2018 12:22 am

Has anyone looked at recreating the MCNP truncated cone (trc) macro? I am translating an MCNP model of an experiment and would like to get a direct conversion on surfaces. I’m stumped on the trc surface.

Mark

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

Re: MCNP’s trc surface

Post by Jaakko Leppänen » Fri Nov 02, 2018 11:00 am

If you have a lot of these surfaces, it might be easier to define a new surface type in Serpent. The instructions can be found in usersurf.c. The existing infinite cone is handled in testsurface.c and surfacedistance.c (surface type SURF_CONE). You can copy the equations to usersurf.c and add the truncation planes.
- Jaakko

subterfug3x
Posts: 33
Joined: Thu Oct 04, 2018 7:53 am
Security question 1: No
Security question 2: 96
Location: Tomsk, Russia

Re: MCNP’s trc surface

Post by subterfug3x » Mon Oct 21, 2019 6:07 pm

Faced the same problem. It's not fully clear how to write TRC surface in usersurf.c file. Could you please write the code for TRC surface here?
- Igor

Post Reply