|
[Sponsors] |
December 31, 2020, 12:02 |
Conversion coarse mesh to fine mesh
|
#1 |
New Member
KK
Join Date: Nov 2020
Posts: 3
Rep Power: 6 |
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. |
|
December 31, 2020, 16:53 |
|
#2 |
Senior Member
|
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 |
|
January 1, 2021, 00:58 |
|
#3 | |
New Member
KK
Join Date: Nov 2020
Posts: 3
Rep Power: 6 |
Quote:
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. |
||
January 1, 2021, 05:13 |
|
#4 |
Senior Member
|
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) |
|
January 1, 2021, 05:48 |
|
#5 |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,897
Rep Power: 73 |
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 |
|
|
|
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 |