{"id":21182629,"url":"https://github.com/fandreuz/parametric-propeller-mesh","last_synced_at":"2026-04-28T09:32:17.356Z","repository":{"id":107377342,"uuid":"389900448","full_name":"fandreuz/parametric-propeller-mesh","owner":"fandreuz","description":"Parametrized generation of OpenFOAM configuration files and .obj files as a function of the propeller diameter.","archived":false,"fork":false,"pushed_at":"2021-09-27T08:44:25.000Z","size":834,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-03T01:04:54.981Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/fandreuz.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":"2021-07-27T08:10:28.000Z","updated_at":"2023-06-05T08:24:52.000Z","dependencies_parsed_at":"2023-05-17T07:38:18.125Z","dependency_job_id":null,"html_url":"https://github.com/fandreuz/parametric-propeller-mesh","commit_stats":null,"previous_names":["fandreuz/parametric-propeller-mesh"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fandreuz/parametric-propeller-mesh","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fandreuz%2Fparametric-propeller-mesh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fandreuz%2Fparametric-propeller-mesh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fandreuz%2Fparametric-propeller-mesh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fandreuz%2Fparametric-propeller-mesh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fandreuz","download_url":"https://codeload.github.com/fandreuz/parametric-propeller-mesh/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fandreuz%2Fparametric-propeller-mesh/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32375338,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T09:24:15.638Z","status":"ssl_error","status_checked_at":"2026-04-28T09:24:15.071Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-11-20T17:57:32.824Z","updated_at":"2026-04-28T09:32:17.334Z","avatar_url":"https://github.com/fandreuz.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# parametric-propeller-mesh\nThis package simplifies the configuration of an OpenFOAM mesh  as a function of\nthe dimension of a propeller. It creates an arbitrary number of cylinders (in\n`.obj` files)to define different regions of refinement, as well as the\nconfiguration dictionaries for OpenFOAM tools (i.e. `snappy`).\n\n## Results\n\nThe following image shows the result after the application of `snappy` with\n4 cylinders with refinement values varying from 5 (innermost) to 3\n(`cylinder2`).\n\n![Mesh](images/mesh_resolution.png)\n\n## Installation and usage\nDownload the source code using the command\n\n```\nhttps://github.com/fAndreuzzi/parametric-propeller-mesh.git\n```\n\nThen navigate to the directory downloaded. To use the package use the following\ncommand from your terminal:\n\n```\npython3 script.py your/OpenFOAM/case/directory your/propeller.obj\n```\n\n`your/OpenFOAM/case/directory` is the root directory of your OpenFOAM\nexperiment, the one which contains the directories `constant`, `system`, etc.\n`your/propeller.obj` is an OBJ file which contain the 3D representation of\nyour propeller divided in two regions `propellerTip` and `propellerStem`. In\norder to generate such an `.obj` file you may be interested in the method\n`propeller.Propeller.generate_obj` from the package\n[BladeX](https://github.com/fAndreuzzi/BladeX) (at the moment available only\nin my fork of the project).\n\n![Propeller](images/propeller_image.png)\n\n## Configuration\n\nAt the moment you need to modify the script in order to change the\nconfiguration. We are going to switch to another method as soon as the\ncomplexity increases.\n\n+ `N_of_cylinders`: The number of cylinders used to define different regions\n  of resolution (every cylinder encloses one region);\n+ `cylinder_scales`: A `N x 3` (where `N` is `N_of_cylinders`). Every column\n  is the dimension of the corresponding cylinder on that axis, in terms of\n  propeller diameters (`[2, 1, 2]` means that the cylinder is two diameters big\n  along X and Z, and one diameter big along Y);\n+ `take_available_y`: The amount of Y available space that a cylinder can take\n  in the direction of the propellerTip. For details see the documentation of the\n  function `src.generate_cylinders.compute_cylinder_anchors`. Must contain\n  `N-1` items (where `N` is `N_of_cylinders`) since the outermost cylinder is\n  already anchored to the tail of `propellerStem`.\n\nImportant: cylinders appear always in increasing dimension. This means that\nthe first row of `cylinder_scales` represents the innermost cylinder, and the\nlast one the outermost. Cylinders must not overlap, intersect, or do other weird\nthings.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffandreuz%2Fparametric-propeller-mesh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffandreuz%2Fparametric-propeller-mesh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffandreuz%2Fparametric-propeller-mesh/lists"}