CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Bugs

FluentMeshToFoam writes too small cellZones

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 22, 2007, 14:57
Default The last cell in a cellZone do
  #1
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
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
gschaider is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 17:29.