Message: Re: G4Sphere::DistanceToOut(p,v,..) Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: G4Sphere::DistanceToOut(p,v,..) 

Forum: Geometry
Re: Question G4Sphere::DistanceToOut(p,v,..) (ying zhang)
Re: Question Re: G4Sphere::DistanceToOut(p,v,..) (Juliana Cristina Martins)
Date: 08 Mar, 2018
From: John Apostolakis <John Apostolakis>

Dear Juliana,

There is not enough information to give you a recipe to fix the issue that you report.

It seems that there was an erroneous direction provided to the Box solid.  The box itself is not responsible.

Probably the best way to figure out why this happens is to run with tracking verbosity, and use that to see where the NaN was created.

Then you could submit a problem report, especially if it is not obvious how to fix it quickly.

John
===================================================
John Apostolakis,  EP Department, CERN


On 8 Mar 2018, at 17:57, Juliana Cristina Martins <juliana.martins@lmu.de<mailto:juliana.martins@lmu.de>> wrote:


*** Discussion title: Geometry

Hey there,

I am getting the same problem, but for a geometry that doesn't exist! I
don't even have a "bixMesh_10" anywhere in my code.

And also: this problem only happens when I use G4ParticleGun as particle
generator. If I change (to phase space or if I use G4PrimaryParticle, it
works perfectly).

Does anyone have a clue on why that happens?

Thanks a lot, Juliana

*** Dump for solid - boxMesh_10 ***
   ===================================================
Solid type: G4Box
Parameters:
   half length X: 290 mm
   half length Y: 5 mm
   half length Z: 290 mm
-----------------------------------------------------------

-------- WWWW ------- G4Exception-START -------- WWWW -------
*** G4Exception : GeomSolids1002
     issued by : G4Box::DistanceToOut(p,v,..)
Undefined side for valid surface normal to solid.
Position:

p.x() = 60.14809412672574 mm p.y() = 5 mm p.z() = -76.23934342459388 mm

Direction:

v.x() = -nan v.y() = nan v.z() = nan

Proposed distance :

snxt = 9e+99 mm

*** This is just a warning message. *** -------- WWWW --------
G4Exception-END --------- WWWW -------

-------------------------------------------------------------
Visit this GEANT4 at hypernews.slac.stanford.edu<http://hypernews.slac.stanford.edu> message (to reply or unsubscribe) at:
http://hypernews.slac.stanford.edu/HyperNews/geant4/get/geometry/1430/1.html


 [ MIME part of type text/html without a name stripped ]

 Add Message Add Message
to: "Re: G4Sphere::DistanceToOut(p,v,..)"

 Subscribe Subscribe

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


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]