Skip to content
Merged
Show file tree
Hide file tree
Changes from 20 commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
ab5010f
Working resistive wall wakefield
ChristopherMayes Jul 17, 2025
388eb27
use conductivity and relaxation_time directly in ResistiveWallWakefield
ChristopherMayes Jul 17, 2025
c9b07d5
Add Fig8
ChristopherMayes Jul 17, 2025
611cc7a
New polynomial fits from fitting digitized plots in SLAC-PUB-10707 Fi…
ChristopherMayes Jul 17, 2025
785a1d1
scale_with_length=True by default, update plots
ChristopherMayes Jul 19, 2025
668e8c8
Expand materials. Move pseudowake kick function into a method
ChristopherMayes Jul 31, 2025
0e50040
Clean up classes, add wakefield_plot
ChristopherMayes Aug 4, 2025
8f0c9df
Add epsilon_0, Z0 to units
ChristopherMayes Aug 5, 2025
3fbc89f
cleanup and docs
ChristopherMayes Aug 5, 2025
b4bae47
touchups
ChristopherMayes Aug 5, 2025
e89dd9c
remove functools.lru_cache
ChristopherMayes Aug 5, 2025
ad1b15d
Add resistive wall impedance
ChristopherMayes Jan 6, 2026
7b89fc4
merge with master
ChristopherMayes Jan 6, 2026
27b9a81
Correct round impedance, simplify impedance code.
ChristopherMayes Jan 6, 2026
ecd438b
Clean up pseudomode code
ChristopherMayes Jan 6, 2026
5f82791
Remove dataclass slots for Python 3.9 compatibility
ChristopherMayes Jan 6, 2026
243585d
Update pmd_beamphysics/plot.py
ChristopherMayes Jan 7, 2026
dcb85f7
Update pmd_beamphysics/plot.py
ChristopherMayes Jan 7, 2026
f835bf5
Add algorithm notes
ChristopherMayes Jan 7, 2026
b7f4e18
Add warning for Gamma >3
ChristopherMayes Jan 7, 2026
0a307ea
Fixed convolve_density in impedance model
ChristopherMayes Jan 9, 2026
0091375
Refactor
ChristopherMayes Jan 13, 2026
ef081f5
Expand docstrings with physics explainations
ChristopherMayes Jan 13, 2026
533f2ed
Add a new general impedance wakefield notebook, add convenience plott…
ChristopherMayes Jan 13, 2026
4addb34
better default zmax
ChristopherMayes Jan 14, 2026
aac17b3
touchups
ChristopherMayes Jan 14, 2026
1cf4376
Remove old file
ChristopherMayes Jan 14, 2026
ddb3bde
Update pmd_beamphysics/particles.py
ChristopherMayes Jan 14, 2026
406ff5f
remove "legacy" function
ChristopherMayes Jan 14, 2026
1e49f1c
Merge branch 'add_wakefields' of https://github.com/ChristopherMayes/…
ChristopherMayes Jan 14, 2026
c15e353
Refactor, simplifying by consolidating code.
ChristopherMayes Jan 15, 2026
641ad3e
refactor separating files
ChristopherMayes Jan 15, 2026
33e8262
Geometry enum
ChristopherMayes Jan 15, 2026
f8cad32
Update pmd_beamphysics/plot.py
ChristopherMayes Jan 15, 2026
8e496db
make explicit `import matplotlib.pyplot as plt`
ChristopherMayes Jan 15, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
196 changes: 196 additions & 0 deletions docs/examples/data/SLAC-PUB-10707-digitized-Fig4-AC-Cu.csv

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps add a header, even a simple one.

