Skip to content

Commit 2bb0ba8

Browse files
committed
Merge branch 'develop'
2 parents 26ac39e + d336880 commit 2bb0ba8

45 files changed

Lines changed: 1032 additions & 1170 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

MP_system.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#
88
# This file is part of the code:
99
#
10-
# PyECLOUD Version 6.6.0
10+
# PyECLOUD Version 6.7.0
1111
#
1212
#
1313
# Author and contact: Giovanni IADAROLA

PyEC4PyHT.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#
99
# This file is part of the code:
1010
#
11-
# PyECLOUD Version 6.6.0
11+
# PyECLOUD Version 6.7.0
1212
#
1313
#
1414
# Author and contact: Giovanni IADAROLA
@@ -67,7 +67,7 @@ class Ecloud(object):
6767
def __init__(self, L_ecloud, slicer, Dt_ref, pyecl_input_folder='./', flag_clean_slices=False,
6868
slice_by_slice_mode=False, space_charge_obj=None, MP_e_mass=m_e, MP_e_charge=-e, **kwargs):
6969

70-
print 'PyECLOUD Version 6.6.0'
70+
print 'PyECLOUD Version 6.7.0'
7171

7272
# These git commands return the hash and the branch of the specified git directory.
7373
path_to_git = os.path.dirname(os.path.abspath(__file__)) +'/.git'

PyEC4PyHT_fastion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#
99
# This file is part of the code:
1010
#
11-
# PyECLOUD Version 6.6.0
11+
# PyECLOUD Version 6.7.0
1212
#
1313
#
1414
# Author and contact: Giovanni IADAROLA

beam_and_timing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#
88
# This file is part of the code:
99
#
10-
# PyECLOUD Version 6.6.0
10+
# PyECLOUD Version 6.7.0
1111
#
1212
#
1313
# Author and contact: Giovanni IADAROLA

buildup_simulation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#
1010
# This file is part of the code:
1111
#
12-
# PyECLOUD Version 6.6.0
12+
# PyECLOUD Version 6.7.0
1313
#
1414
#
1515
# Author and contact: Giovanni IADAROLA
@@ -59,7 +59,7 @@
5959
class BuildupSimulation(object):
6060
def __init__(self, pyecl_input_folder='./', **kwargs):
6161

62-
print 'PyECLOUD Version 6.6.0'
62+
print 'PyECLOUD Version 6.7.0'
6363
beamtim,MP_e, dynamics,impact_man, pyeclsaver, \
6464
gas_ion_flag, resgasion, t_ion, \
6565
spacech_ele,t_sc_ON, photoem_flag, phemiss,\

change_version_number.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
with open(filename) as fid:
1010
content=fid.read()
1111
if 'giovanni.iadarola@cern.ch' in content:
12-
content=content.replace('PyECLOUD Version 6.6.0', 'PyECLOUD Version 6.6.0')
12+
content=content.replace('PyECLOUD Version 6.7.0', 'PyECLOUD Version 6.7.0')
1313
with open(filename,'w') as fid:
1414
fid.write(content)
1515

default_input_parameters.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
from scipy.constants import m_p
22

