{"id":16575025,"url":"https://github.com/jellespijker/fluids","last_synced_at":"2025-09-13T10:40:00.606Z","repository":{"id":89607475,"uuid":"164323327","full_name":"jellespijker/fluids","owner":"jellespijker","description":"Solve a steady-state fluid problem. This repo is mirrored from my Gitlab","archived":false,"fork":false,"pushed_at":"2019-01-21T08:00:51.000Z","size":43,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2025-03-05T18:34:23.254Z","etag":null,"topics":["boost","eigen3","fluid-solver"],"latest_commit_sha":null,"homepage":"https://gitlab.com/HAN-thesis/fluids","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jellespijker.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":"2019-01-06T16:08:58.000Z","updated_at":"2019-01-21T08:00:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"4e84c53e-4ef2-47ff-80cc-a17f6c58c97a","html_url":"https://github.com/jellespijker/fluids","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jellespijker/fluids","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jellespijker%2Ffluids","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jellespijker%2Ffluids/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jellespijker%2Ffluids/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jellespijker%2Ffluids/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jellespijker","download_url":"https://codeload.github.com/jellespijker/fluids/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jellespijker%2Ffluids/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274950083,"owners_count":25379564,"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-09-13T02:00:10.085Z","response_time":70,"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":["boost","eigen3","fluid-solver"],"created_at":"2024-10-11T21:46:25.943Z","updated_at":"2025-09-13T10:40:00.584Z","avatar_url":"https://github.com/jellespijker.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fluids\n\nSolve a steady-state fluid problem. This project makes use of [Boost::units](https://www.boost.org/doc/libs/1_69_0/doc/html/boost_units.html)\nZero-overhead dimensional analysis and unit/quantity manipulation and conversion.\n\n# Use in your own projects\n\nLink to library using cmake, see example `CMakeLists.txt` below:\n```cmake\ncmake_minimum_required(VERSION 3.8)\nproject(example_program)\n\nfind_package(Fluids)\n\nadd_executable(example_program example_program.cpp)\ntarget_link_libraries(example_program Fluids::fluids)\n``` \n\nSource code:\n```c++\n#include \u003cmemory\u003e\n#include \u003ciostream\u003e\n\n#include \u003cfluids/Liquid.h\u003e\n#include \u003cfluids/Pipes.h\u003e\n#include \u003cfluids/System.h\u003e\n#include \u003cfluids/Solver.h\u003e\n\nint main (int argc, char *argv[]) {\n      Fluids::Liquid water;\n      auto system = std::make_shared\u003cFluids::System\u003e(water, 6);\n      auto p0 = std::make_shared\u003cFluids::Pipes\u003e(0.2 * si::meter, 10. * si::meter, 46e-5 * si::meters);\n      system-\u003eadd_FluidComponent(p0, 0, 1);\n      auto p1(p0);\n      *p1-\u003eGet_Diameter() = 0.3 * si::meter;\n      system-\u003eadd_FluidComponent(p1, 1, 2);\n      auto p2(p0);\n      *p2-\u003eGet_Length() = 20. * si::meter;\n      system-\u003eadd_FluidComponent(p2, 2, 3);\n      auto p3(p0);\n      system-\u003eadd_FluidComponent(p3, 3, 4);\n      auto p4(p0);\n      system-\u003eadd_FluidComponent(p4, 4, 5);\n      auto p5(p0);\n      system-\u003eadd_FluidComponent(p5, 1, 4);\n      system-\u003eSet_Known_Speed(0, 2 * si::meters_per_second);\n      system-\u003eSet_Known_Static_Pressure(0, static_cast\u003cquantity\u003csi::pressure\u003e\u003e(2. * si::bar));\n      system-\u003eSet_Known_Static_Pressure(5, static_cast\u003cquantity\u003csi::pressure\u003e\u003e(1. * si::bar));\n      Fluids::Solver solver(system);\n      solver.solve();\n      std::cout \u003c\u003c \"The fluid speed at point 1 is: \" \u003c\u003c *system-\u003eGet_Liquid(1)-\u003eGet_speed();\n}\n\n```\n\n\n## Dependencies\n\n- [Boost](https://www.boost.org/) (Units)\n- [Eigen3](http://eigen.tuxfamily.org/index.php?title=Main_Page) (non-linear-optimization)\n\nfor development:\n\n- [GTest](https://github.com/google/googletest/)\n\n## Release\nThe latest main release can be downloaded from:\n\n- [libfluids-Linux.tar.gz](https://gitlab.com/HAN-thesis/fluids/-/jobs/artifacts/master/raw/libfluids-Linux.tar.gz?job=release)\n- Windows to come (but maybe you should think about running a real OS)\n\nThe latest develop release can be downloaded from:\n\n- [libfluids-Linux.tar.gz](https://gitlab.com/HAN-thesis/fluids/-/jobs/artifacts/develop/raw/libfluids-Linux.tar.gz?job=release)\n- Windows to come (but maybe you should think about running a real OS)\n\n### Build from source\n\nmake sure you have [Boost](https://www.boost.org/), [Eigen3](http://eigen.tuxfamily.org/index.php?title=Main_Page) and [GTest](https://github.com/google/googletest/) installed.\n\n```bash\n$ mkdir build\n$ cd build\n$ cmake -DCMAKE_INSTALL_PREFIX=/usr/local ..\n$ make -j 4\n$ sudo make install\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjellespijker%2Ffluids","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjellespijker%2Ffluids","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjellespijker%2Ffluids/lists"}