Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Example input json problem #52

Open
p1003 opened this issue Dec 7, 2021 · 2 comments
Open

Example input json problem #52

p1003 opened this issue Dec 7, 2021 · 2 comments
Milestone

Comments

@p1003
Copy link
Collaborator

p1003 commented Dec 7, 2021

After sending this json: https://github.com/yaptide/converter/blob/master/input_examples/sh_parser_test.json to backend, geo.dat is parsed as follows:

    0    0          Unnamed geometry
  BOX    1      -0.50.22757704      -0.5       1.0       0.0       0.0
                 0.0       1.0       0.0       0.0       0.0       1.0
  BOX    2      -0.5-0.2244695      -0.5       1.0       0.0       0.0
                 0.0       1.0       0.0       0.0       0.0       1.0
  SPH    3       0.0       0.0       0.0       1.0
  BOX    4      -1.5      -1.5      -1.5       3.0       0.0       0.0
                 0.0       3.0       0.0       0.0       0.0       3.0
  BOX    5      -2.5      -2.5      -2.5       5.0       0.0       0.0
                 0.0       5.0       0.0       0.0       0.0       5.0
  END
  001          +1     +3OR   +2
  002          +4     -1     -2OR   +4     -3     -2
  003          -4     +5
  END
    1    2    3
    1 1000    0

And it is the first candidate to cause shieldhit to crash

@p1003
Copy link
Collaborator Author

p1003 commented Dec 7, 2021

If this is not the problem I send rest of the files in comment:

beam.dat

RNDSEED          89736501     ! Random seed
JPART0           2            ! Incident particle type
TMAX0          150.000000   0.0  ! Incident energy; (MeV/nucl)
NSTAT       1000    -1 ! NSTAT, Step of saving
STRAGG          2            ! Straggling: 0-Off 1-Gauss, 2-Vavilov
MSCAT           2            ! Mult. scatt 0-Off 1-Gauss, 2-Moliere
NUCRE           0            ! Nucl.Reac. switcher: 1-ON, 0-OFF

detect.dat
Geometry Cyl
    Name ScoringCylinder
    R 0.0 10.0 1
    Z 0.0 30.0 400
Geometry Mesh
    Name MyMesh_YZ
    X -5.0  5.0    1
    Y -5.0  5.0    100
    Z  0.0  30.0   300
Output
    Filename mesh.bdo
    Geo ScoringCylinder
    Quantity Dose


mat.dat
MEDIUM 1
ICRU 170
END

@p1003
Copy link
Collaborator Author

p1003 commented Dec 7, 2021

image
Shieldhit meets the problem with too many particles lost out of the zone

@p1003 p1003 changed the title geo.dat problem input json example problem Dec 7, 2021
@p1003 p1003 changed the title input json example problem Example input json problem Dec 7, 2021
@grzanka grzanka added this to the 2022 Q1 milestone Dec 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants