svalinn / DAGMC

Direct Accelerated Geometry Monte Carlo Toolkit
https://svalinn.github.io/DAGMC
Other
97 stars 63 forks source link

Set numerical precision via Code specific command #516

Open makeclean opened 7 years ago

makeclean commented 7 years ago

DAGMC has the numerical_precision variable, we should be able to set this via the DAGMC card in MCNP.

gonuke commented 7 years ago

How is this precision used?

makeclean commented 7 years ago

It controls the precision parameter in the DagMC constructor (and passes into GTT), it controls the -ve ray length for checking intersections behind the current ray position

pshriwise commented 7 years ago

Is this also passed (eventually) into the OBBTreeTool as the intersection tolerance for triangle intersections?

makeclean commented 7 years ago

Indeed it is. I think it would be useful from a debugging POV to be able to set it directly maybe would could also set it automatically, maybe on the basis of half the length of the shortest curve in the problem?