opal AT lists.psi.ch
Subject: The OPAL Discussion Forum
List archive
Re: [Opal] Initial longitudinal momentum, thermal emittance, reference particle
Chronological Thread
- From: "Adelmann Andreas (PSI)" <andreas.adelmann AT psi.ch>
- To: Zhi Li <zhili29882 AT gmail.com>
- Cc: "opal AT lists.psi.ch" <opal AT lists.psi.ch>, Christof Metzger-Kraus <christof.j.kraus AT gmail.com>
- Subject: Re: [Opal] Initial longitudinal momentum, thermal emittance, reference particle
- Date: Tue, 6 Dec 2022 21:05:16 +0000
- Accept-language: en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=psi.ch; dmarc=pass action=none header.from=psi.ch; dkim=pass header.d=psi.ch; arc=none
- 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=yfIwD1rdBe/bCUH/30hdvMQ84XbOsmMExXzi/Qiy3Sg=; b=cs2cvRVvKjEZeU/RrsgCW8S0qUxUT9k6p9NTKQxz5LtLxZxXgb6RgAzlDCdh4svMEsxeKc3yfxcff6YqOPYBqv7eu17KGYEkRruvJ70LvtF8nEaKAkDXy6v29958WY0zsFoGTiDO776EvOocw5UvKijkY+2erJ6XqbCDd8pfocG7B4rrxd63KSjGCCBeW041L/2jWjR7O37zSXDwnRBRuEHJ5cq6bvf0pMgkcUs1iXJ8YjKGbXqAV4Y2iEzj9ApTImBtlA5Iwp4YaLMwyzpfUvuF/Rdu8jb8l+fY/I2NbWOvSCMcSvMmUVz06yga07bklBe/juEHa092KNTV/QM1kA==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HM4SRjdRpFFPf8IohuwRr3JHaI/07WUVh4EAZ+qnhn0NDYMmM34p6ksVRRzEBI2ub2NcmDrtxim3RWhG0XwUd4mP9xKZeDJaWlPPpBaCEeC/qzOUqw3OAKql/yv7GD7xwf3coQTSc9OvZGNs9oj8GWQH6wn2fT9dn79LB9SOOxCqgfRN0rxYdTPTAPXfnH4bvRVXbeh8Hdph4FnZGRaSSsdfThRl6/mHMTv6hWvPoNNmBhUlGB0ZJFJf3av92Z6oFjWNIC1Ub8ARALTwNfQ9ar0UvnVaNbUEHIvtRmV6gD23D+6dW4GH3HGMxdwRFX+5JnOj0DgY4lhtb3VNDeyarQ==
- Authentication-results: mc2.ethz.ch; iprev=pass (psi-seppmail1.ethz.ch) smtp.remote-ip=129.132.93.141; spf=pass smtp.mailfrom=psi.ch; dkim=pass header.d=dpsich.onmicrosoft.com header.s=selector1-dpsich-onmicrosoft-com header.a=rsa-sha256; dmarc=skipped
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=psi.ch;
Hi Zhi, great that you are using OPAL!
Questions:
1) If I generate my initial distribution using the NONEQUIL emission model, does the longitudinal momentum of the particles from this override the longitudinal momentum (P0) define in the BEAM parameters? If yes, how do I set this BEAM parameter longitudinal momentum (P0) to 0?
Yes P0 is overwritten. In case you have problems setting P0=0.0, then try P0=1.0E-12.
2) Is there a way to have the thermal emittance value saved to the output file (.stat) from the emitted distribution by NONEQUIL? Perhaps I can define a monitor very close to the cathode and capture this value? So far the closest I can set the monitor to the cathode is one micrometer away, is there a way to set it to 0 so its right ontop of the cathode?
Yes with a monitor you can achieve this, however a distance of 0.0 will not work. The minimal distance is determined by the time step, the smaller
the time step the closer you can put the monitor towards the cathode.
What is the exact formula that OPAL uses to calculate this thermal emittance? I want to confirm the thermal emittance value captured by a monitor with theoretical calculation by plugging in laser energy, work function, cathode temp, and Fermi energy into an equation.
I think I do not understand the question. In case of a monitor you have access to the phase space and can calculate the emittance “by hand”. Other
than that the emission process is described in chapter 15.4 of the manual (http://amas.web.psi.ch/opal/Documentation/2022.1/#sec.distribution.emissionmodel
).
3) In the output (.stat) file, I can plot the field seen by the reference particle. What is the exact definition of this reference particle? I don't seem to find a good description of this in the user manual. Is this the first particle emitted from the cathode or does it represent the average of every particle in the bunch?
If you plot against column 2, it uses the path length (m) in the floor coordinate system of the on-axis particle if I remember correctly.
@Christof can you confirm please!
Cheer Andy
Best regards,
Zhi
Here is my input file:
OPTION, PSDUMPFREQ = 300;
OPTION, STATDUMPFREQ = 1;
OPTION, BOUNDPDESTROYFQ=10;
OPTION, AUTOPHASE=4;
OPTION, VERSION = 20300;
Title, string="Original AWA Photoinjector input file modified";
//----------------------------------------------------------------------------
//Global Parameters
REAL rf_freq = 2.998e3; //RF frequency. (MHz)
REAL n_particles = 1E3; //Number of particles in simulation.
REAL beam_bunch_charge = 1e-3; //Charge of bunch. (C)
//Initial Momentum Calculation
REAL Edes = 1e-9; //initial energy in GeV
REAL gamma = (Edes+EMASS)/EMASS;
REAL beta = sqrt(1-(1/gamma^2));
REAL P0 = gamma*beta*EMASS; //inital z momentum
//Printing initial energy and momentum to terminal output.
value , {Edes, P0};
//----------------------------------------------------------------------------
REAL gun_inj_phase = 0;
GUN: RFCavity, L = 0.1, VOLT = 110.26, ELEMEDGE = 0.0, TYPE = "STANDING",
FMAPFN = "DriveGunGPTmap.T7", FREQ = 2998, LAG = (gun_inj_phase*Pi)/180.0,
APVETO = TRUE;
//----------------------------------------------------------------------------
// DEFINE BEAM LINE
myLine: Line = (GUN);
//M: MONITOR, ELEMEDGE = 1e-9, OUTFN = 'mon';
// Complete accelerator
DRIVE: Line = (myLine);
//----------------------------------------------------------------------------
Dist:DISTRIBUTION, TYPE = GAUSS,
SIGMAR = 0.001,
CUTOFFR = 2.0,
SIGMAT = 1e-12,
CUTOFFLONG = 2.0,
NBIN = 10,
EMISSIONSTEPS = 100,
EMISSIONMODEL = NONEQUIL,
ELASER = 6.48,
W = 4.31,
FE = 7.0,
CATHTEMP = 300,
EMITTED = TRUE,
WRITETOFILE = True;
//----------------------------------------------------------------------------
FS_SC: Fieldsolver, FSTYPE = FFT,
MX = 10, MY = 10, MT = 10,
PARFFTX = True,
PARFFTY = True,
PARFFTT = True,
BCFFTX = open,
BCFFTY = open,
BCFFTT = open,
BBOXINCR = 1,
GREENSF = INTEGRATED;
//----------------------------------------------------------------------------
// Electron Beam Definition
BEAM1: BEAM, PARTICLE = ELECTRON, pc = P0, NPART = n_particles,
BFREQ = rf_freq,BCURRENT = beam_bunch_charge * rf_freq, CHARGE = -1;
//----------------------------------------------------------------------------
TRACK, LINE = DRIVE, BEAM = BEAM1, MAXSTEPS = 1900000,
DT = {1.0e-13}, ZSTOP={0.12};
RUN, METHOD = "PARALLEL-T", BEAM = BEAM1,
FIELDSOLVER = FS_SC, DISTRIBUTION = Dist;
ENDTRACK;
Quit;
-
[Opal] Initial longitudinal momentum, thermal emittance, reference particle,
Zhi Li, 12/05/2022
-
Re: [Opal] Initial longitudinal momentum, thermal emittance, reference particle,
Adelmann Andreas (PSI), 12/06/2022
-
Re: [Opal] Initial longitudinal momentum, thermal emittance, reference particle,
Zhi Li, 12/13/2022
- Re: [Opal] Initial longitudinal momentum, thermal emittance, reference particle, Philippe Piot, 12/13/2022
-
Re: [Opal] Initial longitudinal momentum, thermal emittance, reference particle,
Adelmann Andreas, 12/14/2022
-
Re: [Opal] Initial longitudinal momentum, thermal emittance, reference particle,
Zhi Li, 12/14/2022
-
Re: [Opal] Initial longitudinal momentum, thermal emittance, reference particle,
Adelmann Andreas, 12/15/2022
-
Re: [Opal] Initial longitudinal momentum, thermal emittance, reference particle,
Zhi Li, 12/19/2022
- Re: [Opal] Initial longitudinal momentum, thermal emittance, reference particle, Adelmann Andreas, 12/19/2022
- Re: [Opal] Initial longitudinal momentum, thermal emittance, reference particle, Zhi Li, 12/19/2022
- Re: [Opal] Initial longitudinal momentum, thermal emittance, reference particle, Adelmann Andreas, 12/20/2022
- Re: [Opal] Initial longitudinal momentum, thermal emittance, reference particle, Zhi Li, 12/20/2022
-
Re: [Opal] Initial longitudinal momentum, thermal emittance, reference particle,
Zhi Li, 12/19/2022
-
Re: [Opal] Initial longitudinal momentum, thermal emittance, reference particle,
Adelmann Andreas, 12/15/2022
-
Re: [Opal] Initial longitudinal momentum, thermal emittance, reference particle,
Zhi Li, 12/14/2022
-
Re: [Opal] Initial longitudinal momentum, thermal emittance, reference particle,
Zhi Li, 12/13/2022
-
Re: [Opal] Initial longitudinal momentum, thermal emittance, reference particle,
Adelmann Andreas (PSI), 12/06/2022
Archive powered by MHonArc 2.6.19.