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

Density probability distribution calculation #441

Open
wants to merge 15 commits into
base: develop
Choose a base branch
from
Open

Conversation

lks1248
Copy link
Collaborator

@lks1248 lks1248 commented Apr 17, 2024

Adds a parallel implementation to calculate the Density probability distribution function for the turbulence test

@lks1248 lks1248 self-assigned this Apr 17, 2024
@lks1248 lks1248 requested a review from rmcabezon April 20, 2024 16:29
@lks1248
Copy link
Collaborator Author

lks1248 commented Apr 23, 2024

This version doesn't throw an error if it cannot load all particles, I need to look at that before merging.


h5reader->closeStep();

T localTotalDensity = 0.0;
Copy link
Collaborator

Choose a reason for hiding this comment

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

This variable should be double to avoid loss of precision. (rho in float is fine)

Copy link
Collaborator

Choose a reason for hiding this comment

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

But: why do you even compute this, instead of just dividing the total mass by the volume of the simulation box?

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.

3 participants