CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Conversion coarse mesh to fine mesh

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes
  • 1 Post By kralKA
  • 2 Post By sbaffini
  • 1 Post By FMDenaro

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 31, 2020, 12:02
Question Conversion coarse mesh to fine mesh
  #1
New Member
 
KK
Join Date: Nov 2020
Posts: 3
Rep Power: 6
kralKA is on a distinguished road
Hello,

I want to convert a coarse mesh to a fine mesh by making interpolation for the unstructred mesh. How can I do that?

Thanks in advance.
kralKA is offline   Reply With Quote

Old   December 31, 2020, 16:53
Default
  #2
Senior Member
 
sbaffini's Avatar
 
Paolo Lampitella
Join Date: Mar 2009
Location: Italy
Posts: 2,195
Blog Entries: 29
Rep Power: 39
sbaffini will become famous soon enoughsbaffini will become famous soon enough
Send a message via Skype™ to sbaffini
What you want needs two parts: building the finer mesh from the coarse one and interpolating the coarse solution on the finer mesh.

Now, I suspect that you may have a software that does that and you only need to know which buttons will do it (in this case the manual is typically your friend).
Is that the case or you want to know how this is done algorithmically? In the latter case the method (FV, FEM, etc) used will make the difference
sbaffini is offline   Reply With Quote

Old   January 1, 2021, 00:58
Default
  #3
New Member
 
KK
Join Date: Nov 2020
Posts: 3
Rep Power: 6
kralKA is on a distinguished road
Quote:
Originally Posted by sbaffini View Post
What you want needs two parts: building the finer mesh from the coarse one and interpolating the coarse solution on the finer mesh.

Now, I suspect that you may have a software that does that and you only need to know which buttons will do it (in this case the manual is typically your friend).
Is that the case or you want to know how this is done algorithmically? In the latter case the method (FV, FEM, etc) used will make the difference
Thanks for your reply.

I am using fvm and I want to know how to do that algorithmically.

My main questions are:

- How to build the finer mesh from the coarse

- Which method is used for the interpolation and how to do that?

I am looking for the answer that if the mesh is converted the fine from the coarse, how the solution is changed.
sbaffini likes this.
kralKA is offline   Reply With Quote

Old   January 1, 2021, 05:13
Default
  #4
Senior Member
 
sbaffini's Avatar
 
Paolo Lampitella
Join Date: Mar 2009
Location: Italy
Posts: 2,195
Blog Entries: 29
Rep Power: 39
sbaffini will become famous soon enoughsbaffini will become famous soon enough
Send a message via Skype™ to sbaffini
The mesh part, which, however, is not specifically tied to the FV, is not really my area of expertise. So I haven't an answer for a general polyhedral cell. But, for tetra and hexa cells you simply put a point in the barycenter of the cell and build 4 tetra or 8 hexa out of the old cell. The same also works in 2D for tri and quad cells (with 3 and 4 new cells, respectively). For general polyhedra or 2D polygons you can always split them in tetra or 2D triangles, but I'm not sure that's the correct way to proceed as that will change the nature of the cell.

Of course, once you have the new cells, you have to update the connectivity of the original grid. For tetra/tri, the method I mentioned leads to a relatively easy update because you basically just change the indices of a face adjacent cells with the new ones. Other cases might need a more dedicated approach.

Obviously, most of the details on this part really depends from your data structure. In theory, for example, you could rebuild the grid from scratch instead of updating it, but it might only make sense if the number of cells is above a certain threshold which is very case dependent.

Now, the interpolation part is what makes the FV peculiar because, in this case, you have a 1 to 1 mapping between new grid cells and old grid ones, and there is no doubt that the only meaningful interpolation is to transfer, for each coarse cell, the old value to all the new derived fine cells (on a cell by cell basis)
aero_head and kralKA like this.
sbaffini is offline   Reply With Quote

Old   January 1, 2021, 05:48
Default
  #5
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,897
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
I think you will use the refined grid to re-run the code in order to find a new refined solution, thus the interpolation has only the goal to provide your new initial condition. This way, you can use an interpolation having as same accuracy order as your FVM.
There are several choices to refine a triangular grid, you should read the specific literature
kralKA likes this.
FMDenaro 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
[snappyHexMesh] SnappyHexMesh/splitMeshRegion : region1 in zone "-1" GuiMagyar OpenFOAM Meshing & Mesh Conversion 3 August 4, 2023 13:38
[mesh manipulation] Importing Multiple Meshes thomasnwalshiii OpenFOAM Meshing & Mesh Conversion 18 December 19, 2015 19:57
[snappyHexMesh] snappyHexMesh won't work - zeros everywhere! sc298 OpenFOAM Meshing & Mesh Conversion 2 March 27, 2011 22:11
inviscid 2d computation for M=0.3 flow past cylinder on fine mesh can not converge boubalos Main CFD Forum 3 March 20, 2011 05:26
fine mesh ==> coarse mesh Mahbub Siemens 3 October 11, 2003 02:19


All times are GMT -4. The time now is 04:19.