Skip to content

Conversation

@hsinhaoHHuang
Copy link
Collaborator

Two Python scripts are added for the analysis of ELBDM simulation data.

  • In add_ELBDM_derived_fields.py, some useful derived fields, e.g., velocity fields and energy density, in ELBDM are defined.
    • Users can access these fields after calling Add_ELBDM_derived_fields(ds) on their dataset.
  • In plot_ELBDM_derived_fields.py, the slices of the derived fields are plotted as a usage demo.

The names and symbols of these fields largely depend on my own conventions and are probably not formal. Any comments or suggestions are welcome and appreciated.

@hyschive hyschive requested a review from vivi235711 January 15, 2025 01:47
@hyschive hyschive added the psidm Wave dark matter label Jan 15, 2025
@hsinhaoHHuang
Copy link
Collaborator Author

Updated to the latest psidm branch.

Copy link
Collaborator

@vivi235711 vivi235711 left a comment

Choose a reason for hiding this comment

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

Thanks for this useful tool! I've tested it with both schemes and found a few issues (see below). Overall, it looks good.

Just a reminder about this related issue:
Support FDM derived fields in yt #364

Do you think yt needs any updates related to that? I think it would be good to include basic fields like Real, Imag, and S in yt.

Copy link
Collaborator Author

@hsinhaoHHuang hsinhaoHHuang left a comment

Choose a reason for hiding this comment

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

@vivi235711
Thank you for the review.
I have fixed the bugs you found.
Please help me try again to see whether they are resolved when you have time.

I think once everyone agrees on the name and definition of these derived fields in this PR, we could discuss how to add them in yt.
I am not sure how to make it most user-friendly and understandable.

Copy link
Collaborator

@vivi235711 vivi235711 left a comment

Choose a reason for hiding this comment

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

I've tested these scripts, and they work well. The field names and definitions look good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

psidm Wave dark matter

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants