opal AT lists.psi.ch
Subject: The OPAL Discussion Forum
List archive
- From: Adelmann Andreas <andreas.adelmann AT psi.ch>
- To: Galo Gallardo <ggallardo AT hi-iberia.es>
- Cc: "opal AT lists.psi.ch" <opal AT lists.psi.ch>
- Subject: Re: [Opal] Some questions regarding our current simulations
- Date: Tue, 31 Oct 2023 11:18:44 +0000
- Accept-language: en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 104.47.22.105) smtp.rcpttodomain=hi-iberia.es smtp.mailfrom=psi.ch; dmarc=pass (p=none sp=none pct=100) action=none header.from=psi.ch; dkim=none (message not signed); arc=none (0)
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=eoyg4qZtEgdKkDQS1dcm7BtEvXfYVR255RnANz2itaU=; b=J2tTLxkJSWm1nUh3CCD955dxZCAimGYM0ENRQO1dkZJC6y7xLi+2/0+pMigixcuRU68CxtJbgromrch+lyVV9a18V3eX74k6i8hJOirpPJxJM6oKc8/UmnkTBCBluFE9SvV557O2t+69qxMTqES3epqVFNB42ESHNyht7YVFOgIyPq28oG973Vwd4YcY1DB4Bts2DQw+BQrnoAtu1Kpvi5/4tkto2GUqZEIpC0ReBPHmtJ5uQY0Pp/uxsUyBUG1i/82P88r4dhlAG3KbT64MjvhOwZmF+5FeJJIuE8bKPEId2Sw7KqnZfIKwGrlLkhPGobmTSvQ1Cicbimo2qkpaRA==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CSxy8QqAVCGdEAUQawqaSeSsLdMmvLfnGD4Yo725LpwKsefBbbRfwSqaXB47CCojEh1FL/zIU51Yh383+x/9DDjCryIKsCA1nMkkWJzKH0Ne14koLTly7B+mmvXtjYsfCeNbZxF5uDOUAEutN5C5+4meTSjxqhKdZ4yxIKj9mLBCMh4d4txXWp0qpkuv0Ofy2+p6xA2/PzLPGLHMbN3rKgb48H+GkhiAATqZaxuymLEbRt0bkxZ/JlWQZa46fZRkk2m6kv1qfREtUMfcxNhGAqg6kAVBYJ+dCkVYAd2GZL6RPo+quNyktOQppTTM3K4j8my58eoWwEwndo9S6CWKAw==
- Authentication-results: mc3.ethz.ch; iprev=pass (mail-gv0che01on2062.outbound.protection.outlook.com) smtp.remote-ip=40.107.23.62; spf=pass smtp.mailfrom=psi.ch; dkim=pass header.d=psi.ch header.s=selector2 header.a=rsa-sha256; dmarc=pass header.from=psi.ch
- Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=psi.ch;
Hi Gallo
> On 30 Oct 2023, at 13:10, Galo Gallardo <ggallardo AT hi-iberia.es> wrote:
>
> Dear OPAL members,
>
> We have checked and modified (with the help of the manual) the OPAL FODO example that was provided in the Wiki:
> https://gitlab.psi.ch/OPAL/regression-tests/blob/master/RegressionTests/MAP-FODO/MAP-FODO.in
>
> Please, find attached the deuterons modified lattice.in fodo_file.in input file.
>
> It turns out that the FODO example is exactly what we were looing for. The goal is to run multiple simulations for different quadrupole values (which we have done already) and obtain a single bunch distribution at the end. But before proceeding any further we would like cross-check if everything is alright within the file and if you would change or add lines to make it more realistic.
>
> Here are the questions:
>
> 1. Is this running a single bunch simulation with 20k particles? We have doubts here because there is a bunch frequency parameter in the file (BFREQ), but the initial gaussian distribution has 20k particles too.
>
the input file suggest that you are running 20k particles. Please check the stdout there you will find all these information.
> 2. The output file we read is the .h5, from which we take the last step and the (x,y) information. Is this correct?
>
YES
> 3. Is "Edes" the initial kinetic energy of the beam in GeV?
>
YES
> 4. "brho" is not required for anything?
>
apparently not
> 3. Would you change the field solver, that is set, to other than NONE?
>
if space charge is important YES, but then you should change the tracking method to PARALLEL-T
> 4. Is the RUN, METHOD command correct?
>
What does the stdout show?
> 5. What physical effects does this baseline simulation include? Is this enough or can we make it more accurate? (without the need of extra files from Superfish or other software).
>
The answer to this question would require 10 pages in minimum. I suggest that you talk to
your resident physics person.
Cheers A
> Thanks for your attention and best regards,
>
> Galo Gallardo
> Junior Artificial Intelligence Engineer
> HI-Iberia
> ggallardo AT hi-iberia.es
> +34 697 68 70 16
> On 30 Oct 2023, at 13:10, Galo Gallardo <ggallardo AT hi-iberia.es> wrote:
>
> Dear OPAL members,
>
> We have checked and modified (with the help of the manual) the OPAL FODO example that was provided in the Wiki:
> https://gitlab.psi.ch/OPAL/regression-tests/blob/master/RegressionTests/MAP-FODO/MAP-FODO.in
>
> Please, find attached the deuterons modified lattice.in fodo_file.in input file.
>
> It turns out that the FODO example is exactly what we were looing for. The goal is to run multiple simulations for different quadrupole values (which we have done already) and obtain a single bunch distribution at the end. But before proceeding any further we would like cross-check if everything is alright within the file and if you would change or add lines to make it more realistic.
>
> Here are the questions:
>
> 1. Is this running a single bunch simulation with 20k particles? We have doubts here because there is a bunch frequency parameter in the file (BFREQ), but the initial gaussian distribution has 20k particles too.
>
the input file suggest that you are running 20k particles. Please check the stdout there you will find all these information.
> 2. The output file we read is the .h5, from which we take the last step and the (x,y) information. Is this correct?
>
YES
> 3. Is "Edes" the initial kinetic energy of the beam in GeV?
>
YES
> 4. "brho" is not required for anything?
>
apparently not
> 3. Would you change the field solver, that is set, to other than NONE?
>
if space charge is important YES, but then you should change the tracking method to PARALLEL-T
> 4. Is the RUN, METHOD command correct?
>
What does the stdout show?
> 5. What physical effects does this baseline simulation include? Is this enough or can we make it more accurate? (without the need of extra files from Superfish or other software).
>
The answer to this question would require 10 pages in minimum. I suggest that you talk to
your resident physics person.
Cheers A
> Thanks for your attention and best regards,
>
> Galo Gallardo
> Junior Artificial Intelligence Engineer
> HI-Iberia
> ggallardo AT hi-iberia.es
> +34 697 68 70 16
//10.3 OPTION statement in manual
//Controls printing of an echo of input lines on the standard error file. Its
default value is false.
OPTION, ECHO=FALSE;
OPTION, INFO=TRUE;
//Defines after how many time steps the phase space is dumped into the H5hut
file. Its default value is 10.
Option, PSDUMPFREQ=10;
//Defines after how many time steps we dump the phase space of single
particle. It is always useful to record the trajectory of reference particle
or some specified particle for primary study
Option, SPTDUMPFREQ = 50;
//Defines after how many time steps we dump statistical data, such as RMS
beam emittance, to the .stat file. The default value is 10. Currently only
available for OPAL-t.
Option, STATDUMPFREQ=1;
//For version 1.6.0 of OPAL VERSION should read 10600.
OPTION, VERSION=20400;
//Set title name for the simulation
TITLE, STRING="DONES test";
// Some particle and bunch variables
//Kinetic energy GeV - DOUBT
REAL Edes = 0.10;
//Gamma factor = total energy (kinetic + rest mass)/ rest mass
REAL gamma = (Edes+DMASS)/DMASS;
//Relatistic beta factor
REAL beta = sqrt(1-(1/gamma^2));
//Lorentz factor * beta
REAL gambet = gamma*beta;
//The particle momentum in GeV/c.
REAL P0 = gamma*beta*DMASS;
//clight speed of light, brho not used for anything - DOUBT
//REAL brho = (DMASS*1.0e9*gambet) / CLIGHT;
//used for the bunch freq in MHz
REAL rf = 50.6328e6;
//Declare the quadrupole strengths here
//check 11.5 Quadrupole K1
REAL k1=0.5;
REAL k2=-2.5;
REAL k3=-2.0;
VALUE,{gamma,Edes,beta,gambet};
//Elements of the lattice
//ELEMEDGE physical start of element, s coordinate in meters. End is start +
length
//NSLICES provides the opportunity to split one element in smaller steps.
D1: DRIFT, L=0.25, ELEMEDGE=0.000, NSLICES=10;
QP1: QUADRUPOLE, L=0.25, K1= k1, ELEMEDGE=0.25, NSLICES=15;
DG1: DRIFT, L=0.25, ELEMEDGE=0.5, NSLICES=10;
QP2: QUADRUPOLE, L=0.25, K1=k2, ELEMEDGE=0.75, NSLICES=15;
DG2: DRIFT, L=0.25, ELEMEDGE=1.0, NSLICES=10;
QP3: QUADRUPOLE, L=0.25, K1= k3, ELEMEDGE=1.25, NSLICES=15;
D3: DRIFT, L=0.25, ELEMEDGE=1.5, NSLICES=10;
//The lattice
DONES_LATTICE: LINE=( D1, QP1 , DG1, QP2, DG2, QP3, D3);
//Particles initial distribution
DIST: DISTRIBUTION, TYPE=GAUSS,
SIGMAX = 0.0005, SIGMAPX = 1.0e06, CORRX = 0.0,
SIGMAY = 0.0005, SIGMAPY = 1.0e06, CORRY = 0.0,
OFFSETZ = 0.005, SIGMAT = 0.0005,
SIGMAPT= 0.0, CORRT= 0.0, R61= 0.0,
INPUTMOUNITS=EVOVERC, WRITETOFILE= TRUE;
//Particles initial distribution from file
//DIST: DISTRIBUTION, TYPE = FROMFILE, FNAME="data/FODO_DIST.dat";
//FNAME="PartDatabase.dat";
//Fieldsolver type set to none?
//16.4. The FIELDSOLVER Command
//MX, MY defines the grid
//PARFFTX distributed processing
//BCFFTX open boundary condition
//GREENSF define the green function for the FFT solver
FS1:FIELDSOLVER, FSTYPE=NONE, MX=64, MY=64, MT=64,
PARFFTX=true, PARFFTY=true, PARFFTT=true,
BCFFTX=open, BCFFTY=open, BCFFTT=open,
BBOXINCR=1, GREENSF=STANDARD;
//Beam definition
//Particle, momentum, number of particles, beam current in A, bunch
frequency in MHz, deuteron charge = 1
BEAM1: BEAM, PARTICLE=DEUTERON, PC=P0, NPART=20000, BCURRENT=2.0e-03,
BFREQ=rf, CHARGE=1;
SELECT, LINE=DONES_LATTICE;
//Information needed by integrator DT step size
//The maximal order of the beam line maps MAP_ORDER
TRACK, LINE= DONES_LATTICE, BEAM=BEAM1, MAXSTEPS=10000, DT=1.0e-10,
ZSTOP=4.0, MAP_ORDER=2;
//To RUN OPAL-map, the METHOD attribute gets set to THICK.
//his command starts or continues the actual tracking
//Method PARALLEL-T for OPAL-T
RUN, METHOD = "THICK", BEAM=BEAM1, FIELDSOLVER=FS1, DISTRIBUTION=DIST;
ENDTRACK;
STOP;
-
[Opal] Some questions regarding our current simulations,
Galo Gallardo, 10/30/2023
- Re: [Opal] Some questions regarding our current simulations, Calvo Portela, Pedro, 10/30/2023
- Re: [Opal] Some questions regarding our current simulations, Adelmann Andreas, 10/31/2023
Archive powered by MHonArc 2.6.24.