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

How to construct mesh based on the basic mesh

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 29, 2016, 10:03
Default How to construct mesh based on the basic mesh
  #1
Member
 
Xinguang Wang
Join Date: Feb 2015
Posts: 45
Rep Power: 11
JasonWang3 is on a distinguished road
Hi all

I am going to implement a sub-grid method, in this method, a sub-grid need to be constructed based on the basic mesh in the first near wall cell. And in this near-wall mesh, some advanced turbulence model alone with the NS equation are solved, and give more precious results of wall shear stress and heat flux or wall temperature.

But for now, I have no idea how to do the code in OpenFoam. Is there anyone who have implemented the similar code? Or some code in OpenFoam is worth to see?
Attached Images
File Type: png sub-grid.png (10.6 KB, 7 views)
JasonWang3 is offline   Reply With Quote

Old   July 29, 2016, 10:53
Default
  #2
Member
 
Jerry
Join Date: Oct 2013
Location: Salt Lake City, UT, USA
Posts: 52
Rep Power: 12
Jerryfan is on a distinguished road
Hi Xinguang,


Do u mean you want to construct a sub-mesh consisted of the first layer of cells near the wall out of the basic mesh?


Best regards,
Jerry
Jerryfan is offline   Reply With Quote

Old   July 29, 2016, 10:59
Default
  #3
Member
 
Xinguang Wang
Join Date: Feb 2015
Posts: 45
Rep Power: 11
JasonWang3 is on a distinguished road
Hi Jerry

Thank you for your reply.
Yes, that's what I mean. Do you have any suggestion?

regards,
Xinguang


Quote:
Originally Posted by Jerryfan View Post
Hi Xinguang,


Do u mean you want to construct a sub-mesh consisted of the first layer of cells near the wall out of the basic mesh?


Best regards,
Jerry
JasonWang3 is offline   Reply With Quote

Old   July 29, 2016, 11:24
Default
  #4
Senior Member
 
Hassan Kassem
Join Date: May 2010
Location: Germany
Posts: 242
Rep Power: 17
hk318i is on a distinguished road
Why not just use snappyHexMesh layers?
__________________
@HIKassem | HassanKassem.me
hk318i is offline   Reply With Quote

Old   July 29, 2016, 11:49
Default
  #5
Member
 
Xinguang Wang
Join Date: Feb 2015
Posts: 45
Rep Power: 11
JasonWang3 is on a distinguished road
The basic mesh and the sub-grid mesh use different equations (NS equations and turbulence model).

regards,
Xinguang

Quote:
Originally Posted by hk318i View Post
Why not just use snappyHexMesh layers?
JasonWang3 is offline   Reply With Quote

Old   July 29, 2016, 11:54
Default
  #6
Senior Member
 
Hassan Kassem
Join Date: May 2010
Location: Germany
Posts: 242
Rep Power: 17
hk318i is on a distinguished road
Ok, so it is not about creating the layer. In this case, you can check multi-region solvers in OpenFOAM or zone models. It depends on your model.
__________________
@HIKassem | HassanKassem.me
hk318i is offline   Reply With Quote

Old   July 29, 2016, 12:10
Default
  #7
Member
 
Xinguang Wang
Join Date: Feb 2015
Posts: 45
Rep Power: 11
JasonWang3 is on a distinguished road
OK. I will check the OF code, and see if it is helpful for my case.

Thanks a lot for your reply.

Quote:
Originally Posted by hk318i View Post
Ok, so it is not about creating the layer. In this case, you can check multi-region solvers in OpenFOAM or zone models. It depends on your model.
JasonWang3 is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
sliding mesh problem in CFX Saima CFX 46 September 11, 2021 07:38
[snappyHexMesh] No layers in a small gap bobburnquist OpenFOAM Meshing & Mesh Conversion 6 August 26, 2015 09:38
[snappyHexMesh] SnappyHexMesh no layers and no decent mesh for complex geometry pizzaspinate OpenFOAM Meshing & Mesh Conversion 1 February 25, 2015 07:05
[ICEM] Problem making structured mesh on a surface froztbear ANSYS Meshing & Geometry 4 November 10, 2011 08:52
basic of mesh refinement arya CFX 4 June 19, 2007 12:21


All times are GMT -4. The time now is 12:50.