{"id":23701384,"url":"https://github.com/zoziha/h5part","last_synced_at":"2026-01-29T12:30:14.818Z","repository":{"id":108041934,"uuid":"513061297","full_name":"zoziha/h5part","owner":"zoziha","description":"H5PART is a structured HDF5 data format that stores multiple time-step data for particle simulation scenarios and can be used for ParaView / VisIt visualization.","archived":false,"fork":false,"pushed_at":"2023-06-25T04:32:23.000Z","size":51,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-30T09:37:11.078Z","etag":null,"topics":["bindings","fortran","fortran-package-manager","h5part","hdf5","hdf5-wrapper","mesonbuild","paraview-plugin","particles","sph"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zoziha.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-BSD","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-07-12T08:31:56.000Z","updated_at":"2023-06-08T13:21:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"a93f507a-2dd3-454f-9565-42eeb5d45e3c","html_url":"https://github.com/zoziha/h5part","commit_stats":{"total_commits":9,"total_committers":1,"mean_commits":9.0,"dds":0.0,"last_synced_commit":"0242688b374b3b151c4cd8ab6f61d6a36bb2de58"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoziha%2Fh5part","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoziha%2Fh5part/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoziha%2Fh5part/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoziha%2Fh5part/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zoziha","download_url":"https://codeload.github.com/zoziha/h5part/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239776822,"owners_count":19695172,"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":["bindings","fortran","fortran-package-manager","h5part","hdf5","hdf5-wrapper","mesonbuild","paraview-plugin","particles","sph"],"created_at":"2024-12-30T09:37:16.757Z","updated_at":"2026-01-29T12:30:14.790Z","avatar_url":"https://github.com/zoziha.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# H5PART\n\n![h5part](https://img.shields.io/badge/h5part-v1.2.20230625-brightgreen)\n[![license](https://img.shields.io/badge/License-BSD--3-important)](LICENSE-BSD)\n![Language](https://img.shields.io/badge/-Fortran-734f96?logo=fortran\u0026logoColor=white)\n\nH5PART is a structured HDF5 data format that stores multiple time-step data for particle simulation\nscenarios and can be used for ParaView / VisIt visualization.\n\n## Dependencies\n\n- HDF5 \u003e= 1.10.6 .\n\n## Usage\n\nOnly FPM and Meson are supported, other build systems can copy source files\n(`./src/*.f90`, `./h5part/inc/*.f90`, `./h5part/src/*.c`) directly,\nand `gfortran` compiler is tested.\n\n````toml\n[dependencies]\nh5part = { git = \"https://github.com/zoziha/h5part\" }\n````\n\n## Example\n\n```sh\n\u003e fpm run --example --all  # run the example\n```\n\n```fortran\n!\u003e Paraview example\nprogram main\n\n    use h5part_module\n    implicit none\n\n    integer(8) :: file_id, status, npoints, i\n    real(8) :: origin, spacing\n    real(8), allocatable :: x(:), y(:), z(:), px(:), py(:), pz(:)\n    integer(8), allocatable :: id(:)\n\n    npoints = 99_8\n\n    allocate (x(npoints), y(npoints), z(npoints))\n    allocate (px(npoints), py(npoints), pz(npoints))\n    allocate (id(npoints))\n\n    ! generate random data\n    do i = 1, int(npoints)\n        x(i) = -50.0_8 + randn()\n        y(i) = -50.1_8 + randn()\n        z(i) = -50.2_8 + randn()\n        px(i) = 0.3 + real(i)\n        py(i) = 0.4 + randn()\n        pz(i) = 0.5 + 10*randn()\n        id(i) = i\n    end do\n\n    ! open file for writing\n    file_id = h5pt_openw(\"./example/pv.h5part\")\n    if (file_id == 0) error stop 'h5part is occupied ?!'\n\n    ! set file step\n    status = h5pt_setstep(file_id, step=1_8)\n\n    status = h5pt_writefileattrib_string(file_id, \"author\", \"foobar\")\n    status = h5pt_writefileattrib_string(file_id, \"date\", \"2022-06-27\")\n\n    status = h5pt_setnpoints(file_id, npoints=npoints)\n\n    ! x, y, z must be written to file, which is the coordinate of particles\n    status = h5pt_writedata(file_id, \"x\", x)\n    status = h5pt_writedata(file_id, \"y\", y)\n    status = h5pt_writedata(file_id, \"z\", z)\n    ! px, py, pz are the properties of particles\n    status = h5pt_writedata(file_id, \"px\", px)\n    status = h5pt_writedata(file_id, \"py\", py)\n    status = h5pt_writedata(file_id, \"pz\", pz)\n    status = h5pt_writedata(file_id, \"id\", id)\n\n    ! close file\n    status = h5pt_close(file_id)\n\ncontains\n\n    real(8) function randn()\n\n        call random_number(randn)\n\n    end function randn\n\nend program main\n```\n\nAfter normal run, `example/hv.h5part` will be generated, which can be opened by ParaView.\n\n## Link\n\n- [h5part](https://dav.lbl.gov/archive/Research/AcceleratorSAPP/index.html)\n- [pdlfs/h5part](https://github.com/pdlfs/h5part)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzoziha%2Fh5part","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzoziha%2Fh5part","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzoziha%2Fh5part/lists"}