CheckMesh Error when importing from Pointwise
Hello,
When I do a checkMesh in openfoam after importing a grid from pointwise I get he following error Code:
Create time The mesh I am trying to import is a multi-element wing, with different domains. When I set the BCs in pointwise for OpenFOAM is there a way to prescribe something on the interfaces between the multiple regions? is this a cause of concerned? I also don't understand why is says that the grid is not 1D nor 2D. Any help is appreciated! Thank you! james |
Greetings James,
AFAIK, OpenFOAM does not work in the same way as some other CFD applications, when it comes to the topic of "interfaces". It prefers to have things more well defined, e.g.:
Best regards, Bruno |
Hello Bruno,
thanks for the quick reply, Well it seems as though my mesh has been constructed as a multi-block mesh. basically what happens is that there are 4 different blocks (one for the flap of the wing, one for the slat, one for the main element and another one for the rest). I presume OpenFOAM is talking about the interfaces between each of the blocks which compose the mesh. Right now in pointwise I am just "ignoring" those blocks if you wish, and when it comes to setting up the boundary conditions, all I do is to define the inlet, outlet, walls and front and back (which I assign it to everything that is not the inlet, the outlet or the walls). I could send you the .p3d file if you wish to take a look at it. Any suggestions? Thanks, James |
Hi James,
Then I guess there are at least 2 possible solutions:
Bruno |
Hi Bruno,
Yeah I think option 1 is not really an option because I tried that the other day and Pointwise refuser to help me out!!! It is very weird. I will take a look at the other thread and give it a shot! Also let me ask you could the other error "Total number of faces on empty patches is not divisible by the number of cells in the mesh. Hence this mesh is not 1D or 2D" in any way be related to me having multiple blocks? Thanks for the help! James |
Hi James,
Quote:
Best regards, Bruno |
Thank you Bruno!! I will try it and hopefully it will work ;)
|
2 Attachment(s)
Hi Bruno,
So I tried your suggestions and they did not work. The problem that I am having currently (see attached images) is that when I set the BCs in pointwise to convert the mesh to OpenFOAM format, I have about 4 parts (highlighted in red in any of the images) that are neither part of the geometry nor 'empty' patches. As you can see they are the boundaries of the blocks. These extend to the end of the domain. When I tried the stitchMesh it did not work (I always get an error telling me I have not define a proper 'type' for these entities, and by type I mean patch, empty and things like that)... I am pretty stuck with it, because these boundaries have nothing to do with the geometry and they are only interfaces between blocks! Any suggestions as to how to proceed/fix this issue? Thanks for the help! James |
Hi James,
Could you created a (very) small example with the mesh already in OpenFOAM format, so I can try this myself? If the compressed case is too big for the forum, try using Dropbox, SkyDrive, Google Drive or something like that. Best regards, Bruno |
Hi bruno!
I have uploaded the case with the mesh in OpenFOAM format to Dropbox. I left the undefined interfaces (Highlighted in red on the previous post) untouched. https://www.dropbox.com/s/fhihp0waik...multi.tar.gz?m Thanks for your help, James |
1 Attachment(s)
Hi James,
OK, attached is a package that provides additional files for your case, which attempts to split the regions apart, rename the interfacing patch into several patches and then put it back together. Problem is that it doesn't work :( But I think I understand why. First, an explanation on how to use the attached file:
So, what you need to at least do is: extract in Pointwise the actual connections between these regions, into STL or OBJ file format. This way it'll be possible to use surfaceToPatch to assign the faces for these 1:1 patches. There is another way, but highly complicated and I didn't bother trying it myself. There is an application in OpenFOAM named autoPatch. If you run: Code:
autoPatch 15 -overwrite Best regards, Bruno |
Wow!!
Well I will give it a try for sure!! Thanks for Spending your time trying to find a solution. I appreciate it a lot!! Will let you know how it goes but I will definitively need some time ;) Thanks a lot !! James |
Change unspecified to wall in Pointwise?
Hi James:
From your pictures it looks like the unspecified patches in Pointwise are on the tunnel walls. Have you tried setting them to a wall BC in the CAE, Set BCs panel? If they are not on the tunnel walls and are instead interblock connections, Pointwise should automatically recognize them as connections and set the OpenFOAM patches that way. If that is not happening, I would use the Grid, Merge tool in Pointwise to find out why they are not matching. Hope this helps, Rick |
Hi Rick,
Yeah I tried to do that but it really did not work at all (because at the end you end up having a flat plate attached to the trailing edge of every element and therefore you get an unreasonable result). I did manage to get the OpenFOAM mesh working (I had to split the domain into many more subdomains to get rid of red stuff). My problem now is that the mesh contains high AR and skewed cells and it is not working :( Cheers, James |
James:
I'd be happy to take a look at the grid and see if I can make some improvements if you want to send it to me. Rick |
Hi Rick,
Thanks for helping me out. Here is the case, https://www.dropbox.com/sh/atig1aq2isk0kqt/6VoarfDsQn I basically tried to run the case in steady mode with S-A model but it did not work. I have been assuming the cause for the problem is the high AR and skewed cells! The case gives a floating point exception after a while. Thanks for the help! James |
Hi James:
Actually, I was hoping you could send the Pointwise project (.pw) file, so I could try to correct any problems there. Could you send that also? Thanks, Rick |
Oh I see!
I will do that tomorrow since I am not at the uni at the moment! I will send you the original file for you to take a look at it if you wish. Thanks, James |
Hi Rick,
I have managed to upload the .pw file onto the following link https://www.dropbox.com/sh/atig1aq2isk0kqt/6VoarfDsQn As I said earlier, the main problems of the mesh appear to be the cell skewness and the Aspect ratio. It think that is what is causing the problems in OpenFOAM. Thanks for the help!!! James |
James:
Here is an updated Pointwise mesh. https://www.dropbox.com/s/ofuciuznlw...-smoothed-1.pw I made a few changes to the original mesh: 1. Merged some duplicate connectors. This was causing the error about the number of faces on empty patches. 2. Ran the Pointwise elliptic solver to try to reduce the number of skewed cells. The skewed cells were all at the sharp corner at the base of the cusp of the cove region on the slat. There are still 8 skewed cells there, and I don't think they can be cured unless the grid topology in that region is changed. For an idea of a good topology to use, check out Figure 6 in this article about meshing an airfoil for aeroacoustics. 3. Ran the elliptic solver on the mesh around the main wing element to reduce the number of high aspect ratio cells. There are still 3 left toward the middle of the upper wing surface. To eliminate them either the chordwise spacing needs to be reduced locally or the spacing normal to the wall needs to be increased. I would recommend decreasing the chordwise spacing, but I do not have the geometry so I could not do this and maintain the correct wing shape. Hope this helps. Rick |
All times are GMT -4. The time now is 08:50. |