CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [mesh manipulation] a question about refineMesh (https://www.cfd-online.com/Forums/openfoam-meshing/89784-question-about-refinemesh.html)

fangliu June 22, 2011 09:09

a question about refineMesh
 
2 Attachment(s)
Hi everybody!
I' like using refineMesh to refime the mesh like below
http://www.cfd-online.com/Forums/att...1&d=1308747850
but the result is like below
http://www.cfd-online.com/Forums/att...1&d=1308747867
what should I do?
Thanks very much!
http://www.cfd-online.com/home/lf/%C...creenshot2.jpg

fangliu June 22, 2011 20:46

I have fund the answer, the refineMesh works well.The refined grids just like the first figure, but the paraview's display is not correct, The diagonal lines are of fictitious. I still do not know how to correct it.

fangliu June 22, 2011 20:59

Checking the "Use VTkPolyhedron", paraview will show the correct display.

openfoam_user June 28, 2011 05:29

Hi,

Where is located the "Use VTkPolyhedron" in paraFoam ?

Regards,

Stephane.

fangliu June 28, 2011 21:35

reply
 
2 Attachment(s)
Hi,
If you compile "PV3FoamReader Module" correctly, the paraview's "Object Inspector" looks like figure below ,you can check "use VTKPolyhedron".
http://www.cfd-online.com/Forums/att...1&d=1309311116
but if you failed to compile "PV3FoamReader Module", paraview can still work, the "Object Inspector" looks like figure below ,you can not check "use VTKPolyhedron", the display is not correct, but the grids are ok.
http://www.cfd-online.com/Forums/att...1&d=1309311105

Fransje September 5, 2011 11:35

Hi All,

OpenFOAM cannot use meshes with floating nodes, so no the, diagonals are not fictitious. Valid cell shapes recognized by OpenFOAM can be found here. Therefore, to correctly close the mesh shown in the first post, OpenFOAM will create triangles, which is consistent with the diagonals shown in paraview/paraFoam.

Kind regards,

Francois.

giovanni10 October 31, 2011 10:22

how I can refine a specific region?
 
Does anyone know how I can refine a specific region in a cavity for example?
Thanks!

ic3wall January 20, 2012 16:14

Quote:

Originally Posted by fangliu (Post 313076)
Hi everybody!
I' like using refineMesh to refime the mesh like below
http://www.cfd-online.com/Forums/att...1&d=1308747850
but the result is like below
http://www.cfd-online.com/Forums/att...1&d=1308747867
what should I do?
Thanks very much!
http://www.cfd-online.com/home/lf/%C...creenshot2.jpg

I have the exact OPPOSITE problem ... refineMesh doesn't add the diagonal, so two faces are orthogonal to another single face, which creates problems

Is there a switch somewhere in the refineMeshDict that I haven't seen ???

Astrodan April 8, 2016 08:21

4 Attachment(s)
Quote:

Originally Posted by Fransje (Post 322956)
OpenFOAM cannot use meshes with floating nodes, so no the, diagonals are not fictitious. Valid cell shapes recognized by OpenFOAM can be found here. Therefore, to correctly close the mesh shown in the first post, OpenFOAM will create triangles, which is consistent with the diagonals shown in paraview/paraFoam.

For whoever stumbles upon this, the above information seems to be incorrect (at least not anymore in OF-2.3.x). I created a small testcase, which consists of two vertically stacked blocks.
The lower block is then "refined" in 2 blocks. I visualised the result in paraview, once using VTKPolyhedra and once without, and further compared the visualisation with a plot in MATLAB, for which I directly exported the data from polyMesh/points and polyMesh/faces.

The result of the Matlab visualisation perfectly agrees with the VTKPolyhedral picture:
Attachment 46569Attachment 46567

The paraFoam version not using VTKPolyhedra:
Attachment 46568

Also regarding the standard shapes linked, those are the ones recognised, but OF also supports arbitrary polyhedra (compare checkMesh output).

I also attach the testcase including my Matlab script for those interested.


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