CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[mesh manipulation] a question about refineMesh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 22, 2011, 10:09
Default a question about refineMesh
  #1
New Member
 
liufang
Join Date: Jun 2011
Posts: 4
Rep Power: 15
fangliu is on a distinguished road
Hi everybody!
I' like using refineMesh to refime the mesh like below

but the result is like below

what should I do?
Thanks very much!
Attached Images
File Type: jpg 1.jpg (10.7 KB, 522 views)
File Type: jpg 2.jpg (13.0 KB, 505 views)
fangliu is offline   Reply With Quote

Old   June 22, 2011, 21:46
Default
  #2
New Member
 
liufang
Join Date: Jun 2011
Posts: 4
Rep Power: 15
fangliu is on a distinguished road
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 is offline   Reply With Quote

Old   June 22, 2011, 21:59
Default
  #3
New Member
 
liufang
Join Date: Jun 2011
Posts: 4
Rep Power: 15
fangliu is on a distinguished road
Checking the "Use VTkPolyhedron", paraview will show the correct display.
fangliu is offline   Reply With Quote

Old   June 28, 2011, 06:29
Default
  #4
Senior Member
 
stephane sanchi
Join Date: Mar 2009
Posts: 314
Rep Power: 18
openfoam_user is on a distinguished road
Hi,

Where is located the "Use VTkPolyhedron" in paraFoam ?

Regards,

Stephane.
openfoam_user is offline   Reply With Quote

Old   June 28, 2011, 22:35
Default reply
  #5
New Member
 
liufang
Join Date: Jun 2011
Posts: 4
Rep Power: 15
fangliu is on a distinguished road
Hi,
If you compile "PV3FoamReader Module" correctly, the paraview's "Object Inspector" looks like figure below ,you can check "use VTKPolyhedron".

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.
Attached Images
File Type: jpg p1.jpg (23.2 KB, 494 views)
File Type: jpg p2.jpg (22.1 KB, 494 views)
fangliu is offline   Reply With Quote

Old   September 5, 2011, 12:35
Default
  #6
Senior Member
 
Francois
Join Date: Jun 2010
Posts: 107
Rep Power: 21
Fransje will become famous soon enough
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.
Fransje is offline   Reply With Quote

Old   October 31, 2011, 11:22
Default how I can refine a specific region?
  #7
New Member
 
giovanni silva
Join Date: Jul 2010
Posts: 14
Rep Power: 16
giovanni10 is on a distinguished road
Does anyone know how I can refine a specific region in a cavity for example?
Thanks!
giovanni10 is offline   Reply With Quote

Old   January 20, 2012, 17:14
Default
  #8
Member
 
Join Date: Sep 2011
Posts: 45
Rep Power: 15
ic3wall is on a distinguished road
Quote:
Originally Posted by fangliu View Post
Hi everybody!
I' like using refineMesh to refime the mesh like below

but the result is like below

what should I do?
Thanks very much!
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 ???
ic3wall is offline   Reply With Quote

Old   April 8, 2016, 09:21
Default
  #9
Member
 
Timm Severin
Join Date: Mar 2014
Location: Munich
Posts: 63
Rep Power: 12
Astrodan is on a distinguished road
Quote:
Originally Posted by Fransje View Post
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:
paraFoam+VTKPolyhedron.pngvisualisedBlockMesh.png

The paraFoam version not using VTKPolyhedra:
paraFoam-VTKPolyhedron.png

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.
Attached Files
File Type: zip visualisationTest.zip (70.3 KB, 5 views)

Last edited by Astrodan; April 8, 2016 at 09:47. Reason: Mixed up pictures
Astrodan is offline   Reply With Quote

Reply

Tags
mesh adaption, refinemesh


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
small question about the functionalities of topological changes in OpenFoam ngj OpenFOAM Running, Solving & CFD 2 February 28, 2013 11:02
checkMesh Errors after refineMesh mgdenno OpenFOAM 0 July 30, 2012 22:39
Question Re Engineering Data Source imnull ANSYS 0 March 5, 2012 14:51
internal field question - PitzDaily Case atareen64 OpenFOAM Running, Solving & CFD 2 January 26, 2011 16:26
Poisson Solver question Suresh Main CFD Forum 3 August 12, 2005 05:37


All times are GMT -4. The time now is 13:57.