Message: Re: Refraction has not occur Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: Refraction has not occur  

Forum: Processes Involving Optical Photons
Re: None Refraction has not occur (Davinder Siwal)
Date: 18 Jan, 2011
From: Gumplinger Peter <Gumplinger Peter>


>       if (particleName == "opticalphoton") 
>         {
>           G4cout << " AddDiscreteProcess to OpticalPhoton " << G4endl;
>           pmanager->AddDiscreteProcess(theAbsorptionProcess);
>           pmanager->AddDiscreteProcess(theRayleighScatteringProcess);
>           pmanager->AddDiscreteProcess(theBoundaryProcess);
>           pmanager->AddDiscreteProcess(theMieHGScatteringProcess);
>           pmanager->AddDiscreteProcess(theBoundaryProcess);
>         }
>     }
> }

I don't know what happens when you attach theBoundaryProcess twice to the optical photon. This is clearly a programming error.

I suggest you carefully check your code against the examples. Many G4 users have had no difficulty defining a correct optical simulation in Geant4 by carefully consulting our tutorial material, manuals and examples, and have done so without seeking step by step guidance on this forum.

As a first step it is usually a good idea to do away with a G4OpticalSurface and simply specify the index of refraction for both touching dielectric. In that case, you'll simulate a perfectly smooth interface with the refraction/reflection probabilities calculated from Snell's Law and the nominal surface. If all of your photons strike this surface at a certain large angle, they will all be internally reflected and you won't see refraction. (this may well be your problem also).

 Add Message Add Message
to: "Re: Refraction has not occur "

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews