Aorta.geo gmsh1/5/2024 Assuming I was able to accomplish the same with the API, how do I then refer to the three new points that the scaled spline goes through, for example, if I wanted to draw a line between the start point of the original spline and that of the scaled spline? Am I missing something here? I have tried, for example, to call () before attempting to call copy(), but this had no effect.įinally, when I use the dilate transformation in the Gmsh GUI using Modules - Geometry - Elementary entities - Transform - Scale, checking the Apply scaling on copy option in the dialog, on the example spline from above, I indeed get a scaled version of the curve as expected, including the three points. The error code, 1, seems to indicate that the tag of the original spline ( s1) cannot be found when copy() is called. I get ValueError: ('gmshModelGeoCopy returned non-zero error code: ', 1). Secondly, when I try to make a copy of a spline like in this example: p1 = (-1, 0.5, 0, 0.1) But is there any way to get the full Gmsh script out of the API? I assume this has something to do with the _unrolled part. This extension does the trick mostly, but it seems that any meshing operations (such as marking curves as transfinite) or transformations (such as dilate) are not written to the output file when using gmsh.write('test.geo_unrolled'). geo_unrolled extension is supported for the gmsh.write() function, but not just. I looked through the source code of the Gmsh API and found that the. There are a few issues I am running into:įirst of all, I would like to be able to write Gmsh script files (. I am trying to write a script that will automatically mesh geometries for CFD analysis using the Gmsh Python API.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |