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

Concave particle pressure validation #61

Merged
merged 14 commits into from
Sep 15, 2023
Merged

Concave particle pressure validation #61

merged 14 commits into from
Sep 15, 2023

Conversation

tcmoore3
Copy link
Member

Description

Performs cross validation using NVT and NPT simulations of a hard particle with a concave shape. Computes the pressure in NVT simulations, and then runs NPT simulations and calculates the density the mean pressure.

Motivation and context

Validates the implementation of the SDF-based pressure calculation where the expansive contribution to the pressure is nonzero (i.e., for non-convex hard particles).

Resolves #43

How has this been tested?

Ran on PSC-Bridges2. Results:
image

Checklist:

@tcmoore3 tcmoore3 requested review from a team, SchoeniPhlippsn and joaander and removed request for a team and SchoeniPhlippsn August 21, 2023 19:56
@tcmoore3
Copy link
Member Author

pre-commit.ci autofix

@tcmoore3
Copy link
Member Author

pre-commit.ci autofix

Copy link
Member

@joaander joaander left a comment

Choose a reason for hiding this comment

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

Thanks! Please post the analysis results including the nvt_gpu jobs (run on Great Lakes or Delta).


subprojects = [alj_2d, lj_fluid, lj_union, hard_disk, hard_sphere]
subprojects = [
alj_2d, lj_fluid, lj_union, hard_disk, hard_sphere, simple_polygon
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
alj_2d, lj_fluid, lj_union, hard_disk, hard_sphere, simple_polygon
alj_2d, lj_fluid, lj_union, hard_disk, hard_sphere, simple_polygon,

And run pre-commit to format one item per line.

# Copyright (c) 2022-2023 The Regents of the University of Michigan.
# Part of HOOMD-blue, released under the BSD 3-Clause License.

"""Hard disk equation of state validation test."""
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
"""Hard disk equation of state validation test."""
"""Simple polygon equation of state validation test."""

Comment on lines 43 to 47
# reference statepoint from: http://dx.doi.org/10.1016/j.jcp.2013.07.023
# Assume the same pressure for a 128**2 system as this is in the fluid
# from first test: mean +- std_err_means =
# 6.205344838518146 +- 0.0011239315686705335
# based on nvt sims at density = 0.75 over 32 replicas
Copy link
Member

Choose a reason for hiding this comment

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

Not all of these comment lines can be true at the same time. Remove the invalid ones.

RANDOMIZE_STEPS = 20_000
EQUILIBRATE_STEPS = 100_000
RUN_STEPS = 2_500_000
RESTART_STEPS = RUN_STEPS // 10
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
RESTART_STEPS = RUN_STEPS // 10
RESTART_STEPS = RUN_STEPS // 50

Shorten the restart period from ~30 minutes down to ~6 (tested on cheme-hodges).

@tcmoore3
Copy link
Member Author

Here are the results from the GPU jobs run on Delta.
image

@tcmoore3 tcmoore3 requested a review from joaander September 13, 2023 18:17
Copy link
Member

@joaander joaander left a comment

Choose a reason for hiding this comment

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

Looks good! Thanks!

@joaander joaander merged commit 955b7a1 into trunk Sep 15, 2023
1 check passed
@joaander joaander deleted the expansive-sdf branch September 15, 2023 17:11
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.

Validate expansive SDF.
2 participants