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

Patchy particle pressure #66

Merged
merged 31 commits into from
Oct 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
fba606e
Add patchy-particle-pressure tests
tcmoore3 Sep 19, 2023
91d4f86
Add patchy_particle_pressure to init and project files
tcmoore3 Sep 19, 2023
c9b49dc
Fix typos
tcmoore3 Sep 21, 2023
82be5bb
Add pressure
tcmoore3 Sep 21, 2023
387ecde
test
tcmoore3 Sep 21, 2023
2a38685
undo test
tcmoore3 Sep 21, 2023
495aff9
test
tcmoore3 Sep 21, 2023
3f4d5e6
Undo test
tcmoore3 Sep 21, 2023
e4ba892
Change min number of cpu ranks
tcmoore3 Sep 22, 2023
f307199
Update statepoint based on NVT sims
tcmoore3 Sep 25, 2023
6bc2cbe
Update dashboard
tcmoore3 Oct 4, 2023
2293b2e
Update job initialization and aggregation
tcmoore3 Oct 4, 2023
1de4ca5
Update plotting
tcmoore3 Oct 4, 2023
e00350d
Changes during testing
tcmoore3 Oct 4, 2023
47c8463
Merge branch 'patchy-particle-pressure' of github.com:glotzerlab/hoom…
tcmoore3 Oct 4, 2023
28d5a8e
Update statepoints based on nvt simulations
tcmoore3 Oct 4, 2023
760c339
Allow floats for short job walltime in config
tcmoore3 Oct 8, 2023
f0e6510
Update patchy particle pressure.
tcmoore3 Oct 8, 2023
308755e
Parse max_walltime as a float
tcmoore3 Oct 9, 2023
acb65fa
Address PR comments
tcmoore3 Oct 9, 2023
065a5b2
Update square well + repulsive shoulder pressure
tcmoore3 Oct 10, 2023
d12c1dc
Update filenames
tcmoore3 Oct 10, 2023
4d0022c
Update filenames
tcmoore3 Oct 10, 2023
7d2fe5f
Fix figure title
tcmoore3 Oct 10, 2023
133e718
Fix figure titles
tcmoore3 Oct 10, 2023
042f443
Update statepoints and run lengths
tcmoore3 Oct 19, 2023
67d01fe
Add docstring to job_sorter
tcmoore3 Oct 19, 2023
4388fbb
Uncomment subprojects in init.py
tcmoore3 Oct 19, 2023
5327c47
flake8
tcmoore3 Oct 19, 2023
feb2858
Remove calls to communicator.walltime on rank 0
tcmoore3 Oct 19, 2023
c4f8f6a
Remove unused state points.
tcmoore3 Oct 23, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,25 @@ def job_title(self, job):
f"rho={job.statepoint.density}"
elif (job.statepoint.subproject == 'hard_disk'
or job.statepoint.subproject == 'hard_sphere'
or job.statepoint.subproject == 'simple_polygon'):
or job.statepoint.subproject == 'simple_polygon'
or job.statepoint.subproject == 'patchy_particle_pressure'):
return f"{job.statepoint.subproject}: rho={job.statepoint.density}"
else:
raise RuntimeError("Unexpected job")

def job_sorter(self, job):
"""Sort jobs."""
if job.statepoint.subproject == 'patchy_particle_pressure':
return (
job.sp.density,
job.sp.pressure,
job.sp.temperature,
job.sp.chi,
job.sp.replicate_idx,
)
else:
return job.statepoint.num_particles


if __name__ == "__main__":
ValidationDashboard(modules=modules).main()
4 changes: 2 additions & 2 deletions hoomd_validation/config_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ def __init__(self, config_file_path=DEFAULT_CONFIG_PATH):
self["max_cores_submission"] = int(
config.get("max_cores_submission", 16))
self["max_gpus_submission"] = int(config.get("max_gpus_submission", 1))
self["max_walltime"] = int(config.get("max_walltime", 24))
self["short_walltime"] = int(config.get("short_walltime", 2))
self["max_walltime"] = float(config.get("max_walltime", 24))
self["short_walltime"] = float(config.get("short_walltime", 2))
self["replicates"] = int(config.get("replicates", 32))
self["enable_llvm"] = bool(config.get("enable_llvm", True))
self["enable_gpu"] = bool(config.get("enable_gpu", True))
Expand Down
2 changes: 2 additions & 0 deletions hoomd_validation/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import hard_disk
import hard_sphere
import simple_polygon
import patchy_particle_pressure

subprojects = [
alj_2d,
Expand All @@ -22,6 +23,7 @@
hard_disk,
hard_sphere,
simple_polygon,
patchy_particle_pressure,
]

project = signac.init_project(path=config.project_root)
Expand Down
Loading