Toutatis input particle distribution

https://www.dacm-logiciels.fr/toutatis
Post Reply
Italygiovanni rutigliani
Beginner
Beginner
Posts: 5
Joined: Tue 29 Apr 2025 12:56
Location: italy
Country:
Italy (it)
Italy

Toutatis input particle distribution

Post by Italygiovanni rutigliani »

Dear all,
How is possible to read the .dst or .txt input parameter file?
I tried to put the path into the dedicated line but doesn't work.
theDistribution k // If flag=k, Toutatis generate a 4D WB distribution. If flag=f, the complete path to an input dst file must be provided.
FranceRomualdDuperrier
Global moderators
Global moderators
Posts: 85
Joined: Fri 28 Aug 2020 14:59
Location: Paris-Saclay
Country:
France (fr)
France

Re: Toutatis input particle distribution

Post by FranceRomualdDuperrier »

Hi

Only a .dst file can be used as input.

Does the code tell you that it does not find the .dst file or another error message is displayed?

In principle, a command line like:

theDistribution f C:\Users\rduperri\Pro\MyProject\toutatis.dst

should work. Also, check that you have proper access rights to the the folder where the .dst file is located.

Last, when a dst file is used, the command line:

input -6 n alphaX betaX EmitX alphaY betaY EmitY dPhi dE

where n is the number of particles, is not ignored by the code. It means that n must lower or equal than the number of particles in dst file. When n is lower, a subset of the particles will be read from the file.

I hope it helps,
Romuald
Italygiovanni rutigliani
Beginner
Beginner
Posts: 5
Joined: Tue 29 Apr 2025 12:56
Location: italy
Country:
Italy (it)
Italy

Re: Toutatis input particle distribution

Post by Italygiovanni rutigliani »

Hi,
I put the correct path and correct number of particles "input -6 n alphaX betaX EmitX alphaY betaY EmitY dPhi dE" but it doesn't work. Toutatis closes without error messages after Run button
If you want I can send you the .inp and dst. file
Italygiovanni rutigliani
Beginner
Beginner
Posts: 5
Joined: Tue 29 Apr 2025 12:56
Location: italy
Country:
Italy (it)
Italy

Re: Toutatis input particle distribution

Post by Italygiovanni rutigliani »

Hi,
I have to convert an Input file with this units:
X (cm) Xp (rad) Y (cm) Yp (rad) phi (rad) W (MeV)
which are the correct unit for .dst input file?

giovanni
Italygiovanni rutigliani
Beginner
Beginner
Posts: 5
Joined: Tue 29 Apr 2025 12:56
Location: italy
Country:
Italy (it)
Italy

Re: Toutatis input particle distribution

Post by Italygiovanni rutigliani »

Hi,
which is the correct units of that line?
input -6 n alphaX betaX EmitX alphaY betaY EmitY dPhi dE
Italygiovanni rutigliani
Beginner
Beginner
Posts: 5
Joined: Tue 29 Apr 2025 12:56
Location: italy
Country:
Italy (it)
Italy

Re: Toutatis input particle distribution

Post by Italygiovanni rutigliani »

Which is the units of EmitY,X?
Francegwhitlock71
Novice
Novice
Posts: 3
Joined: Sun 1 Nov 2026 03:48
Country:
France (fr)
France

Re: Toutatis input particle distribution

Post by Francegwhitlock71 »

giovanni rutigliani, fair question, the manual is a bit vague on that one tbh. I reckon its normalised or not in pi.mm.mrad but dont quote me, i'd check the example .inp that ships with the code before trusting it. Got caught out mixing cm and mm on a job once and lost a whole afternoon to it... never again 🙂
Post Reply