Original file line number Diff line number Diff line change
@@ -0,0 +1,196 @@
0.9486456377226915, 0.979825988170802
1.5019145522649495, 0.9532649307559146
1.9887911970621417, 0.926703873341027
2.387144815532551, 0.8975106390652048
2.7191061642579086, 0.8624149475860742
2.8850868386205946, 0.8382866596941719
3.106394404437495, 0.814956001154068
3.383028861708624, 0.7883949437391805
3.5490095360712957, 0.76081690890075
3.7149902104339816, 0.7383835833814194
3.917855479099458, 0.7104665560684746
4.139163044916373, 0.6793590113483361
4.360470610733273, 0.6484508739661473
4.5817781765501735, 0.61674510723216
4.803085742367074, 0.5848399331602231
5.024393308183974, 0.5529347590882862
5.245700874000889, 0.5194343263127524
5.467008439817789, 0.483740412819773
5.6883160056346895, 0.4474482773129449
5.90962357145159, 0.41095673446816705
6.13093113726849, 0.3744651916233892
6.352238703085405, 0.3381730561165608
6.525596296308663, 0.30503155654933645
6.757969240416401, 0.2717704125793421
6.979276806233301, 0.23408242570686677
7.200584372050201, 0.19619503149644157
7.421891937867102, 0.15850704462396603
7.643199503684016, 0.12201550177918818
7.864507069500917, 0.0849257369205616
8.096880013608654, 0.04994968984420067
8.362449092588946, 0.01353790993460291
8.583756658405846, -0.020959559530679073
8.805064224222761, -0.05286473360261579
9.08169868149389, -0.08835923975764559
9.30300624731079, -0.12126145051933057
9.468986921673462, -0.14578855308713212
9.57964070458192, -0.22794437632236964
10.077582727669949, -0.2893618364108481
10.354217184941078, -0.3198711591171377
10.686178533666435, -0.3527733698788227
10.948981268074007, -0.3885171352062895
11.128793665300236, -0.41833850259665306
11.4133319642077, -0.4466087657653941
11.659931823260806, -0.4724177726485861
12.014023928567852, -0.5013318366512791
12.34598527729321, -0.5324393813714174
12.677946626018567, -0.563546926091556
13.06523486619814, -0.5965488405222157
13.673830672194626, -0.6234090089440274
14.282426478191113, -0.6520837841411811
15.222983632912943, -0.6690696637465243
16.32952146199746, -0.6627853112778097
17.24636709181034, -0.631373907756986
17.83125137289788, -0.606932265476877
18.265962662895376, -0.5772561805755911
18.708577794529177, -0.5443539698139062
19.09586603470875, -0.5158885723216
19.42782738343412, -0.48717391565685686
19.759788732159464, -0.45526874158492014
20.091750080884836, -0.42316416017503333
20.42371142961018, -0.3906607640892479
20.755672778335523, -0.35975262670705876
21.032307235606666, -0.33692048651182915
21.419595475786238, -0.28497487497595664
21.798979874329504, -0.2507337863737531
22.166508510418296, -0.21757519474899012
22.383864155417044, -0.187493173481164
22.71055627638485, -0.15536010530871303
23.010243605095226, -0.12066322850548183
23.34813283504782, -0.08442806652378199
23.57734424250104, -0.0590463610790537
23.964632482680642, -0.03292399980765537
24.35982456449655, 0.03367805106751298
24.739208963039786, 0.06498500312560118
25.071170311765158, 0.09748839921138686
25.418939343763142, 0.130419096735636
25.88263138642712, 0.17085257448013524
26.34368881521233, 0.2065642130698211
26.564996381029246, 0.23604801232379846
27.45637407668069, 0.29277465217670073
28.003495558839134, 0.3204258030390459
28.517245265199776, 0.34543718057043926
29.22068717083208, 0.37660882050634736
30.271898108462366, 0.39968115590410735
31.48908972045534, 0.4017477410428578
32.54030065808563, 0.38558215071407953
33.37020402989903, 0.3594526677520402
34.034126727349744, 0.3311539178207348
34.56280591235678, 0.30274501907418094
35.15295942120186, 0.2703080921010452
35.68163860620892, 0.24066286785920377
36.089125552792424, 0.21365741694831408
36.52383684278989, 0.1868228866128101
36.96645197442372, 0.15795867444460487
37.40906710605752, 0.1281971292556261
37.85168223769132, 0.09738869554241214
38.29429736932512, 0.06702892833958463
38.73691250095892, 0.03637005012983274
39.17952763259275, 0.012873218808104214
39.7696811414378, -0.034353085729627475
40.321273483511746, -0.06758462073125959
40.88236640290613, -0.0999248653587228
41.337276399307555, -0.12709411515435654
41.779891530941356, -0.15074524977330794
42.4991411198463, -0.17809254183496814
43.163063817297015, -0.2060095691479129
43.99296718911039, -0.2319325230813618
45.099505018194904, -0.2562964741908407
46.31669663018788, -0.2669557028012379
47.53388824218085, -0.2601033415516969
48.695752962719595, -0.2406665644835544
49.691637008895654, -0.21518230669359473
50.52154038070903, -0.18732225290577853
51.24078996961397, -0.1609435107713022
51.904712667064686, -0.1342229274860549
52.5686353645154, -0.10630590017311015
53.23255806196612, -0.07759124350836699
53.896480759416804, -0.048876586843623615
54.61573034832175, -0.02084561248042216
55.44563372013515, 0.019619833742065884
56.27553709194852, 0.04974458515373836
57.050113572307694, 0.07675003606462782
57.935343835575296, 0.1045341251522729
58.98655477320558, 0.1304703729082517
60.14841949374433, 0.15027695994859158
61.3656111057373, 0.1610449561978704
62.582802717730274, 0.16060988564234369
63.79999432972325, 0.15114710105964435
65.01718594171622, 0.13254783481089039
66.17905066225494, 0.10881473600692448
67.23026159988525, 0.08299813265371547
68.22614564606131, 0.05680930226966718
69.22202969223737, 0.029291089632621725
69.99660617259654, 0.011424192152337254
71.10314400168106, -0.022446050595394285
72.32033561367403, -0.048876586843623615
73.53752722566698, -0.07302300267533957
74.75471883765995, -0.09053459253527762
75.97191044965292, -0.10206396225672765
77.1891020616459, -0.10663220308975485
78.40629367363887, -0.10510945614541245
79.62348528563184, -0.09673434795152902
80.84067689762479, -0.08379099892461839
82.05786850961776, -0.06660571198132503
83.27506012161074, -0.04702753698263651
84.49225173360371, -0.025709079761842446
85.62645300841534, -0.0070010458742064685
86.92663495758963, 0.015731390652048427
88.1438265695826, 0.032590374678696854
89.36101818157557, 0.046730167733305406
90.57820979356855, 0.05684555814929437
91.79540140556152, 0.06293654592666442
93.0125930175545, 0.0648943634265331
94.22978462954744, 0.0625014753711377
95.44697624154041, 0.0564104875937681
96.66416785353339, 0.04738277356659504
97.88135946552636, 0.036070939122908374
99.09855107751933, 0.02312759009599752
100.3157426895123, 0.011054382180139433
101.73211111074046, -0.006761757068666885
102.75012591349822, -0.015593689345853257
103.9673175254912, -0.025600312122960656
105.18450913748417, -0.03364911740019916
106.40170074947714, -0.03941380226092406
107.61889236147012, -0.04180669031631945
108.83608397346306, -0.04332943726066185
110.05327558545603, -0.040610246288621754
111.27046719744901, -0.03615077309447612
112.48765880944198, -0.029842250039343154
113.70485042143495, -0.022337282956512494
114.92204203342793, -0.014506012957037129
115.91792607960399, -0.010248536806528818
118.02034795486456, 0.008879029402507399
119.23753956685754, 0.013229734957771688
120.45473117885051, 0.019103187457378157
121.67192279084348, 0.02301882245711573
122.88911440283643, 0.025302942873629553
124.1063060148294, 0.025302942873629553
125.32349762682237, 0.02486787231810328
126.54068923881535, 0.02214868134606296
127.75788085080832, 0.018559349262970093
128.97507246280128, 0.013556037874416615
130.19226407479425, 0.009857938152441958
131.13282122951608, 0.007755097134064304
133.95449269368163, -0.010046539762891271
135.17168430567455, -0.012113124901641736
136.38887591766752, -0.01428847767927377
137.6060675296605, -0.01624629517914289
138.82325914165347, -0.01776904212348529
140.04045075364644, -0.01776904212348529
141.2576423656394, -0.015702456984734825
142.4748339776324, -0.014070942401510855
143.69202558962536, -0.012221892540523305
144.90921720161833, -0.010699145596180903
145.9051012477944, -0.009393933929601861
149.43021461759218, 0.007698123608935736
167 changes: 167 additions & 0 deletions docs/examples/data/SLAC-PUB-10707-digitized-Fig8-AC-Cu.csv

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps add a header, even a simple one.