3+
# To be safe, only use immutable python types as default values in the parameters_dict.
4+
# This most importantly excludes python lists. Tuples may be used in their place.
5+
36
parameters_dict = {
47
'simulation_parameters': {
58
'mandatory': {
@@ -96,6 +99,8 @@
9699
'x_aper': None,
97100
'y_aper': None,
98101
'filename_chm': None,
102+
'filename_chm_photoem': None,
103+
'flag_counter_clockwise_chamb': None,
99104

100105
# Tracking and magnetic field
101106
'track_method': 'StrongBdip',
@@ -271,4 +276,3 @@
271276
parameters_dict['combined_simulations_secondaryEmission_machine_parameters']['mandatory'].update(parameters_dict[key]['mandatory'])
272277
parameters_dict['combined_simulations_secondaryEmission_machine_parameters']['optional'].update(parameters_dict[key]['optional'])
273278

274-

doc/reference/reference.pdf

29 KB
Binary file not shown.

doc/reference/src/reference.tex

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88

99
\usepackage{placeins}
1010

11-
\usepackage{hyperref}
11+
\usepackage[hidelinks]{hyperref}
12+
\usepackage{url}
1213

1314

1415
\usepackage[english]{babel}
@@ -37,6 +38,9 @@
3738

3839
\definecolor{Gray}{gray}{0.90}
3940

41+
42+
43+
4044
\begin{document}
4145

4246

@@ -285,8 +289,12 @@ \subsection{Simulation parameters}
285289
\multicolumn{2}{p{.97\textwidth}}{When chamb\_type = `ellip' or 'rect' the following input variables must be provided:} \\ \hline
286290
\textbf{x\_aper, y\_aper} & Horizontal and vertical semi-apertures of the transverse chamber profile. \\ \hline
287291
\multicolumn{2}{p{.97\textwidth}}{When chamb\_type = `polyg' the following input variable must be provided:} \\ \hline
288-
\textbf{filename\_chm} & Name of file containing horizontal and vertical vertexes of the chamber profile. \\ \hline
292+
\textbf{filename\_chm} & Name of file containing horizontal and vertical vertexes of the chamber profile. \\\hline
293+
\textbf{filename\_chm\_photoem} & Name of file containing horizontal and vertical vertexes of the chamber profile that is used for the photoemission mode 'per\_segment'.
294+
The chamber file must also contain the cumulative distribution function of the emission probability for each segment.
295+
The vertexes of this chamber must lie on the edges of the main chamber.\\ \hline
289296
\textbf{flag\_assume\_convex} & [optional] Default: True \\\hline
297+
\textbf{flag\_counter\_clockwise\_chamb} & [optional] Default: True. Only needed for the photoemission model 'per\_segment'. It specifies the order in which the vertexes are defined. \\\hline
290298
\end{longtable}
291299

292300

@@ -382,7 +390,7 @@ \subsection{Simulation parameters}
382390
\multicolumn{2}{p{.97\textwidth}}{\textbf{Photoemission parameters} (if generation by photoemission is not desired, the following parameters can be omitted).}
383391
\\ \hline
384392
\textbf{photoem\_flag} & (optional -- default=0) \newline
385-
(0 $\Rightarrow$ Off, 1 $\Rightarrow$ On, 2 or 'from\_file' $\Rightarrow$ From file) Enables primary electron generation by photoemission.
393+
(0 $\Rightarrow$ Off, 1 $\Rightarrow$ traditional, 2 or 'from\_file' $\Rightarrow$ From file, 3 or 'per\_segment' $\Rightarrow$ Part of chamber definition) Enables primary electron generation by photoemission.
386394
\\ \hline
387395
\textbf{k\_pe\_st} & [m$^{-1}$] Number of photoelectrons to be generated per proton and per unit length.
388396
\\ \hline
@@ -429,7 +437,9 @@ \subsection{Simulation parameters}
429437
\multicolumn{2}{p{.97\textwidth}}{\textbf{The coordinates of all generated photoelectrons is specified from a file}}
430438
\\
431439
\hline
432-
\textbf{inv\_CDF\_all\_photoem\_file} & See inv\_CDF\_refl\_photoem\_file, but for all photons. If it is set to 'unif\_no\_file', the photoelectron generation is uniform over the whole surface.
440+
\textbf{inv\_CDF\_all\_photoem\_file} & See inv\_CDF\_refl\_photoem\_file, but for all photons.
441+
If it is set to 'unif\_no\_file', the photoelectron generation is uniform over the whole surface.
442+
Example scripts to generate a file with the correct format can be found in the folder \url{PyECLOUD/other/photoemission\_angular\_distribution}.
433443
\end{longtable}
434444

435445

dynamics_Boris_f2py.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#
88
# This file is part of the code:
99
#
10-
# PyECLOUD Version 6.6.0
10+
# PyECLOUD Version 6.7.0
1111
#
1212
#
1313
# Author and contact: Giovanni IADAROLA

0 commit comments

Comments
 (0)