{"id":18628062,"url":"https://github.com/jborrow/gogogadget","last_synced_at":"2025-11-04T02:30:22.875Z","repository":{"id":82399429,"uuid":"76469912","full_name":"JBorrow/GoGoGadget","owner":"JBorrow","description":"Initial Conditions Generator for Isolated Disk Galaxies in Gadget","archived":false,"fork":false,"pushed_at":"2017-03-16T17:32:56.000Z","size":15,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-27T06:41:35.618Z","etag":null,"topics":["conditions","cosmology","gadget","gadget2","ics","initial","science","simulations"],"latest_commit_sha":null,"homepage":null,"language":"Python","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/JBorrow.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}},"created_at":"2016-12-14T15:05:10.000Z","updated_at":"2024-03-15T01:05:59.000Z","dependencies_parsed_at":"2023-06-15T12:45:50.046Z","dependency_job_id":null,"html_url":"https://github.com/JBorrow/GoGoGadget","commit_stats":{"total_commits":22,"total_committers":2,"mean_commits":11.0,"dds":"0.045454545454545414","last_synced_commit":"9eb0384aba585d181a43a474c951ca9071864d14"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JBorrow%2FGoGoGadget","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JBorrow%2FGoGoGadget/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JBorrow%2FGoGoGadget/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JBorrow%2FGoGoGadget/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JBorrow","download_url":"https://codeload.github.com/JBorrow/GoGoGadget/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239425324,"owners_count":19636346,"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":["conditions","cosmology","gadget","gadget2","ics","initial","science","simulations"],"created_at":"2024-11-07T04:44:58.633Z","updated_at":"2025-11-04T02:30:22.832Z","avatar_url":"https://github.com/JBorrow.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"GoGoGadget\n============\n\nA Generator for Isolated Disk Galaxies in Gadget\n------------------------------------------------\n\nThis script generates the initial conditions and parameterfile for a gadget run with an isolated galaxy. It is inteded for use with the fixed potential [InterStellarGadget](https://github.com/JBorrow/InterStellarGadget). It also provides a much more readable and portable way to write gadget parameterfiles.\n\nTo set up a run, simply run the parser script followed by the .ini file, for example from the 'example' directory:\n```\npython3 ../parser.py test.ini\n```\nThis will generate the initial conditions (sans dark matter halo, of course). These follow exponential radial profiles and sech^2 profiles for the gas and stars.\n\nA quick note: using the ```--pfile``` option will ensure that the script only generates the parameterfile, and then quits.\n\nThe custom (i.e. non base-gadget) paramters are:\n```\n[ParameterFile]\n\n# Name and location of gadget file\nParameterFile: test.param\n\n\n[NFW]\n\n# Scale lengths and masses are given in simulation units\nNFWc: 40\nNFWScaleRadius: 20\nHaloMass: 1e12\n\n\n[Gas]\n\nGasScaleRadius: 10\n# Particles are generated out to radius GasScaleRadius*MaxGas\nMaxGas: 30\nGasScaleHeight: 1\nGassMass: 1e10\nGasParticles: 1e3\nGasDispersion: 0\n\n\n[Stars]\n\nStarScaleRadius: 10\nMaxStar: 30\nStarScaleHeight: 2\nStarMass: 5e10\nStarParticles: 1e3\nStarDispersion: 0\n```\n\nWarranty/etc.\n-------------\n\nOf course, this software is supplied with the usual:\n\n+ No warranty\n+ No guarantee that it will produce convergent results\n+ No guarantee that it will not blow up your computer.\n\nThis script is not parallelized well, in particular the routines that generate the exponential profile are very lousy.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjborrow%2Fgogogadget","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjborrow%2Fgogogadget","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjborrow%2Fgogogadget/lists"}