blueCFD / Core

Coordination repository for the blueCFD-Core: Issue tracking, Wiki, project webpage and miscellaneous scripts
http://bluecfd.github.io/Core
53 stars 10 forks source link

blockMesh fails with many errors, is it an installation issue or my geometry is wrong? #185

Closed Foadsf closed 2 years ago

Foadsf commented 2 years ago

Following this post and the comments on this post, I was advised to post my blockMeshDict file here

blockMeshDict.zip

to see if I have an installation problem with blueCFD OpenFOAM package on my non-privileged Windows machine, and/or there are issues with my mesh file. You may see the error messages here.

wyldckat commented 2 years ago

Quick answer: The error message you should be looking at is this one:

--> FOAM FATAL ERROR:
face 1 in patch 0 does not have neighbour cell face: 4(12 17 5 0)

    From function Foam::labelList Foam::polyMesh::facePatchFaceCells(const faceList&, const labelListList&, const faceListList&, Foam::label) const
    in file meshes/polyMesh/polyMeshFromShapeMesh.C at line 118.

FOAM aborting

The remaining errors/warnings are for helping diagnose where the issue might have come from, but in this situation, they won't be of much use.

To solve this issue, you will need to resort to the isolate-and-conquer strategy: figure out the issues, one block at a time, with patches not explicitly declared at first.

You can confirm if your installation has some kind of issue, if you run the tutorial basic/potentialFoam/cylinder, which you can do with the following commands:

run
cp -r $FOAM_TUTORIALS/basic/potentialFoam/cylinder .
cd cylinder
./Allrun
wyldckat commented 2 years ago

Attached is the log file log.blockMesh you can expect from running the tutorial I mentioned above: log.blockMesh.txt

wyldckat commented 2 years ago

Side note: Please don't forget to mention in the thread at CFD-Online about this answer.

Foadsf commented 2 years ago

the ./Allrun command finishes with no errors:

Running blockMesh on /home/ofuser/cylinder
Running potentialFoam on /home/ofuser/cylinder
Running postProcess on /home/ofuser/cylinder

so I assume my blueCFD installation is OK, right?

any idea how I can fix the

--> FOAM FATAL ERROR:
face 1 in patch 0 does not have neighbour cell face: 4(12 17 5 0)

    From function Foam::labelList Foam::polyMesh::facePatchFaceCells(const faceList&, const labelListList&, const faceListList&, Foam::label) const
    in file meshes/polyMesh/polyMeshFromShapeMesh.C at line 118.

FOAM aborting

error message? Here you may see the schematic representation of my geometry:

  

A cleaned-up version of the mesh with a more reasonable numbering here blockMeshDict.zip

wyldckat commented 2 years ago

You can inspect the content of the log file with any of the following commands:

nano log.blockMesh
less log.blockMesh
cat log.blockMesh

As I explained before, isolate and conquer... you can start by commenting out all patches, e.g., by adding /* and */ before and after each list:

/*
patch1
{
   ....
}

...

patch10
{
   ....
}

*/
Foadsf commented 2 years ago

I solved part of the problem: blockMeshDict.zip

and I have a rough idea of where the rest of the problems are. But in the meantime, can you be kind to help me know what this error

 cannot load PDB helper DLL
Error occurred with cv2pdb, have stripped binary as a workaround.

means? Should I do something about it or just ignore it for now?

wyldckat commented 2 years ago

Quick answer: https://github.com/blueCFD/Core/discussions/186

Foadsf commented 2 years ago

BTW, @wyldckat it would be great to have you and the rest of the blueCFD folks in the OpenFOAM Discord channel.

wyldckat commented 2 years ago

@Foadsf:

  1. Given that the channel is named "Elmer", doesn't inspire much confidence in its objective...
  2. Discord is too transient and temporary. "Proper" forums are preferred, hence CFD-Online. If anything, a "Discourse" forum mode would be preferable.
  3. Last but not least: https://www.cfd-online.com/Forums/blogs/wyldckat/4438-hanging-my-volunteer-gloves-moving-new-phase-my-life.html
Foadsf commented 2 years ago

Dear Bruno @wyldckat ,