Analytic integration for Bx and By #418
Replies: 8 comments
-
Hi @SaVicente, |
Beta Was this translation helpful? Give feedback.
-
@SaVicente have you tried to compile your code? I implemented the calculation of |
Beta Was this translation helpful? Give feedback.
-
@SaVicente I proposed to reactivate CI on branch
This will help keep the code clean. |
Beta Was this translation helpful? Give feedback.
-
@SaVicente I just fixed a few compilation warnings, now the code compile and runs well even when calling your function (but of course the function doesn't modify existing arrays, as the Helmholtz solver is not called). |
Beta Was this translation helpful? Give feedback.
-
Hipace++ has style guidelines, in particular no tab and no end-of-line whitespaces. Could you make sure your editor complies? |
Beta Was this translation helpful? Give feedback.
-
@SaVicente When do you think you'll have time to clean up the calculation of the source terms? When you give me a green light I'll take care of calling the solver, so we can run the actual first simulation with this option. Looking forward! |
Beta Was this translation helpful? Give feedback.
-
PR #437 shows that the fields are not correct with the analytic integration approach, so there's probably a bug somewhere. To reproduce the image, after compiling the code on rm -r diags ; ../../build/bin/hipace inputs_normalized hipace.wandpic=1 And then execute the following Python lines: import numpy as np
%matplotlib notebook
import matplotlib.pyplot as plt
from openpmd_viewer import OpenPMDTimeSeries
field = 'Ez'
ts = OpenPMDTimeSeries('./diags/hdf5/')
F,m = ts.get_field(field=field, iteration=1)
plt.figure()
plt.imshow(F[:,F.shape[1]//2,:], aspect='auto')
plt.colorbar()
plt.tight_layout() The input file is
|
Beta Was this translation helpful? Give feedback.
-
@WeiqunZhang the input file in the previous message is good for correctness testing. If you want to look at performance, I suggest using this one: this one has a fixed number of beam particles while the other one has a variable number (fixed number per cell, which spuriously dominates everything when going to higher resolution). |
Beta Was this translation helpful? Give feedback.
-
@SaVicente we can use this discussion as a chat, so we can interact more easily. I created a timeline here #356, listing the tasks on a weekly basis, so we can look at the progress and clearly see the next steps. Could you look at it, tick the boxes regularly for tasks already done, and let me know ahead of time if you need help for a task? If you have any question, just post a message in this discussion.
Beta Was this translation helpful? Give feedback.
All reactions