{"id":29132236,"url":"https://github.com/beforerr/swd_simulation","last_synced_at":"2025-07-13T19:38:39.752Z","repository":{"id":235519765,"uuid":"767248777","full_name":"Beforerr/swd_simulation","owner":"Beforerr","description":null,"archived":false,"fork":false,"pushed_at":"2024-06-01T05:00:50.000Z","size":212250,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-06-01T06:21:59.808Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://beforerr.github.io/swd_simulation/","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Beforerr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-03-05T00:30:10.000Z","updated_at":"2024-06-01T06:22:00.896Z","dependencies_parsed_at":"2024-06-01T06:22:00.709Z","dependency_job_id":"1703d7cc-3ed1-4edb-9092-17ce12d87c3f","html_url":"https://github.com/Beforerr/swd_simulation","commit_stats":null,"previous_names":["beforerr/swd_simulation"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Beforerr/swd_simulation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Beforerr%2Fswd_simulation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Beforerr%2Fswd_simulation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Beforerr%2Fswd_simulation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Beforerr%2Fswd_simulation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Beforerr","download_url":"https://codeload.github.com/Beforerr/swd_simulation/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Beforerr%2Fswd_simulation/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262725290,"owners_count":23354449,"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":[],"created_at":"2025-06-30T06:37:34.648Z","updated_at":"2025-06-30T06:37:35.679Z","avatar_url":"https://github.com/Beforerr.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IDsHybridSimulation\n\nThis code base is using the [Julia Language](https://julialang.org/) and\n[DrWatson](https://juliadynamics.github.io/DrWatson.jl/stable/)\nto make a reproducible scientific project named\n\u003e IDsHybridSimulation\n\nTo (locally) reproduce this project, do the following:\n\n0. Download this code base. Notice that raw data are typically not included in the\n   git-history and may need to be downloaded independently.\n1. Open a Julia console and do:\n   ```\n   julia\u003e using Pkg\n   julia\u003e Pkg.add(\"DrWatson\") # install globally, for using `quickactivate`\n   julia\u003e Pkg.activate(\"path/to/this/project\")\n   julia\u003e Pkg.instantiate()\n   ```\n\nThis will install all necessary packages for you to be able to run the scripts and\neverything should work out of the box, including correctly finding local paths.\n\nYou may notice that most scripts start with the commands:\n```julia\nusing DrWatson\n@quickactivate \"IDsHybridSimulation\"\n```\nwhich auto-activate the project and enable local path handling from DrWatson.\n\n\n## Installation (VPIC)\n\n~~`vpic` needs `gcc` to run. `clang` and `oneapi` is not working though it successfully compiles.~~\n\n## Installation (WarpX)\n\n### Local Development (macOS)\n\n- run `just env-macos` to setup the environment, then\n- run `just py-warpx` to install `py-warpx`, for more details, see [justfile](justfile).\n\nNotes:\n\n- `OpenMPI requires both C and Fortran compilers!`\n- `gcc` is not well supported in macOS: Installed by `spack` with `gcc` has bugs when compiling `openblas`.\n    - [openblas 0.3.24 fails to build on aarch64-apple-darwin (all versions) in Homebrew · OpenMathLib/OpenBLAS](https://github.com/OpenMathLib/OpenBLAS/issues/4212) #issue\n- warpx installed by `conda` has no `MPI` and `2d/3d` support.\n\n```\nspack env create warpx\nspack env activate warpx\nspack add py-warpx@develop ^warpx~openpmd\nspack add ccache\nspack concretize\nfor i in {1..4}; do nohup spack install \u003e\u003e install.txt 2\u003e\u00261 \u0026 done\nspack install\n```\n\nUsing pip to build is slow\n\n```\nexport BUILD_PARALLEL=8\nexport WARPX_MPI=ON\npython3 -m pip wheel -v git+https://github.com/ECP-WarpX/WarpX.git\npython3 -m pip install pywarpx*whl\n```\n\n### HPC\n\n```\nmodule swap hdf5 hdf5-mpi/1.12.2\nmodule swap fftw fftw-mpi\n\nspack add warpx%oneapi~openpmd dims=\"1,2,3\"\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeforerr%2Fswd_simulation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeforerr%2Fswd_simulation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeforerr%2Fswd_simulation/lists"}