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

Changes for reading and post-processing OpenPMD data files #36

Open
wants to merge 36 commits into
base: master
Choose a base branch
from

Conversation

krishivbhatia
Copy link

Hello Dr. Bozolla, 

My name is Krishiv Bhatia, and I am a high school student studying at Mountain View High School in Mountain View, CA. I have been doing my research internship under the mentorship of  Dr. Erik Schnetter at the Perimeter Institute of Theoretical Physics, ON, CA, for the last 1.5 years on Einstein Toolkit and Kuibit.

I have successfully changed the Kuibit source code to read and post-process OpenPMD data files. If you remember, we exchanged emails on Aug 1 and Aug 8, 2022. I found your guidance to be very helpful, and that allowed me to complete my project.

I have also sent you an email, but the major changes made to the Kuibit code in cactus_grid_functions.py are as follows:

  • Changes in class AllGridFunctions: The class will read the OpenPMD files using OpenPMD-api and parse the files to get variables. Then add variables to var_list 
  • Add class: OneGridFunctionOpenPMD(BaseOneGridFunction): The class will read the data from the <openPMD.Mesh_Record_Component of dimensionality '3'> for the corresponding variable. The grid_from_dataset method gets the chunk offset and extent and returns a UniformGrid object. The get_dataset method loads the chunk data

Once the changes were complete, I referred to your tutorial below to read the grid functions, get the variables, and plot them using UniformGrid objects by writing Python scripts. 
https://sbozzolo.github.io/kuibit/dev/tutorials/cactus_grid_functions.html

I have provided some of the plots obtained in my email.

Thanks, and I must mention I have enjoyed working on Kuibit.  I aspire to major in Physics during my undergrad studies, and this experience will greatly help me!  I hope you will find my changes satisfactory, and I look forward to your feedback. 

Kind Regards,
Krishiv Bhatia

krishivbhatia and others added 30 commits January 19, 2023 02:17
SciPy 1.10.0 has a bug in the interpolation routines:

scipy/scipy#17718
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.

None yet

2 participants