Skip to content
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

3d from circ interp #311

Merged
merged 4 commits into from
Mar 26, 2021
Merged

Conversation

hightower8083
Copy link
Contributor

presently the method construct_3d_from_circ gets field value at (x_i, y_i) from the upper cell node r_i.
In some case this may provide a lower accuracy, e.g. in some particular cases the full integral of laser Ex**2 field could differ by up to a few percents from its real value (calculated on the actual cylindrical grid).

This PR adds a linear interpolation to this method and increases the accuracy. For example, in the default example lwfa_script.py modified with Nr = 350 and Nz = 1800 the discrepancy in the total laser energy estimate is decreased from 0.054% to 0.002%.

@RemiLehe
Copy link
Member

Looks good! Thanks a lot for this PR!

@RemiLehe RemiLehe merged commit c6603cd into openPMD:dev Mar 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants