{"id":19708765,"url":"https://github.com/bendudson/isothermal-4field","last_synced_at":"2025-08-12T06:12:48.886Z","repository":{"id":37817483,"uuid":"114756089","full_name":"bendudson/isothermal-4field","owner":"bendudson","description":"Plasma simulation based on BOUT++","archived":false,"fork":false,"pushed_at":"2018-06-16T21:51:47.000Z","size":177,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-27T18:31:09.692Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bendudson.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}},"created_at":"2017-12-19T11:16:04.000Z","updated_at":"2022-06-22T14:39:28.000Z","dependencies_parsed_at":"2022-08-19T11:20:18.702Z","dependency_job_id":null,"html_url":"https://github.com/bendudson/isothermal-4field","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bendudson/isothermal-4field","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendudson%2Fisothermal-4field","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendudson%2Fisothermal-4field/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendudson%2Fisothermal-4field/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendudson%2Fisothermal-4field/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bendudson","download_url":"https://codeload.github.com/bendudson/isothermal-4field/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendudson%2Fisothermal-4field/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270011187,"owners_count":24511901,"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","status":"online","status_checked_at":"2025-08-12T02:00:09.011Z","response_time":80,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-11-11T21:44:49.113Z","updated_at":"2025-08-12T06:12:48.856Z","avatar_url":"https://github.com/bendudson.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"Isothermal model for FCI simulations\n====================================\n\n[![License](https://img.shields.io/badge/license-GPL-blue.svg)](https://img.shields.io/badge/license-GPL-blue.svg)\n\nEvolves plasma density, vorticity, parallel current and momentum.\n\nThis code was written using [BOUT++ version 4.1](https://github.com/boutproject/BOUT-dev/releases).\n\n    Copyright 2017 Ben Dudson, University of York. Email: benjamin.dudson@york.ac.uk\n\n    This program is free software: you can redistribute it and/or modify\n    it under the terms of the GNU Lesser General Public License as published by\n    the Free Software Foundation, either version 3 of the License, or\n    (at your option) any later version.\n\n    This program is distributed in the hope that it will be useful,\n    but WITHOUT ANY WARRANTY; without even the implied warranty of\n    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n    GNU Lesser General Public License for more details.\n\n    You should have received a copy of the GNU Lesser General Public License\n    along with this program.  If not, see \u003chttp://www.gnu.org/licenses/\u003e.\n\nTokamaks\n--------\n\nTo generate a grid, use [Zoidberg](http://bout-dev.readthedocs.io/en/latest/user_docs/zoidberg.html)\nwith a 'g' EQDSK format file.\n\n```python\nimport numpy as np\nimport zoidberg\n\nfield = zoidberg.field.GEQDSK(\"g014220.00200\") # Read magnetic field\n\ngrid = zoidberg.grid.rectangular_grid(100, 10, 100,\n       1.5-0.1, # Range in R (max - min)\n       2*np.pi, # Toroidal angle\n       3., # Range in Z\n       xcentre=(1.5+0.1)/2, # Middle of grid in R\n       yperiodic=True) # Periodic in toroidal angle\n\n# Create the forward and backward maps\nmaps = zoidberg.make_maps(grid, field)\n\n# Save to file\nzoidberg.write_maps(grid, field, maps, gridfile=\"tokamak.fci.nc\")\n\n# Plot grid points and the points they map to in the forward direction\nzoidberg.plot.plot_forward_map(grid, maps)\n```\n\nThen run the test case\n\n```bash\n$ make\n$ ./isothermal-4field -d tokamak\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbendudson%2Fisothermal-4field","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbendudson%2Fisothermal-4field","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbendudson%2Fisothermal-4field/lists"}