{"id":19824991,"url":"https://github.com/zpreisler/patchy2d","last_synced_at":"2025-07-26T20:38:35.163Z","repository":{"id":103042888,"uuid":"136099848","full_name":"zpreisler/patchy2d","owner":"zpreisler","description":"Simulation software for patchy particles in 2d","archived":false,"fork":false,"pushed_at":"2018-11-14T00:57:20.000Z","size":15684,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"rods","last_synced_at":"2025-01-11T08:51:38.953Z","etag":null,"topics":["2d","c","computer-simulation","opengl","scientific","sdl2","self-assembly"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zpreisler.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-06-05T00:58:49.000Z","updated_at":"2022-04-06T21:15:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"c9857a76-3c76-4785-962a-b6e3ae29c715","html_url":"https://github.com/zpreisler/patchy2d","commit_stats":{"total_commits":75,"total_committers":2,"mean_commits":37.5,"dds":"0.040000000000000036","last_synced_commit":"f610b08382cef77e8e93ea0659ff02fef057e0da"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zpreisler%2Fpatchy2d","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zpreisler%2Fpatchy2d/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zpreisler%2Fpatchy2d/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zpreisler%2Fpatchy2d/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zpreisler","download_url":"https://codeload.github.com/zpreisler/patchy2d/tar.gz/refs/heads/rods","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241181392,"owners_count":19923431,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["2d","c","computer-simulation","opengl","scientific","sdl2","self-assembly"],"created_at":"2024-11-12T11:06:39.447Z","updated_at":"2025-02-28T16:29:34.029Z","avatar_url":"https://github.com/zpreisler.png","language":"C","readme":"# Patchy 2d\n![license](https://img.shields.io/badge/license-MIT-green.svg)\n\nSimulation software to simulate patchy particles in 2d.\n\n------\n\nThis is a Monte Carlo code. Number of ensembles are supported: Canonical (*NVT*), Grand-Canonical (mu VT), isothermal-isobaric ensemble (*NpT*).\nThe code is also able to simulate more complex particles such as rods composed by number of single discs.\n\nThe code uses Kern-Frenkel interaction potential.\n\n### Prerequisites\nopengl, SDL\n\n### Installing\n\nFirst one needs to compile \u0026 install *lib*\n\n```\ngit clone https://github.com/zpreisler/lib.git\nmake\nmake install\n```\n\nGet the source code\n\n```\ngit clone https://github.com/zpreisler/patchy2d.git\nmake\nmake install\n```\n\n### Examples\n\nFrom the command line\n\n```\npatchy2d  -n three_patch -s 10000000 -N 512 --npatch 3 --sigma_well 1.1 --patch_width 7 -g 0 -b 30 30 -e 7 --pmod 100 -m 1000\n```\nThe above will generate 512 3-patch particles with interaction range 0.1 and the patch width 7\n\n### Patchy particles\n![Snapshot](doc/three_patch.gif)\n\n### Rods\n![Snapshot](doc/rods_c.png)\n\n__Usage:__ patchy2d\u003cbr\u003e\n[-n] [--name] {name:} Name\u003cbr\u003e\n[-s] [--step] {step:} Number of MC steps\u003cbr\u003e\n[-N] [--specie] {specie:} Species\u003cbr\u003e\n[--new_sigma] {(null)} Update sigma\u003cbr\u003e\n[--new_width] {(null)} Update width\u003cbr\u003e\n[--new_mu] {(null)} Update mu\u003cbr\u003e\n[--new_angle] {(null)} Update angles\u003cbr\u003e\n[-b] [--box] {box:} Simulation box lengths x and y\u003cbr\u003e\n[-c] [--copy] {copy:} Copy the simulation box in x and y direction\u003cbr\u003e\n[-e] [--epsilon] {epsilon:} epsilon -- interaction strength\u003cbr\u003e\n[--end_epsilon] {end_epsilon:} end epsilon -- final interaction strength\u003cbr\u003e\n[-p] [--pressure] {pressure:} pressure\u003cbr\u003e\n[-l] [--lambda] {lambda:} lambda\u003cbr\u003e\n[-L] [--lambda_coupling] {lambda_coupling:} lambda coupling\u003cbr\u003e\n[--uy] {uy:} uy -- box tilt\u003cbr\u003e\n[--max_move] {maximum_displacement:} Maximum displacement\u003cbr\u003e\n[--max_rot] {maximum_rotation:} Maximum rotation\u003cbr\u003e\n[--max_vol] {maximum_volume:} Maximum volume change\u003cbr\u003e\n[--max_uy] {maximum_shape:} Maximum shape change\u003cbr\u003e\n[--max_dsigma] {maximum_dsigma:} Maximum dsigma\u003cbr\u003e\n[-m] [--mod] {mod:} Write modulus\u003cbr\u003e\n[--pmod] {pmod:} Print modulus\u003cbr\u003e\n[-o] [--optimize] {optimize:} Step size optimization on/off\u003cbr\u003e\n[-v] [--verbose] {verbose:} Verbose mode on/off\u003cbr\u003e\n[--snapshot] {snapshot:} Snapshot mode on/off\u003cbr\u003e\n[--seed] {seed:} Seed\u003cbr\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzpreisler%2Fpatchy2d","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzpreisler%2Fpatchy2d","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzpreisler%2Fpatchy2d/lists"}