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

Magnetic field + Vacuum strange trajectories #239

Open
jw3126 opened this issue Apr 11, 2019 · 0 comments
Open

Magnetic field + Vacuum strange trajectories #239

jw3126 opened this issue Apr 11, 2019 · 0 comments

Comments

@jw3126
Copy link

jw3126 commented Apr 11, 2019

Magnetic fields in vacuum give me weird results. See below for an example. In Air I get a spiral trajectory around the field lines as expected. In Vacuum something strange happens.

Air

grafik

Vacuum

grafik

/vis/open OGLIQt
/vis/drawVolume
/vis/viewer/set/style wireframe
/vis/viewer/flush
/tracking/storeTrajectory             1
/vis/scene/add/trajectories
/vis/modeling/trajectories/create/drawByCharge
/vis/scene/endOfEventAction           accumulate -1
/vis/scene/add/axes 0 0 0 50 cm
/gate/geometry/setMaterialDatabase data/GateMaterials.db
# World
/gate/world/geometry/setXLength 1.0 m
/gate/world/geometry/setYLength 1.0 m
/gate/world/geometry/setZLength 1.0 m
/gate/world/setMaterial         Vacuum
# physics
/gate/physics/addPhysicsList emstandard_opt3

# StatsActor187
/gate/actor/addActor                    DoseActor StatsActor187
/gate/actor/StatsActor187/save                  /tmp/juliaFgarML/StatsActor187.txt
/gate/actor/StatsActor187/attachTo              world
/gate/actor/StatsActor187/saveEveryNSeconds     60


/gate/geometry/setMagField 1.0 1.0 0.01 T

/gate/run/initialize
/gate/source/addSource GPS186     gps
/gate/source/GPS186/gps/particle  e-
/gate/source/GPS186/gps/direction 0.0 0.0 -1.0
/gate/source/GPS186/gps/centre    0.0 0.0 0.0 mm


/gate/source/GPS186/gps/energytype Mono 
/gate/source/GPS186/gps/monoenergy 10.0 MeV


/gate/source/GPS186/gps/pos/type  Plane
/gate/source/GPS186/gps/shape     Rectangle
/gate/source/GPS186/gps/halfx     10.0 cm
/gate/source/GPS186/gps/halfy     10.0 cm
# JamesRandom Ranlux64 MersenneTwister
/gate/random/setEngineName MersenneTwister
/gate/random/setEngineSeed auto

#/tracking/verbose 1

/gate/application/noGlobalOutput
/gate/application/setTotalNumberOfPrimaries 1
/gate/application/start
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

1 participant