[fluka-discuss]: direction cosines of the normal to the surface

From: Silvia Cipiccia <silvia.cipiccia_at_strath.ac.uk>
Date: Tue, 17 Dec 2013 09:20:16 +0000

Hello,

I'm quite new in FLUKA and I apologize in advance if the my problem results to be trivial.
I am trying to implement x-ray refraction using fluka. I've managed doing it implementing using MAT-PROP to activate USRMED for simple shapes (as a sphere or a cylinder) calculating by myself in USRMED subroutine the normal to the surface at the crossing point.
I would like to implement it for more complex shapes and for this it would be good to have the direction cosines of the normal to the surface at the boundary crossing point directly from FLUKA.
If I understood properly the direction cosines of the normal to the surface should be available including the common (FLKSTK).
What I did to test it is creating a very simple subrouting only to read the direction cosines. I included (FLKSTK) in my USRMED and try to read TXNOR(NPFLKA),TYNOR(NPFLKA),TZNOR(NPFLKA) when crossing the boundary between two different regions. However, the output I get is always TXNOR(NPFLKA)=-2 ,TYNOR(NPFLKA)=0.,TZNOR(NPFLKA)=0.
Did I mistunderstand the meaning of TXNOR(NPFLKA),TYNOR(NPFLKA),TZNOR(NPFLKA) ?
I believe I'm doing something very wrong but I can't spot it.

do you have any suggestion?
I attach my input and subroutines

Many thanks,

Silvia





Received on Tue Dec 17 2013 - 11:49:35 CET

This archive was generated by hypermail 2.3.0 : Tue Dec 17 2013 - 11:49:35 CET