refineMesh
Hi
I am wondering if openfoam could unrefine 2D mesh? and how to do so. In addition, could it refine mesh with curves? Thanks |
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.
|
Quote:
|
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. |
Quote:
Have you ever tried to unrefine the refined mesh? |
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.
|
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? |
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.
|
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 |
All times are GMT -4. The time now is 11:56. |