This line of output Info : Running 'gmsh C:\Users\pcnou\AppData\Local\Temp\tmppouz68km.geo -3 -nopopup -format msh2 -o C:\Users\pcnou\AppData\Local\Temp\tmp5es89ie5.msh' geo file: link, but did not work neither. I first tried with this mesh link that is the one that I expect to work with, but I'm not sure the mesh itself does not have any issues. Is it a problem of the mesh itself or am I doing something wrong with Gmsh3D? Any help will be highly appreciated. Inde圎rror: index -1 is out of bounds for axis 0 with size 0Īnd the same happens when I use the. > 1010 maxVertIdx = allVerts 1 # add one to offset zeroġ011 vertGIDtoIdx = nx.ones(maxVertIdx, 'l') * -1 # gmsh ID -> vertexCoords idxġ012 vertexCoords = nx.empty((len(allVerts), ordDimensions)) ~\Anaconda3\envs\Ansys\Lib\site-packages\fipy\meshes\gmshMesh.py in _vertexCoordsAndMap(self,ġ008 allVerts = nx.unique(nx.array(allVerts, dtype=nx.INT_DTYPE)) # remove dups > 817 vertexCoords, vertIDtoIdx = self._vertexCoordsAndMap(cellsToGmshVerts)Ĩ19 # translate Gmsh IDs to `vertexCoord` indices ~\Anaconda3\envs\Ansys\Lib\site-packages\fipy\meshes\gmshMesh.py in read(self)Ĩ16 parprint("numcells %d" % numCellsTotal) > 1993 self._orderedCellVertexIDs_data) = () ~\Anaconda3\envs\Ansys\Lib\site-packages\fipy\meshes\gmshMesh.py in _init_(self, arg, communicator, > 1 mesh = Gmsh3D(join(output,'case_1.msh2'),communicator=serialComm) # Doesn't work msh2 file but then the following error appears: Inde圎rror Traceback (most recent call last) Info : Done writing 'C:\Users\pcnou\AppData\Local\Temp\tmp5es89ie5.msh' Info : Writing 'C:\Users\pcnou\AppData\Local\Temp\tmp5es89ie5.msh'. Info : Done reading 'C:\Users\pcnou\AppData\Local\Temp\tmppouz68km.geo' Info : Reading 'C:\Users\pcnou\AppData\Local\Temp\tmppouz68km.geo'. Info : Running 'gmsh C:\Users\pcnou\AppData\Local\Temp\tmppouz68km.geo -3 -nopopup -format msh2 -o C:\Users\pcnou\AppData\Local\Temp\tmp5es89ie5.msh' I get the same error as other similar posts, but the proposed solutions do not seem to work for me: GmshException: Gmsh hasn't produced any cells! Check your Gmsh code. I am trying to import to Fipy a 3D mesh previously generated with Gmsh using the Gmsh3D function, like this: mesh = Gmsh3D(join(output,'case_1.msh'),communicator=serialComm)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |