Skip to content

FullSNSExample doesnt work #6

@khilde

Description

@khilde

When running the snsring.py script in the FullSNSExample there are a number of issues.

The first is a bunch of the imports appear to be incorrect. For example on line#18 "from injection import InjectParts" causes script to crash.

Once the imports are fixed. The script then crashes at line#195. One issue with this line is the code is expecting either 9 numbers, 10 numbers, or 10 numbers plus 1 string passed to it to create a collimator. So 9 numbers + 1 string causes it to rightfully complain and crash. As another note from looking at Collimator.cc I also believe that when shape=1 which it does in this example then the parameters a and b should be set to radius. In current script a=radius and b=0.

To get script to run past line#195 I passed it radius twice so that line is now:
collimator = TeapotCollimatorNode(colllength, ma, density_fac, shape, radius, radius, 0., 0., 0., 0., "Collimator 1")
instead of:
collimator = TeapotCollimatorNode(colllength, ma, density_fac, shape, radius, 0., 0., 0., 0., "Collimator 1")

Once this is fixed the script then crashes at Line#343. I tracked this crash being caused by Line#224 in SpaceChargeCalc2p5D.cc (src/spacecharge/SpaceChargeCalc2p5D.cc) Have not been able to resolve this crash.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions