CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[Gmsh] Serious problem with mesh strategy?????

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By tareqkh

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 1, 2015, 06:15
Default Serious problem with mesh strategy?????
  #1
Senior Member
 
tareqkh's Avatar
 
CFD
Join Date: Nov 2010
Location: United States
Posts: 243
Rep Power: 17
tareqkh is on a distinguished road
Hello Fomers,

I am studying flow over a C-D with a flange. The reason of this study is to do gird convergence and a validations at the same time. I have made the mesh using Gmsh. The dimensions of the problem is as follows:

The domain and dimensions
Attachment 41213
Attachment 41214

As I mentioned, I have made the mesh and set up the required patches for the boundary conditions. However, when I exported the mesh and did gmshTofoam, I got an empty patch around the (Shroud), even though I defined it. I do not know whether this comes from the mesh strategy that I did or from not selecting the right patches. I have tried so many times, but no progress so far. I was wondering if somebody had faced the same problem before could guide me to resolve this issue. I am attaching the geo file of the problem.

Attachment 41215

Thanks in advance,

Last edited by tareqkh; August 3, 2015 at 08:28.
tareqkh is offline   Reply With Quote

Old   August 3, 2015, 03:11
Default
  #2
Senior Member
 
Join Date: Mar 2015
Posts: 250
Rep Power: 12
KateEisenhower is on a distinguished road
Hello Tareqkh,

thanks for your mail. This problem looks interesting. I'll have a look at your file later today. Please note that I am not able to respond to your message via Mail. I think this has to do sth. with your cfd-online settings.

Best regards,

Kate
KateEisenhower is offline   Reply With Quote

Old   August 3, 2015, 03:18
Default Hello Kate
  #3
Senior Member
 
tareqkh's Avatar
 
CFD
Join Date: Nov 2010
Location: United States
Posts: 243
Rep Power: 17
tareqkh is on a distinguished road
I would like to express my gratitude for you kind reply and hospitality. I have recognized that I have to add thickness to the problem to get the patch, but the problem gets more messy and unable to manage it. I can send the update file if you want.

Kind regards,
tareqkh is offline   Reply With Quote

Old   August 3, 2015, 03:20
Default
  #4
Senior Member
 
Join Date: Mar 2015
Posts: 250
Rep Power: 12
KateEisenhower is on a distinguished road
You're welcome. Yes, please upload it!

Kate
KateEisenhower is offline   Reply With Quote

Old   August 3, 2015, 03:29
Default Updated File
  #5
Senior Member
 
tareqkh's Avatar
 
CFD
Join Date: Nov 2010
Location: United States
Posts: 243
Rep Power: 17
tareqkh is on a distinguished road
Here is and an updated file of the shrouded diffuser by adding thickness.

Thanks again,

Last edited by tareqkh; August 3, 2015 at 08:28.
tareqkh is offline   Reply With Quote

Old   August 3, 2015, 05:54
Default
  #6
Senior Member
 
Join Date: Mar 2015
Posts: 250
Rep Power: 12
KateEisenhower is on a distinguished road
Quote:
Originally Posted by tareqkh View Post
Here is and an updated file of the shrouded diffuser by adding thickness.

Attachment 41231

Thanks again,
Hello again,

I had a look at your file. First, I have a few questions? How did you create your geometry? Did you enter your points and lines by hand?
Am I right that you want to define a 2D domain? Please note that OpenFoam is not capable of solving 2D problems. Your domain should have a thickness of one cell, than you have to assign empty patches. I have never worked with OpenFoam in 2D, but I guess this is the way to do it.
Furtheron I am getting two errors when loading the file. This is because you defined spline 9 and spline 10 two times.
And I am not able to create a 2D mesh with this setup.
Also you have to create physical entities when you want to export your mesh (look at the official user guide for this).

So please explain the problem a bit more. If I am able I would be glad to help you.

Best regards,

Kate
KateEisenhower is offline   Reply With Quote

Old   August 3, 2015, 06:12
Default
  #7
Senior Member
 
tareqkh's Avatar
 
CFD
Join Date: Nov 2010
Location: United States
Posts: 243
Rep Power: 17
tareqkh is on a distinguished road
Quote:
Originally Posted by KateEisenhower View Post
Hello again,

I had a look at your file. First, I have a few questions? How did you create your geometry? Did you enter your points and lines by hand?
Am I right that you want to define a 2D domain? Please note that OpenFoam is not capable of solving 2D problems. Your domain should have a thickness of one cell, than you have to assign empty patches. I have never worked with OpenFoam in 2D, but I guess this is the way to do it.
Furtheron I am getting two errors when loading the file. This is because you defined spline 9 and spline 10 two times.
And I am not able to create a 2D mesh with this setup.
Also you have to create physical entities when you want to export your mesh (look at the official user guide for this).

So please explain the problem a bit more. If I am able I would be glad to help you.

Best regards,

Kate
Thank you again for your quick reply. Here are answers to your question:

Quote:
Originally Posted by KateEisenhower View Post
I had a look at your file. First, I have a few questions? How did you create your geometry? Did you enter your points and lines by hand?
Kate
From the dimensions in the beginning of the post, I attached a pictures with dimensions of the problem. Then I used excel to make the points and extract them to gmsh. So, it clearly by hand, but it is based on the geometry of the problem. If you have any idea on how to do it easily that would be perfect.

Quote:
Originally Posted by KateEisenhower View Post
Am I right that you want to define a 2D domain? Please note that OpenFoam is not capable of solving 2D problems. Your domain should have a thickness of one cell, than you have to assign empty patches. I have never worked with OpenFoam in 2D, but I guess this is the way to do it.
I did the command extrude in order to export the mesh to OpenFoam and then using the command gmshToFoam. I also fixed the points that you mentioned, so please see the attached file, which will answer your questions. I am currently concern about the mesh strategy that I am going to use, so if you could find some time to help make it right that would be so kind of you.

Kind regards,

Last edited by tareqkh; August 3, 2015 at 08:27.
tareqkh is offline   Reply With Quote

Old   August 3, 2015, 06:26
Default
  #8
Senior Member
 
Join Date: Mar 2015
Posts: 250
Rep Power: 12
KateEisenhower is on a distinguished road
Quote:
Originally Posted by tareqkh View Post
Thank you again for your quick reply. Here are answers to your question:



From the dimensions in the beginning of the post, I attached a pictures with dimensions of the problem. Then I used excel to make the points and extract them to gmsh. So, it clearly by hand, but it is based on the geometry of the problem. If you have any idea on how to do it easily that would be perfect.



I did the command extrude in order to export the mesh to OpenFoam and then using the command gmshToFoam. I also fixed the points that you mentioned, so please see the attached file, which will answer your questions. I am currently concern about the mesh strategy that I am going to use, so if you could find some time to help make it right that would be so kind of you.

Kind regards,
Hello Tareqhk,

now I got two unknown lines and a physical surface which is defined two times. It is a bit annoying to stumble over the same mistakes again. Please open the *.geo file and check if gmsh reports any problems before uploading the file again.

Best regards,

Kate

P. s.: Is it possible you get these errors because you are working with GUI? If this is the case, please double-click on the saved geo file. Than gmsh should load the file and tells you at the bottom of the window if there are any errors. You can than click on the report and see the exact line numbers. You can than open the geo file in any text editor and correct them.
KateEisenhower is offline   Reply With Quote

Old   August 3, 2015, 06:36
Default
  #9
Senior Member
 
tareqkh's Avatar
 
CFD
Join Date: Nov 2010
Location: United States
Posts: 243
Rep Power: 17
tareqkh is on a distinguished road
Thanks again for your kind reply. I have fixed all errors, but I a little bit concern on how to mesh it properly. Do you have any idea how to start?

Best,

Tareq
tareqkh is offline   Reply With Quote

Old   August 3, 2015, 06:48
Default
  #10
Senior Member
 
Join Date: Mar 2015
Posts: 250
Rep Power: 12
KateEisenhower is on a distinguished road
Yes, in the 2D case, I highly recommend the attached example which you can adapt for your use case. It was posted and probably created by Prof. Geuzaine, the creator of gmsh. I can't find the original source right now.

All the best,

Kate
Attached Files
File Type: zip test.geo.zip (961 Bytes, 8 views)
KateEisenhower is offline   Reply With Quote

Old   August 3, 2015, 06:58
Default
  #11
Senior Member
 
tareqkh's Avatar
 
CFD
Join Date: Nov 2010
Location: United States
Posts: 243
Rep Power: 17
tareqkh is on a distinguished road
What is the relationship between my case and the case that you sent?

Best,

Tareq
CFD-Lover likes this.
tareqkh is offline   Reply With Quote

Old   August 3, 2015, 07:56
Default
  #12
Senior Member
 
Join Date: Mar 2015
Posts: 250
Rep Power: 12
KateEisenhower is on a distinguished road
Of course, the mesh you are creating always depends on the results you are looking for. I chose this example because it shows how you can create a nice boundary layer with transfinite entities.
But it is all useless, unless you tell us what you want to calculate.

Best regards,

Kate
KateEisenhower is offline   Reply With Quote

Old   August 3, 2015, 08:00
Default
  #13
Senior Member
 
tareqkh's Avatar
 
CFD
Join Date: Nov 2010
Location: United States
Posts: 243
Rep Power: 17
tareqkh is on a distinguished road
Your case that you sent was not relevant to my case. I want to plot the velocity along the line and compare my results to the literature.

Thanks again,

Tareq
tareqkh is offline   Reply With Quote

Old   August 3, 2015, 08:07
Default
  #14
Senior Member
 
Join Date: Mar 2015
Posts: 250
Rep Power: 12
KateEisenhower is on a distinguished road
Okay, my first question would be: Why do you need this large wind tunnel setup around your geometry?
KateEisenhower is offline   Reply With Quote

Old   August 3, 2015, 08:08
Default
  #15
Senior Member
 
tareqkh's Avatar
 
CFD
Join Date: Nov 2010
Location: United States
Posts: 243
Rep Power: 17
tareqkh is on a distinguished road
Because this case is in the literature.

Best,

Tarq
tareqkh is offline   Reply With Quote

Old   August 3, 2015, 08:17
Default
  #16
Senior Member
 
Join Date: Mar 2015
Posts: 250
Rep Power: 12
KateEisenhower is on a distinguished road
Is it possible to provide a link to this source?
KateEisenhower is offline   Reply With Quote

Old   August 3, 2015, 08:19
Default
  #17
Senior Member
 
tareqkh's Avatar
 
CFD
Join Date: Nov 2010
Location: United States
Posts: 243
Rep Power: 17
tareqkh is on a distinguished road
After finishing this case, I will provide you the link.

Best,

Tareq
tareqkh is offline   Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to set periodic boundary conditions Ganesh FLUENT 15 November 18, 2020 07:09
mesh quality problem for displacementSBRStress motion solver zhaozhenkai OpenFOAM 0 January 22, 2017 12:02
Mesh is doing some problem prwl120 FLUENT 2 May 21, 2015 15:05
[ICEM] problem in mesh output mehrzad ANSYS Meshing & Geometry 2 December 10, 2014 19:07
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 07:20


All times are GMT -4. The time now is 05:28.