Original file line number Diff line number Diff line change
@@ -0,0 +1,167 @@
0.7798332707897906, 0.609821328467567
1.6642653788985768, 0.5933523181590253
2.2833678545747276, 0.5725364901676447
2.7255839086291225, 0.5521441785138305
3.205704195888181, 0.5292198441847092
3.531399829350459, 0.50811965522382
3.9539618365579976, 0.48556741024841776
4.317561703224939, 0.4627372326764877
4.671334546468454, 0.44093937617737544
5.02510738971197, 0.4179503799788581
5.340975999750821, 0.3944508953377386
5.68843147079356, 0.37090036185235875
6.035886941836303, 0.3469414376128974
6.3138513186704905, 0.32434381588704153
6.6549894175124535, 0.30174619416118587
6.926636422145865, 0.2792620143114639
7.191966054578501, 0.25861559285510993
7.457295687011136, 0.23781035277216844
7.722625319443775, 0.21716393131581446
7.987954951876411, 0.19683514711263483
8.20906297890361, 0.17841218642850354
8.474392611336242, 0.15951276986461038
8.739722243768881, 0.13870752978166867
9.093495087012393, 0.11710819656579075
9.403046324850472, 0.0943177236505075
9.756819168093983, 0.06906556202312064
10.110592011337502, 0.045004540095138656
10.331700038364701, 0.030710863702278157
10.641251276202773, -0.029084349207855187
10.995024119446292, -0.05076309173702698
11.393018568095243, -0.07296593573393695
11.923677832960514, -0.0948012280521735
12.290085420605585, -0.12760861863007222
12.781576977826042, -0.15682217057205206
13.206104389718256, -0.17997792632848597
13.648320443772654, -0.2030383909089677
14.090536497827046, -0.2260988554894494
14.576974157286877, -0.24904814703131994
15.240298238368474, -0.27263271307953985
16.027442814585292, -0.29718607274994246
16.920719243775167, -0.31748309322780455
17.849372957289397, -0.3330415434105787
18.82224827620906, -0.3397985540690218
19.79512359512873, -0.33858575728417306
20.7679989140484, -0.3307892065244309
21.74087423296806, -0.3153693616884967
22.62530634107685, -0.2971966606583816
23.42129523837476, -0.27676199737081064
24.04039771405091, -0.26297654058302977
25.499710692430412, -0.21018522910539805
26.251477984322882, -0.18709753847464428
26.939369623963053, -0.16495368425332368
27.538818052792337, -0.14335435103744576
28.108785411351334, -0.12199324576144854
28.816331097838365, -0.10036744277447274
29.346990362703636, -0.07612113244880558
29.921871232974347, -0.053526535839646616
30.717860130272257, -0.03313422418583234
31.336962605948408, -0.010476100126038279
32.00028668703, 0.011970265764972066
32.79627558432791, 0.030710863702278157
33.59226448162582, 0.051463164243023884
34.47669658973461, 0.07168606936181154
35.44957190865427, 0.08996464947631821
36.42244722757394, 0.10538449431225239
37.39532254649361, 0.11725257713541537
38.36819786541327, 0.12617529633823166
39.34107318433294, 0.13093985513585182
40.31394850325261, 0.13301893533844944
41.28682382217227, 0.13249916528780004
42.259699141091936, 0.12868751824970381
43.23257446001161, 0.12288341935078484
44.205449778931275, 0.11456709854039326
45.17832509785094, 0.10495135260337807
46.151200416770614, 0.09342978314731454
47.124075735690276, 0.08104193027350215
48.09695105460994, 0.06796105066549041
49.0698263735296, 0.0542737726650544
50.04270169244928, 0.04023998129751849
51.01557701136894, 0.02715910168950675
51.81156590866686, 0.019956573844792658
53.84575975731706, -0.013556218944702048
54.818635076236724, -0.021699283071543896
55.7915103951564, -0.03140165735033418
56.76438571407606, -0.04023774821137516
57.737261032995725, -0.04768778560401743
58.7101363519154, -0.053665141186486354
59.683011670835064, -0.05842969998410652
60.65588698975473, -0.061461691946228525
61.62876230867439, -0.06362740049060145
62.601637627594066, -0.06380065717415118
63.57451294651373, -0.06362740049060145
64.5473882654334, -0.06189483365510329
65.52026358435307, -0.05920935506008074
66.49313890327272, -0.0554843363637596
67.4660142221924, -0.05106629093323911
68.43888954111208, -0.04621510379384408
69.41176486003172, -0.04049763323669975
70.3846401789514, -0.034693534337780774
71.35751549787105, -0.028456293729986815
72.33039081679073, -0.02247893814751789
73.3032661357104, -0.018753919451196976
74.09925503300832, -0.015437291508957118
76.84099456814556, 0.008620636549675487
77.81386988706521, 0.010872973435823274
78.78674520598489, 0.013645080372620244
79.75962052490453, 0.017370099068941602
80.73249584382421, 0.020402091031063607
81.70537116274389, 0.022914312942535986
82.67824648166354, 0.02464687977803437
83.65112180058321, 0.02594630490465799
84.62399711950289, 0.026206189929982582
85.59687243842254, 0.02611956158820794
86.56974775734221, 0.02594630490465799
87.54262307626189, 0.025253278170458637
88.51549839518154, 0.023780596360285067
89.48837371410121, 0.02196140118301182
90.46124903302089, 0.019709064296864254
91.43412435194054, 0.017456727410716466
92.40699967086022, 0.014944505499244087
93.37987498977989, 0.012259026904221981
94.35275030869954, 0.010959601777598138
95.32562562761922, 0.009400291625649704
96.2985009465389, 0.008187494840800724
96.82916021140414, 0.00784098147370127
98.86335406005438, -0.007578863362233124
99.83622937897402, -0.008705031805306795
100.8091046978937, -0.010091085273705502
101.78198001681338, -0.01147713874210421
102.75485533573303, -0.012170165476303563
103.7277306546527, -0.013123077235827507
104.70060597357235, -0.013123077235827507
105.67348129249203, -0.014075988995351452
106.6463566114117, -0.014075988995351452
107.61923193033135, -0.014075988995351452
108.59210724925103, -0.014075988995351452
109.5649825681707, -0.014075988995351452
110.53785788709035, -0.013123077235827507
111.51073320601003, -0.013123077235827507
112.48360852492968, -0.012516678843403017
113.45648384384936, -0.012170165476303563
114.42935916276903, -0.01130388205855426
115.40223448168868, -0.010784112007904856
116.37510980060836, -0.010177713615480588
117.34798511952803, -0.009311430197731285
118.01130920060962, -0.009311430197731285
123.45056666547868, 0.00784098147370127
124.42344198439832, 0.00784098147370127
125.396317303318, 0.00844737986612576
126.36919262223765, 0.008793893233225214
127.34206794115732, 0.008793893233225214
128.314943260077, 0.008793893233225214
129.28781857899665, 0.008793893233225214
130.26069389791633, 0.008793893233225214
131.233569216836, 0.008793893233225214
132.20644453575565, 0.008793893233225214
133.17931985467533, 0.008793893233225214
134.152195173595, 0.008793893233225214
135.12507049251465, 0.008793893233225214
136.09794581143433, 0.008360751524350674
137.070821130354, 0.00784098147370127
138.04369644927365, 0.00784098147370127
138.92812855738245, 0.00784098147370127
146.97646074117242, -0.007405606678683396
147.9493360600921, -0.007405606678683396
148.92221137901174, -0.007405606678683396
149.71820027630966, -0.007405606678683396
Loading
Loading