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

Bug? refineMesh boxToCell negative coordinates

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

Reply
 
LinkBack Thread Tools Display Modes
Old   June 20, 2011, 07:49
Default Bug? refineMesh boxToCell negative coordinates
  #1
Senior Member
 
Join Date: Nov 2010
Posts: 113
Rep Power: 6
lindstroem is on a distinguished road
Hi all,

I am wondering if it is a bug or I am just "blind".

I added a simple testCase - a box [ (-1 -1 0) (1 1 1) ]

When I run refineMesh with
Code:
topoSetSources (

     boxToCell
     {
           box (0 0 0) (1 1 1) ;
     }

);
everything is fine, but if I change it to
Code:
topoSetSources (

     boxToCell
     {
           box (0 0 0) (-1 1 1) ;
     }

);
no cells are selected. Am I doing something wrong? Is it supposed to behave like that? Or have I just not searched well enough? Thanks for help!
Attached Files
File Type: zip testCaseRefineMesh.zip (21.0 KB, 14 views)
lindstroem is offline   Reply With Quote

Old   June 20, 2011, 07:54
Default
  #2
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 12
Bernhard is on a distinguished road
I think your box is defined inside out like this, something like this may solve it:
box (-1 0 0) (0 1 1)
Bernhard is offline   Reply With Quote

Old   June 20, 2011, 08:06
Default
  #3
Senior Member
 
Join Date: Nov 2010
Posts: 113
Rep Power: 6
lindstroem is on a distinguished road
thanks, your right! Didn't know there's a "inside out" when a box is described with two points..

thanks!
lindstroem 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
channelFoam for a 3D pipe AlmostSurelyRob OpenFOAM 3 June 24, 2011 13:06
blockMesh error ... balkrishna OpenFOAM Pre-Processing 0 August 17, 2010 02:39
BlockMesh FOAM warning gaottino OpenFOAM Native Meshers: blockMesh 7 July 19, 2010 14:11
Bug in mesh tools: cellSet, refineMesh, ...? alexm OpenFOAM Bugs 0 August 10, 2009 12:46
Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Native Meshers: blockMesh 10 April 2, 2007 14:00


All times are GMT -4. The time now is 07:06.