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.
Toutatis input particle distribution
-
giovanni rutigliani
- Novice
- Posts: 4
- Joined: Tue 29 Apr 2025 12:56
- Country:
Italy (it)
-
RomualdDuperrier
- Global moderators
- Posts: 82
- Joined: Fri 28 Aug 2020 14:59
- Location: Paris-Saclay
- Country:
France (fr)
Re: Toutatis input particle distribution
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
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
-
giovanni rutigliani
- Novice
- Posts: 4
- Joined: Tue 29 Apr 2025 12:56
- Country:
Italy (it)
Re: Toutatis input particle distribution
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
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
-
giovanni rutigliani
- Novice
- Posts: 4
- Joined: Tue 29 Apr 2025 12:56
- Country:
Italy (it)
Re: Toutatis input particle distribution
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
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
-
giovanni rutigliani
- Novice
- Posts: 4
- Joined: Tue 29 Apr 2025 12:56
- Country:
Italy (it)
Re: Toutatis input particle distribution
Hi,
which is the correct units of that line?
input -6 n alphaX betaX EmitX alphaY betaY EmitY dPhi dE
which is the correct units of that line?
input -6 n alphaX betaX EmitX alphaY betaY EmitY dPhi dE