|
[Sponsors] |
[snappyHexMesh] What's wrong with my locationInMesh (0 0 -0.5);? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 28, 2011, 19:06 |
What's wrong with my locationInMesh (0 0 -0.5);?
|
#1 |
Senior Member
Klaus
Join Date: Mar 2009
Posts: 281
Rep Power: 22 |
Hello,
what's wrong with my locationInMesh (0 0 -0.5);? --> FOAM FATAL ERROR: Point (0 0 -0.5) is not inside the mesh or on a face or edge. Bounding box of the mesh (-0.25 -0.5 -1.5) (0.75 0.5 0) I tried plenty of coordinates but I keep getting the same error message. Klaus |
|
December 29, 2011, 04:37 |
|
#2 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings Klaus,
Quote:
Because the "locationInMesh" point is used as a reference for correlating positions of every vertex and geometry face, so it cannot be placed in the same place as any other vertex, line nor face. Good luck! Bruno
__________________
|
||
December 29, 2011, 06:28 |
.... many attempts later, still no luck?!?!
|
#3 |
Senior Member
Klaus
Join Date: Mar 2009
Posts: 281
Rep Power: 22 |
Hello Bruno,
I kept trying to find suitable coordinates for locationInMesh but the error remains. I attached the log file and the dict, maybe the cause is somewhere else?! Klaus |
|
December 29, 2011, 06:52 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Klaus,
At first glance, the only wrong looking thing I can find is that this particular point is too close to the end of the bounding box. I suggest that you create a simple STL file, a cube or something like that, and place it in the same place where your wing is being placed. If it still fails with said cube, package the case with the cube and post it here, so we can confirm if it is really a problem in the dictionary files or if it's your "snappyHexMesh" that is somehow damaged. The other suggestion is to re-test one of the tutorial cases that use snappyHexMesh, to confirm if the utility is working at all! By the way, which OpenFOAM version are you using? Best regards, Bruno
__________________
|
|
December 29, 2011, 10:30 |
still the same problem > here the details
|
#5 |
Senior Member
Klaus
Join Date: Mar 2009
Posts: 281
Rep Power: 22 |
Hello Bruno,
1. I ran the motorBike and the bullet case, in both cases snappyHexMesh worked fine. 2. I use OpenFoam version 2.0.1. (git) 3. I created a cube and tried again, but the problem remains Find attached the case file with the cube. Klaus |
|
December 29, 2011, 17:32 |
A fix, not a solution > How can I move cube.stl?
|
#6 |
Senior Member
Klaus
Join Date: Mar 2009
Posts: 281
Rep Power: 22 |
Hello,
I figured out that the problem exists apparently only, when the z-dimension of the domain is negative (I used that to deal with the x,y,z orientation of my CAD system/stl files generated). When I changed the orientation snappyHexMesh worked. Is there a smart way of moving an object e.g. my cube.stl inside the domain to another position? Klaus |
|
December 29, 2011, 17:36 |
|
#7 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Klaus,
Well, on the case you attached, all I had to do was change: Code:
locationInMesh (0.24912132312 0.49131151412312 -10e-3); Code:
locationInMesh (0.24912132312 0.49131151412312 10e-3); Code:
(-0.25 -0.5 0) (0.75 0.5 1.5) If it does and the other one still doesn't, then try moving the cube to the same quadrant as your wing. I say this because there might be a bug associated to having the whole mesh placed in Z<=0. Although I've now tested this hypothesis and was unable to make it crash. So, all that's left is for you to re-test things on your side! Best regards, Bruno
__________________
|
|
December 29, 2011, 17:39 |
|
#8 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quote:
Code:
surfaceTransformPoints -help Code:
surfaceTransformPoints constant/triSurface/cube.stl constant/triSurface/cube.obj -translate '(1 0 0)' Best regards, Bruno
__________________
Last edited by wyldckat; December 29, 2011 at 17:45. Reason: added "Example:" |
||
December 29, 2011, 20:30 |
The error remains, when the domain mesh is z<=0
|
#9 |
Senior Member
Klaus
Join Date: Mar 2009
Posts: 281
Rep Power: 22 |
Hello Bruno,
I did the test with the cube, positioned exactly where the wing was located in the mesh with z<=0. The error remained: --> FOAM FATAL ERROR: Point (0.249121 0.491312 -1.01236) is not inside the mesh or on a face or edge. Bounding box of the mesh:(-0.25 -0.5 -1.5) (0.75 0.5 0) From function refinementParameters::findCells(const polyMesh&) const in file autoHexMesh/autoHexMeshDriver/refinementParameters/refinementParameters.C at line 107. FOAM exiting The fix is, as you suggested "surfaceTransformPoints": surfaceTransformPoints allows to position, rotate, scale... an object in space, hence it can be positioned in a mesh with z>=0 wherever appropriate. Thank you for your support! Klaus |
|
December 30, 2011, 05:50 |
|
#10 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Klaus,
Could you please post the cube case you have that had that problem? I would like to confirm if this is a bug or just a strange alignment of planets Best regards, Bruno
__________________
|
|
December 30, 2011, 10:02 |
here the case file
|
#11 |
Senior Member
Klaus
Join Date: Mar 2009
Posts: 281
Rep Power: 22 |
Hello Bruno,
find attached the case file for review. Klaus |
|
December 31, 2011, 11:22 |
|
#12 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Klaus,
I was concerned this might be a bug, but I finally found out why you were having problems. The reason was/is simple:
Code:
checkMesh -constant As soon as we use the proper vertex distribution, these problems no longer occur So next time, check your mesh and confirm that things are properly defined Best regards, Bruno
__________________
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[blockMesh] FATAL ERROR: face 6 in patch 2 does not have neighbour cell face: 4(8 9 21 20) | robingilbert | OpenFOAM Meshing & Mesh Conversion | 28 | November 23, 2023 07:32 |
[blockMesh] meshing a cylinder | Nico A. | OpenFOAM Meshing & Mesh Conversion | 6 | June 19, 2017 15:12 |
blockMesh error: ill defined primitiveEntry starting at keyword 'vertices' | mgab | OpenFOAM Pre-Processing | 3 | January 24, 2017 04:03 |
icoFoam- unphysical results | Mirage12 | OpenFOAM Running, Solving & CFD | 2 | July 12, 2013 04:52 |
[blockMesh] square cylinder obstacle | fferroni | OpenFOAM Meshing & Mesh Conversion | 2 | May 26, 2012 05:48 |