CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   How to construct mesh based on the basic mesh (https://www.cfd-online.com/Forums/openfoam-programming-development/175418-how-construct-mesh-based-basic-mesh.html)

JasonWang3 July 29, 2016 10:03

How to construct mesh based on the basic mesh
 
1 Attachment(s)
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?

Jerryfan July 29, 2016 10:53

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 July 29, 2016 10:59

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 (Post 611982)
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


hk318i July 29, 2016 11:24

Why not just use snappyHexMesh layers?

JasonWang3 July 29, 2016 11:49

The basic mesh and the sub-grid mesh use different equations (NS equations and turbulence model).

regards,
Xinguang

Quote:

Originally Posted by hk318i (Post 611992)
Why not just use snappyHexMesh layers?


hk318i July 29, 2016 11:54

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 July 29, 2016 12:10

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 (Post 612002)
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.



All times are GMT -4. The time now is 16:47.