Message: Re: Is it possible to set reflectivity of an optical surface dependent on the angle of incidence of an optical photon? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

More Re: Is it possible to set reflectivity of an optical surface dependent on the angle of incidence of an optical photon? 

Forum: Processes Involving Optical Photons
Re: Question Is it possible to set reflectivity of an optical surface dependent on the angle of incidence of an optical photon? (Maarten van Dijk)
Re: None Re: Is it possible to set reflectivity of an optical surface dependent on the angle of incidence of an optical photon? (Maarten van Dijk)
Date: 03 Mar, 2014
From: Gumplinger Peter <Gumplinger Peter>

Hi Maarten,

> For a bit of elaboration, what I had been using up till now actually
> used the diffuse lobe to "scatter" the light that wasn't reflected by
> the specular spike, so that I would conservatively estimate the amount
> of "noise" photons.

Turns out, I just noticed, that I didn't write the Dichroic code general enough to allow for anything but specular spike reflections. (the default is polished).

I think all one would have to do is replace the line:

DoReflection();

in G4OpBoundaryProcess::DielectricDichroic() with:

if ( theModel == glisur || theFinish == polished ) {

   DoReflection();

} else {

   ChooseReflection();

   if ( theStatus == LambertianReflection ) {
      DoReflection();
   } else if ( theStatus == BackScattering ) {
      NewMomentum = -OldMomentum;
      NewPolarization = -OldPolarization;
   } else {

      do {
         if (theStatus==LobeReflection)
            theFacetNormal = GetFacetNormal(OldMomentum,theGlobalNormal);
         G4double PdotN = OldMomentum * theFacetNormal;
         NewMomentum = OldMomentum - (2.*PdotN)*theFacetNormal;
      } while (NewMomentum * theGlobalNormal <= 0.0);

      G4double EdotN = OldPolarization * theFacetNormal;
      NewPolarization = -OldPolarization + (2.*EdotN)*theFacetNormal;
   }
}

Peter

 Add Message Add Message
to: "Re: Is it possible to set reflectivity of an optical surface dependent on the angle of incidence of an optical photon?"

 Subscribe Subscribe

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