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

FluentMeshToFoam writes too small cellZones

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

Reply
 
LinkBack Thread Tools Display Modes
Old   May 22, 2007, 13:57
Default The last cell in a cellZone do
  #1
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,915
Rep Power: 40
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
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 On
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 7 June 30, 2011 10:53
FluentMeshToFoam errorplease help me andycong OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 18 November 5, 2007 17:43
Definition of cellZones sradl OpenFOAM Mesh Utilities 2 September 13, 2007 10:27
FluentMeshToFoam no set written kian OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 2 May 25, 2007 12:04
Import stl file netgen writes segmentation faulterror unoder Open Source Meshers: Gmsh, Netgen, CGNS, ... 8 October 2, 2005 10:26


All times are GMT -4. The time now is 04:51.