{"id":19489958,"url":"https://github.com/cchandre/vm15d","last_synced_at":"2026-04-09T20:11:57.710Z","repository":{"id":151252869,"uuid":"362873289","full_name":"cchandre/VM15D","owner":"cchandre","description":"Hamiltonian fluid reduction of the 1.5D Vlasov-Maxwell equations","archived":false,"fork":false,"pushed_at":"2022-09-27T16:03:06.000Z","size":2225,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-08T08:42:40.744Z","etag":null,"topics":["fluid-simulation","fluid-solver","hamiltonian","kinetic-modeling","mathematica","matlab","numpy","plasma-physics","python3","scipy","vlasov-equation","vlasov-solver"],"latest_commit_sha":null,"homepage":"","language":"Mathematica","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cchandre.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":"2021-04-29T16:03:23.000Z","updated_at":"2023-03-24T16:10:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"f8bcc81f-b336-483b-818d-6e30c7a7ae1e","html_url":"https://github.com/cchandre/VM15D","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cchandre%2FVM15D","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cchandre%2FVM15D/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cchandre%2FVM15D/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cchandre%2FVM15D/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cchandre","download_url":"https://codeload.github.com/cchandre/VM15D/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240732048,"owners_count":19848623,"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":["fluid-simulation","fluid-solver","hamiltonian","kinetic-modeling","mathematica","matlab","numpy","plasma-physics","python3","scipy","vlasov-equation","vlasov-solver"],"created_at":"2024-11-10T21:10:34.030Z","updated_at":"2026-04-09T20:11:57.649Z","avatar_url":"https://github.com/cchandre.png","language":"Mathematica","funding_links":[],"categories":[],"sub_categories":[],"readme":"# VM15D : Hamiltonian fluid reduction of the 1.5D Vlasov-Maxwell equations\n\n- **VM15D.nb**: [Mathematica notebook] checks the Jacobi identity and the Casimir invariants for the bracket Bracket[F,G] given by Eq. (6) of the article  *Hamiltonian fluid reduction of the 1.5D Vlasov-Maxwell equations* by C. Chandre and B.A. Shadwick\n\n\n- **GrowthRates.mlx**: [Matlab livescript] computes the growth rates for the linearized equations of motion near a homogeneous equilibrium. It reproduces the figures of the article *Hamiltonian fluid reduction of the 1.5D Vlasov-Maxwell equations* by C. Chandre and B.A. Shadwick\n\n- `VM15D python code`\n  - [`VM15D_dict.py`](https://github.com/cchandre/VM15D/blob/main/VM15D_dict.py): to be edited to change the parameters of the VM15D computation (see below for a dictionary of parameters)\n\n  - [`VM15D.py`](https://github.com/cchandre/VM15D/blob/main/VM15D.py): contains the VM15D class and main functions (not to be edited)\n\n  - [`VM15D_modules.py`](https://github.com/cchandre/VM15D/blob/main/VM15D_modules.py): contains the methods to run VM15D (not to be edited)\n\n  - Once [`VM15D_dict.py`](https://github.com/cchandre/VM15D/blob/main/VM15D_dict.py) has been edited with the relevant parameters, run the file as \n  ```sh\n  python3 VM15D.py\n  ```\n  - NB: in case of error, check your version of the python modules used in the code (see [`modules_version.txt`](https://github.com/cchandre/VM15DD/blob/main/modules_version.txt))\n\n___\n##  Parameter dictionary for VM15D\n\n- *Tf*: double; duration of the integration (in units of *\u0026omega;\u003csub\u003ep\u003c/sub\u003e\u003csup\u003e-1\u003c/sup\u003e*)\n- *alpha*: double; value of the parameter *\u0026alpha;* of the closure\n- *lam*: double; value of the parameter *\u0026lambda;* of the closure\n- *integrator_kinetic*: string ('position-Verlet'); choice of solver for the integration of the Vlasov equation\n- *nsteps*: integer; number of steps in one period of plasma oscillations (1/*\u0026omega;\u003csub\u003ep\u003c/sub\u003e\u003csup\u003e*) for the integration of the Vlasov equation\n- *integrator_fluid*: string ('RK45', ‘RK23’, ‘DOP853’, ‘BDF’, ‘LSODA’); choice of solver for the integration of the fluid equation\n- *precision*: double; numerical precision of the integrator for the fluid equations; threshold for the Fourier transforms\n- *n_casimirs*: integer; number of Casimir invariants to be monitored \n\n- *Lz*: double; the *z*-axis is (-*Lz*, *Lz*)\n- *Lvx*: double; the *vx*-axis is (-*Lvx*, *Lvx*)\n- *Lvz*: double; the *vz*-axis is (-*Lvz*, *Lvz*)\n- *Nz*: integer; number of points in *z* to represent the field variables\n- *Nvx*: integer; number of points in *vx* to represent the field variables\n- *Nvz*: integer; number of points in *vz* to represent the field variables\n- *f_init*: lambda function; initial distribution *f*(*z*,*vx*,*vz*,*t*=0)\n\n- *Kinetic*: list of strings in ['Compute', 'Plot']; list of instructions for the 1.5D Vlasov-Maxwell simulation\n- *Fluid*: list of strings in ['Compute', 'Plot']; list of instructions for the fluid simulation; if contains 'Save', the results are saved in a `.mat` file\n\n- *darkmode*: boolean; if True, plots are done in dark mode\n- *tqdm_display*: boolean; if True, displays a progress bar in the terminal\n\n---\nReference: C. Chandre, B.A. Shadwick, *Hamiltonian fluid reduction of the 1.5D Vlasov–Maxwell equationsn*, [Physics of Plasmas](https://doi.org/10.1063/5.0056155) 28, 092114 (2021); [arXiv:2105.03194](https://arxiv.org/abs/2105.03194)\n\n```bibtex\n@article{chandre2021,\n         title = {Hamiltonian fluid reduction of the 1.5D Vlasov–Maxwell equations},\n         author = {Chandre, C. and Shadwick, B.A.},\n         journal = {Physics of Plasmas},\n         volume = {28},\n         number = {9},\n         pages = {092114},\n         year = {2021},\n         doi = {10.1063/5.0056155},\n         URL = {https://doi.org/10.1063/5.0056155}\n}\n```\n    \nFor more information: \u003ccristel.chandre@cnrs.fr\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcchandre%2Fvm15d","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcchandre%2Fvm15d","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcchandre%2Fvm15d/lists"}