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

From: Stefan Roesler <sroesler_at_mail.cern.ch>
Date: Tue, 17 Dec 2013 13:45:13 +0100

Hi Silvia

The manual is misleading, TXNOR/TYNOR/TZNOR are initialized to the values
that you report but never set in FLUKA to the true normals. You will have
to calculate the yourself, see email by Chris that will follow.

Cheers
Stefan




On Tue, 17 Dec 2013, Silvia Cipiccia wrote:

> 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 - 15:15:30 CET

This archive was generated by hypermail 2.3.0 : Tue Dec 17 2013 - 15:15:31 CET