yaptide / converter

Yet Another Particle Transport IDE - converter
3 stars 1 forks source link

Example input json problem #52

Open p1003 opened 2 years ago

p1003 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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