{ "info": { "author": "Lepy", "author_email": "lepy@mailbox.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Topic :: Utilities" ], "description": "# gmsh_api\n\nsimple package to use gmsh via the original gmsh_api \n(https://gitlab.onelab.info/gmsh/gmsh/blob/master/api/gmsh.py).\n\nChristophe Geuzaine is a hero.\n\n## Usage\n\n # gmsh_api package with some useful classes \n import gmsh_api\n # original gmsh-api from gmsh package\n import gmsh_api.gmsh as gmsh\n \n gmsh.initialize()\n \n gmsh.option.setNumber(\"General.Terminal\", 1)\n gmsh.option.setNumber(\"Mesh.Algorithm\", 5) # delquad\n gmsh.option.setNumber(\"Mesh.RecombineAll\", 1)\n \n gmsh.model.add(\"square\")\n gmsh.model.geo.addPoint(0, 0, 0, 0.6, 1)\n gmsh.model.geo.addPoint(1, 0, 0, 0.6, 2)\n gmsh.model.geo.addPoint(1, 1, 0, 0.5, 3)\n gmsh.model.geo.addPoint(0, 1, 0, 0.4, 4)\n gmsh.model.geo.addLine(1, 2, 1)\n gmsh.model.geo.addLine(2, 3, 2)\n gmsh.model.geo.addLine(3, 4, 3)\n \n # try automatic assignement of tag\n line4 = gmsh.model.geo.addLine(4, 1)\n gmsh.model.geo.addCurveLoop([1, 2, 3, line4], 1)\n gmsh.model.geo.addPlaneSurface([1], 6)\n gmsh.model.geo.synchronize()\n gmsh.model.mesh.generate(2)\n #gmsh.write(\"square.unv\")\n \n mesh = gmsh_api.Mesh.from_gmsh(gmsh)\n print(mesh.nodes)\n print(mesh.elements)\n\n## Store mesh properties with pandas dataframes!\n\n### mesh.nodes\n\n nid x y z\n 1 1 0 0 0\n 2 2 1 0 0\n 3 3 1 1 0\n 4 4 0 1 0\n 5 5 0.5 0 0\n 6 6 1 0.522774 0\n 7 7 0.728708 1 0\n 8 8 0.472136 1 0\n 9 9 0.229485 1 0\n 10 10 0 0.786636 0\n 11 11 0 0.55051 0\n 12 12 0 0.289194 0\n 13 13 0.267268 0.304987 0\n 14 14 0.703727 0.740444 0\n 15 15 0.387068 0.62141 0\n 16 16 0.637319 0.370788 0\n 17 17 0.189356 0.818467 0\n \n### mesh.elements\n\n pid elid type n_nodes nodes nidxs\n 0 1 17 shell4 4 [9L, 17L, 15L, 8L] [9L, 17L, 15L, 8L]\n 1 1 18 shell4 4 [15L, 17L, 10L, 11L] [15L, 17L, 10L, 11L]\n 2 1 19 shell4 4 [10L, 17L, 9L, 4L] [10L, 17L, 9L, 4L]\n 3 1 20 shell4 4 [5L, 16L, 15L, 13L] [5L, 16L, 15L, 13L]\n 4 1 21 shell4 4 [6L, 14L, 15L, 16L] [6L, 14L, 15L, 16L]\n 5 1 22 shell4 4 [6L, 16L, 5L, 2L] [6L, 16L, 5L, 2L]\n 6 1 23 shell4 4 [15L, 14L, 7L, 8L] [15L, 14L, 7L, 8L]\n 7 1 24 shell4 4 [15L, 11L, 12L, 13L] [15L, 11L, 12L, 13L]\n 8 1 25 shell4 4 [5L, 13L, 12L, 1L] [5L, 13L, 12L, 1L]\n 9 1 26 shell4 4 [6L, 3L, 7L, 14L] [6L, 3L, 7L, 14L]", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/lepy/gmsh_api", "keywords": "fem mesh", "license": "GPL", "maintainer": "", "maintainer_email": "", "name": "gmsh-api", "package_url": "https://pypi.org/project/gmsh-api/", "platform": "", "project_url": "https://pypi.org/project/gmsh-api/", "project_urls": { "Homepage": "https://github.com/lepy/gmsh_api" }, "release_url": "https://pypi.org/project/gmsh-api/0.1.5/", "requires_dist": null, "requires_python": "", "summary": "gmsh - API for a great Finite Element Mesher", "version": "0.1.5" }, "last_serial": 5687947, "releases": { "0.1.3": [ { "comment_text": "", "digests": { "md5": "fd52f7e933fe7575df5b9d040776b224", "sha256": "9a736d8845bc578c0a5ae76adaed2c038bba85a02fcbff36bee8c71dba7f3f13" }, "downloads": -1, "filename": "gmsh_api-0.1.3.tar.gz", "has_sig": false, "md5_digest": "fd52f7e933fe7575df5b9d040776b224", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 27009371, "upload_time": "2019-03-21T07:25:28", "url": "https://files.pythonhosted.org/packages/8c/3a/38c3f12c75b89b747c1a219391d946a4bb8aca25a127d7af667a38f551fb/gmsh_api-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "5d4482492e6b145a721edaa1cdbfa1f2", "sha256": "966f8a6db56c1fc6b7c46cf5e150f50c3f99d2e22b5f9be5e4305447e08721cf" }, "downloads": -1, "filename": "gmsh_api-0.1.4.tar.gz", "has_sig": false, "md5_digest": "5d4482492e6b145a721edaa1cdbfa1f2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 27009410, "upload_time": "2019-03-22T08:01:29", "url": "https://files.pythonhosted.org/packages/27/f9/57f24706f4dc9c1a8d81aab14205bc4ab02c302e0aaee98808f0d9198e12/gmsh_api-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "bfed76677796eff8a53d9fb66b3f91f3", "sha256": "16513c4d2a39adc9c02dd6ef90df144c53eaba52c67c3b52645c0a48ebf0252c" }, "downloads": -1, "filename": "gmsh_api-0.1.5.tar.gz", "has_sig": false, "md5_digest": "bfed76677796eff8a53d9fb66b3f91f3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 27341892, "upload_time": "2019-08-16T14:38:14", "url": "https://files.pythonhosted.org/packages/bb/64/593fb89065ba7b39b31f1e29b606ec38aeb683a91efe784beda8eaec5153/gmsh_api-0.1.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "bfed76677796eff8a53d9fb66b3f91f3", "sha256": "16513c4d2a39adc9c02dd6ef90df144c53eaba52c67c3b52645c0a48ebf0252c" }, "downloads": -1, "filename": "gmsh_api-0.1.5.tar.gz", "has_sig": false, "md5_digest": "bfed76677796eff8a53d9fb66b3f91f3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 27341892, "upload_time": "2019-08-16T14:38:14", "url": "https://files.pythonhosted.org/packages/bb/64/593fb89065ba7b39b31f1e29b606ec38aeb683a91efe784beda8eaec5153/gmsh_api-0.1.5.tar.gz" } ] }