Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[BUG] - Issue with converting bodies containing tori with 'forceCylinder' set to 'True' #94

Closed
teade opened this issue Apr 26, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@teade
Copy link
Contributor

teade commented Apr 26, 2024

Describe the bug

There is an issue converting toridal surfaces with 'forceCylinders' set to 'True'. See images of CAD and conversion below.

This seems to be due to the radius of the cylinder limiting the extent of the toroidal surface being set to the minimum of d1 or d2.

To Reproduce

Steps to reproduce the behavior:
for example:

  1. Use attached stp file: example_tori.zip
  2. Use current main branch commit: bc74e7e
  3. Ensure that 'forceCylinders' option is set to True (this seems to be the default)

Expected behavior

This is the geometry you would expect to see.

It appears that when inSurf is true the maximum value of d1 or d2 is required.

@psauvan
Copy link
Member

psauvan commented Apr 26, 2024

Perhaps, it is better to remove the "forceCylinder" option and use only cones to define the annex torii surfaces.
What do you think? Do you see any reason to keep cylinders as annex surface for torus (of course except in the case in which the cone parameters degenerate to a cylinder)?

@teade
Copy link
Contributor Author

teade commented Apr 29, 2024

I have found that tracking on cones in MCNP is significantly slower than cylindrical surfaces. This might be one reason for keeping the "forceCylinders" option. It probably shouldn't be an option though, rather the code just uses cylinders where it can and cones where it cannot.

@alexvalentine94
Copy link
Collaborator

New issue to be raised on latest comments.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants