| Summary: | CalculateExtent of G4PolyconeSide not working correctly | ||
|---|---|---|---|
| Product: | Geant4 | Reporter: | Michael Eichler <eichler> |
| Component: | geometry/solids | Assignee: | tatiana.nikitina |
| Status: | RESOLVED WORKSFORME | ||
| Severity: | trivial | CC: | John.Apostolakis |
| Priority: | P5 | ||
| Version: | 9.6 | ||
| Hardware: | All | ||
| OS: | All | ||
| Attachments: |
The groove form that is working
the groove form that is not working |
||
Created attachment 235 [details]
the groove form that is not working
Dear Michael, Without having the Solids, it will be very difficult, almost impossible to find the problem. Could you, please, send r-z-phi values of Solids from the pictures? If I understand correctly one of these solids is causing error. Could you ,please, tell me which one? Best Regards, Tatiana. Dear Michael, Could you please provide the parameters of the relevant solid - or at least for the relevant PolyconeSide. Without some example of the failure it is not possible to investigate it. We have two (at least) simple options to output the parameters of the relevant solid: - call the method DumpInfo() of one (or more) instances of the solids which are giving problems. [ This will print these to standard output. Please copy them into this report or attach them. ] - output the geometry into a GDML file. You can find an example how to do this in the extended examples, in particular the persistency/gdml/G01 example. In case you cannot provide this information, we do not see how we could proceed - so we will regretfully suspend this problem report. Thank you in advance, John Apostolakis Dear Michel, I don't have enough information to work on reported problem. No solid description or code is provided. I have to close this problem. Best Regards, Tatiana. Dear Michael, Thank you very much for code and explanations. I have your files. Best Regards, Tatiana. Dear Michael, Sorry for not answering before, for the long time the problem report was not showing up in my list of problems. I could not reproduce the problem. I have run the application,that you send, but for me it is working fine. I have examinated the code of CalculateExtent() for Polycone, but could not find place were it can go wrong. Do you have any news about this problem? Best Regards, Tatiana |
Created attachment 234 [details] The groove form that is working The CalculateExtent function of G4PolyconeSide is not working correctly in my case. I am building a fresnel lens with "grooves" that are repeated using PVParametrisation. The volume itself is a G4Polycone. For some grooves i build, optical photons dont see the grooves anymore. As you requested in your email, to give you all information about the solids, i could send you the code of ComputeDimensions, as this would be the interesting one, but as i coded that VERY quickly, not having time to commend anything there, because i have to finish my master thesis, and that is the priority - so the code is very very ugly. But if you really want me to send the code, i will do that. The problem does not occur, if i manually set the numPhi variable to 64 (what is i think much smaller by default). So it seems to me, that there is a problem, that occurs only if some approximation isn't good enough. And it also seems to me that it occurs somewhere in section, that has to find the concave and convex faces. I first will attach the " r - z " form of the "grooves" that work, and what i change to make it not working - that means the calculateExtent function giving 1e+09 insteal of sth around -0.02 (for the working ones)