-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Difference between Probe and Field Diagnostics using BTIS3 scheme #758
Comments
Hello, Do you observe the same phenomenon without the BTIS3? Normally it does not affect directly the grid fields, but it can do it indirectly by acting on the macro-particle movement, which in turn affects the fields. |
I can try to see if choosing same number of grid points for |
Yes, my guess is that it is something related to the interpolation of the Probes. PS in 1D you should be able to use a dt/dx even closer to 1, to make the B-TIS3 work even better, but I would repeat the tests keeping the dt fixed for the moment for coherence |
I can confirm that if I choose as many points as in the |
Thank you, to know this you can repeat the test with and without the B-TIS3 scheme, although I doubt that the result will change. Remember that the Probes are not just the field at a certain grid point, they interpolate the field as if they were macro-particles, thus using a shape function with finite extent which is larger than one grid point. For this reason they may damp high-frequency oscillations seen in the Field diagnostic. |
Ok. Indeed, |
If there are high frequencies in the Field, the interpolation made by Probes will inevitably reduce the oscillation amplitudes. If the high-frequency components are significant, I am not surprised that a low-pass filter like an interpolation yields significantly different results. To reduce the file size, is there a reason for not dumping a subset of the grid in the If you think that these oscillations are only numerical noise, you may try to further increase the number of macro-particles. |
Field diagnostic used to be really slow in past. That's why I started using Probes. I guess now the Field diagnostic is also fast enough that I could use it instead of the Probe, with this subset feature. I mean these high-frequency oscillations are only important for a certain class of laser-plasma interactions. As long as the diagnostic is able to resolve laser frequency/oscillations, it is fine. In my case, I had an extremely high resolution |
I'll close the issue then, feel free to reopen it or to open a new one if you need. |
So you suggest that despite high resolution chosen for the Probe diagnostic, a factor of 3 lower laser amplitude compared to the Field diagnostic is justified? If this is true then Probe diagnostic is not useful for the purpose it was created in SMILEI. Also if it is indeed an interpolation issue then what is your confidence level for using the subset feature in the Field diagnostic? In that case too, there is an interpolation involved. |
The behaviour of Probes is to sample fields as if they were macro-particles at the requested positions, i.e. with an interpolation which uses a finite extent shape function. By mathematical definition an interpolation of a highly varying field can yield a value significantly different from the field at one point, so I don't see a contradiction mathematically, independently of what could have been their initial purpose. All diagnostics have a defined behaviour, which may or may not be suited for a given case. If you think that it may not be suited for what you want for this particular case, you are free to choose to use them or not. The subgrid feature of the Fields does not use an interpolation as Probes. I cannot give an ad-hoc confidence level, you are the best placed to test it on your specific case. |
I am using
BTIS3
scheme to study the laser propagation in e-p plasmas. I always preferred in past usingProbe
because of the data size. However, I had to check the output ofField
diagnostic and I noticed that both diagnostics give different answers for the laser field propagation in the plasma. I am using latest commits from GitHub forSMILEI
. I paste below the Namelist where I only make change forellipticity
of the laser pulse. I also paste my plotting scripts forProbe
andField
diagnostics and corresponding results. You can see for theCP
laser pulse, difference is quite huge (factor of 3
) and for theLP
laser pulse, it is smaller. This is really puzzling...Plotting scripts, first for
Probe
diagnosticand then
Field
diagnosticAnd the results for
CP
laser pulse (firstField
and thenProbe
diagnostics)and
LP
laser pulse (firstField
and thenProbe
diagnostics)The text was updated successfully, but these errors were encountered: