|
[Sponsors] |
May 22, 2007, 14:57 |
The last cell in a cellZone do
|
#1 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
The last cell in a cellZone does not get written (got lost during the index-shifting). The patch to repair fluentMeshToFoam.L would be:
Index: fluentMeshToFoam.L ================================================== ================= --- fluentMeshToFoam.L (revision 92) +++ fluentMeshToFoam.L (working copy) @@ -1588,14 +1588,14 @@ << " of type " << type << " starting at " << start() - 1 << " ending at " << end() - 1 << " to cellSet." << endl; - labelList cls(end() - start()); + labelList cls(end() - start() +1); // Mark zone cells, used for finding faces boolList zoneCell(pShapeMesh.nCells(), false); // shift cell indizes by 1 label nr=0; - for (label celli = (start() - 1); celli < (end() - 1); celli++) + for (label celli = (start() - 1); celli <= (end() - 1); celli++) { cls[nr]=celli; zoneCell[celli] = true;
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
CellZones to solve different eq in different zones | ivan_cozza | OpenFOAM Running, Solving & CFD | 13 | October 24, 2019 17:07 |
[Commercial meshers] FluentMeshToFoam errorplease help me | andycong | OpenFOAM Meshing & Mesh Conversion | 18 | November 5, 2007 17:43 |
[Salome] Definition of cellZones | sradl | OpenFOAM Meshing & Mesh Conversion | 2 | September 13, 2007 11:27 |
[Commercial meshers] FluentMeshToFoam no set written | kian | OpenFOAM Meshing & Mesh Conversion | 2 | May 25, 2007 13:04 |
[Netgen] Import stl file netgen writes segmentation faulterror | unoder | OpenFOAM Meshing & Mesh Conversion | 8 | October 2, 2005 11:26 |