|
[Sponsors] |
![]() |
![]() |
#1 |
New Member
Byron Piper
Join Date: Jan 2025
Posts: 2
Rep Power: 0 ![]() |
Can someone please tell me why the GMSH Python API is obsessed with combining curve loops for no reason? I'm trying to create a surface between 4 curves, my aerofoil (divided into three separate elements) and the domain boundary. However, despite having 4 statements adding 4 SEPARATE curve loops, in the .geo file there is only one curve loop that contains all elements. This is a problem because GMSH throws an error saying that the curve loop is incorrect. Well yea, that's why I didn't create it like that, but no it has to combine them for some reason.
Why does it do this? My other script does the exact same thing but doesn't have this problem. Which I understand isn't a very helpful thing to say but it's true. There is nothing different that the other script does in terms of GMSH interfacing that would result in a different outcome. This issue is mindboggling. As far as I can understand the curve loops are only added when a surface is added, but I have 4 separate curve loop declarations! So separate them! I tried specifying a tag for each of them but that did nothing. Code: Code:
domain_curve = gmsh.model.geo.addCurveLoop([line1, line2, line3, line4]) # Aerofoil curves base_curve = gmsh.model.geo.addCurveLoop([base_spline]) slat_curve = gmsh.model.geo.addCurveLoop([slat_spline]) flap_curve = gmsh.model.geo.addCurveLoop([flap_spline]) surface = gmsh.model.geo.addPlaneSurface([domain_curve, base_curve, slat_curve, flap_curve]) |
|
![]() |
![]() |
![]() |
Tags |
gmsh |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Gmsh] gmshToFoam generates patches with 0 faces and 0 points | Simurgh | OpenFOAM Meshing & Mesh Conversion | 4 | August 25, 2023 08:58 |
OpenFOAM error | Vinay Kumar V | Main CFD Forum | 0 | February 20, 2020 10:17 |
OpenFOAM extended 4.0 Error with Multinode Set-up | Liweix | OpenFOAM Running, Solving & CFD | 1 | February 18, 2020 01:50 |
[Gmsh] Extrude on gmsh | Pedro Felix | OpenFOAM Meshing & Mesh Conversion | 0 | October 30, 2019 13:33 |
CFX4.3 -build analysis form | Chie Min | CFX | 5 | July 13, 2001 00:19 |