Skip to content

Commit

Permalink
Merge pull request #66 from glotzerlab/patchy-particle-pressure
Browse files Browse the repository at this point in the history
Patchy particle pressure
  • Loading branch information
joaander authored Oct 23, 2023
2 parents b194c3f + c4f8f6a commit b6ab253
Show file tree
Hide file tree
Showing 6 changed files with 875 additions and 18 deletions.
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

0 comments on commit b6ab253

Please sign in to comment.