{"id":18628085,"url":"https://github.com/jborrow/1dfinitevolumecode","last_synced_at":"2025-11-04T02:30:23.385Z","repository":{"id":82399010,"uuid":"204743233","full_name":"JBorrow/1DFiniteVolumeCode","owner":"JBorrow","description":"1D Finite Volume Hydrodynamics Code","archived":false,"fork":false,"pushed_at":"2019-08-27T16:22:53.000Z","size":61,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-27T06:41:39.215Z","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":null,"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":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":"2019-08-27T16:21:42.000Z","updated_at":"2023-01-19T09:35:26.000Z","dependencies_parsed_at":"2023-06-15T12:31:02.512Z","dependency_job_id":null,"html_url":"https://github.com/JBorrow/1DFiniteVolumeCode","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/JBorrow%2F1DFiniteVolumeCode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JBorrow%2F1DFiniteVolumeCode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JBorrow%2F1DFiniteVolumeCode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JBorrow%2F1DFiniteVolumeCode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JBorrow","download_url":"https://codeload.github.com/JBorrow/1DFiniteVolumeCode/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":[],"created_at":"2024-11-07T04:45:25.426Z","updated_at":"2025-11-04T02:30:23.355Z","avatar_url":"https://github.com/JBorrow.png","language":"C","readme":"1D Finite Volume Code\n=====================\n\nThis code was produced as part of the [SAMCRHSS2019](http://www-star.st-and.ac.uk/samcss/)\nat the University of St. Andrews in August 2019. This is a 1D finite element code, produced\nusing the information from Bert Vandenbroucke's lectures, and includes both the\nfirst and second order variants. It is written in pure C99, and uses the exact Riemann\nsolver from the [SWIFT](http://swiftsim.com) code.\n\nTo build the code and run it, all you need is a C compiler and python with the matplotlib\nand numpy libraries. You can do this with\n```\nmake all\n```\nwhich will produce two plots, one showing the Sod Shock in 1D with the first order code, and\nthe second showing it with the second order code.\n\nHopefully this code is at least somewhat well strucutured and can be used by others to learn\nmore about these methods.\n\nThe expected result is shown below, with the first order on top and second order on the bottom.\n![1D code](expected_result.png)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjborrow%2F1dfinitevolumecode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjborrow%2F1dfinitevolumecode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjborrow%2F1dfinitevolumecode/lists"}