|
[Sponsors] |
September 30, 2013, 08:22 |
refineMesh
|
#1 |
Member
Yu CAO
Join Date: May 2013
Posts: 76
Rep Power: 13 |
Hi
I am wondering if openfoam could unrefine 2D mesh? and how to do so. In addition, could it refine mesh with curves? Thanks |
|
September 30, 2013, 09:06 |
|
#2 |
Senior Member
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 22 |
There is no unrefine tool in OpenFOAM as far as I know of. The refine utilities do just cut the cell in pieces, but will not make curves smoother, for that, I would go back to the original mesh generation tool.
|
|
September 30, 2013, 17:35 |
|
#3 |
Member
Yu CAO
Join Date: May 2013
Posts: 76
Rep Power: 13 |
Then, could the function mapField could map field from refined mesh to coarse mesh? if not, what is the usage to go back to the original mesh. I have ever seen some projects could using Adaptive methods. how to do this?
|
|
October 1, 2013, 08:09 |
|
#4 |
Senior Member
Gerhard Holzinger
Join Date: Feb 2012
Location: Austria
Posts: 342
Rep Power: 28 |
If you omit the option -overwrite, then refineMesh creates a new time step which contains the refined mesh. If you used -overwrite, then the old mesh is lost.
You can map Fields from a fine mesh solution to a coarse mesh case. |
|
October 1, 2013, 10:11 |
|
#5 | |
Member
Yu CAO
Join Date: May 2013
Posts: 76
Rep Power: 13 |
Quote:
Have you ever tried to unrefine the refined mesh? |
||
October 1, 2013, 12:15 |
|
#6 |
Senior Member
Gerhard Holzinger
Join Date: Feb 2012
Location: Austria
Posts: 342
Rep Power: 28 |
There is no such thing as unrefinement. However, if you keep the original mesh when refining you can always go back to your initial mesh.
|
|
October 1, 2013, 13:10 |
|
#7 | |
Member
Yu CAO
Join Date: May 2013
Posts: 76
Rep Power: 13 |
Quote:
I found that in class dynamicRefineFvMesh, there is a function called Foam::dynamicRefineFvMesh::unrefine. Couldn't it be used to unrefine the refined Mesh? I have ever seen some objects which could adptively refine and unrefine the mesh. Did they use the method of maintaining the original mesh? |
||
October 2, 2013, 03:32 |
|
#8 |
Senior Member
Gerhard Holzinger
Join Date: Feb 2012
Location: Austria
Posts: 342
Rep Power: 28 |
One function makes no tool. From the application side of view there is no such thing as unrefineMesh. But nothing keeps you from creating such a utility.
|
|
October 5, 2013, 07:59 |
|
#9 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Greetings to all!
@cctv: That method is used for dynamic mesh refinement. You can see this in practice in the tutorial "multiphase/interDyMFoam/ras/damBreakWithObstacle". It refines the mesh where the fluid interface between air and water is going through and it will unrefine the path behind it. But as already explained a few times on this thread, this requires you to start with the coarse mesh. It can then undo the refinement, as long as it knows how the refined cells relate to the original cells. I vaguely remember reading a thread where 2D meshes were not supported by this algorithm. Let's see what I find:
Best regards, Bruno
__________________
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[mesh manipulation] checkMesh Erros after refineMesh | mgdenno | OpenFOAM Meshing & Mesh Conversion | 10 | October 14, 2014 06:16 |
[mesh manipulation] refineMesh inverses face normals? | RoE | OpenFOAM Meshing & Mesh Conversion | 3 | August 3, 2012 12:41 |
checkMesh Errors after refineMesh | mgdenno | OpenFOAM | 0 | July 30, 2012 22:39 |
[mesh manipulation] refineMesh -parallel crashes (in cavity tutorial) | andras | OpenFOAM Meshing & Mesh Conversion | 0 | August 8, 2010 15:52 |
Cannot refineMesh with useHexTopology true ver141 | naoki | OpenFOAM Bugs | 5 | June 11, 2008 05:07 |