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

[mesh manipulation] problem using polyDualMesh

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By bigphil

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 22, 2012, 21:41
Default problem using polyDualMesh
  #1
Member
 
HD
Join Date: Jul 2011
Posts: 56
Rep Power: 15
Rebecca513 is on a distinguished road
Dear all,

Because my tet mesh is too large and runs very slowly in OF, I am trying to use polyDualMesh to convert the tet mesh into a polyhedral mesh.

I am learning this utility by playing with a very simple case, a rectangular flow channel. The tet mesh of the channel fails only one mesh check (small determinant), and works fine giving me results close to the theoretical estimates given by the cubic law. However, after I converted the mesh using 'polyDualMesh 60 -doNotPreserveFaceZone', the mesh failed four tests
high skewness
error in face tets: faces with low quality or negative volume decomposition tets
cells with small determinant found
concave cells found

Then I tried to include the option '-concaveMultiCells'. But the mesh didn't improve at all. I still got all the problems.

I am wondering if there is anything else that I should try when using the polyDualMesh utility to ensure the quality of the mesh generated afterwards.

Truly appreciate any suggestion and comment.

Thank you~

Best,

Hang
Rebecca513 is offline   Reply With Quote

Old   July 25, 2012, 04:08
Default
  #2
Disabled
 
Join Date: Mar 2011
Posts: 174
Rep Power: 15
anon_a is on a distinguished road
Hey there

I am also in the process of trying to use polyhedral meshes.
According to previous posts, the tetra mesh should be produced based on a Delaunay triangulation to produce good results. Does your original mesh satisfy this restriction?
anon_a is offline   Reply With Quote

Old   July 26, 2012, 00:38
Default
  #3
Member
 
HD
Join Date: Jul 2011
Posts: 56
Rep Power: 15
Rebecca513 is on a distinguished road
Hi,

Yes, the tet mesh is generated using Delaunay triangulation. And the tet mesh works well in OF. But when I tried to convert it to polyhedral, it fails several mesh tests in 'checkMesh -allGeometry -allTopology'.

Thank you~

Best,

Hang
Rebecca513 is offline   Reply With Quote

Old   August 26, 2012, 08:35
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
As future reference, I ended up (partially) answering here: http://www.cfd-online.com/Forums/ope...tml#post378734 post #14
__________________
wyldckat is offline   Reply With Quote

Old   August 26, 2012, 11:11
Default
  #5
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,093
Rep Power: 34
bigphil will become famous soon enoughbigphil will become famous soon enough
Hi Rebecca,

Another thing to keep in mind is that polyDualMesh does not like prism boundary layers much. It has a tendency to mess them up and produce wrong oriented faces.

I believe engrid has included a version of polyDualMesh that works much better with prism layers by not converting them. I think it is only in the development version though.

Philip
wyldckat likes this.
bigphil is offline   Reply With Quote

Old   August 6, 2013, 04:42
Default polyDualMesh -- error
  #6
New Member
 
Aditya
Join Date: May 2013
Location: Munich Germany
Posts: 29
Rep Power: 13
kingmaker is on a distinguished road
Hello

I am trying to use polyDualMesh for a blower simulation. I am getting an error saying that

--> FOAM FATAL ERROR: Created illegal face 2(4472123 4472125) at position:16171367 when filtering removed points From function polyTopoChange::compact(..) in file polyTopoChange/polyTopoChange/polyTopoChange.C at line 1056. FOAM aborting #0 Foam::error:rintStack(Foam::Ostream&) addr2line failed #1 Foam::error::abort() addr2line failed
then polyDualMesh exits. I am stuck here with this problem. Does any one have an idea why this error happens.. ?

I am using an angle of 40.

Thanks in advance.
kingmaker is offline   Reply With Quote

Old   August 17, 2013, 08:47
Default
  #7
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings Aditya,

Use the following command to first assess the quality of the mesh:
Code:
checkMesh -allGeometry -allTopology -constant
If it indicates that there are errors in the mesh, then polyDualMesh cannot perform magic...

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   October 18, 2015, 06:51
Smile
  #8
Senior Member
 
Join Date: Jan 2013
Posts: 372
Rep Power: 14
openfoammaofnepo is on a distinguished road
Dear Bruno,

How are you? I have two questions about the utility of polyDualMesh:

1, from numerical point of view, is there any advantange or disadvantage for us to use polyhedral cells, instead of tetrahedral cells?

2, for this utility, the generated cells have the same faces? or is it possible for different polyhedral cells to have different face numbers?

Thank you so much.

OFFO

Quote:
Originally Posted by wyldckat View Post
Greetings Aditya,

Use the following command to first assess the quality of the mesh:
Code:
checkMesh -allGeometry -allTopology -constant
If it indicates that there are errors in the mesh, then polyDualMesh cannot perform magic...

Best regards,
Bruno
openfoammaofnepo is offline   Reply With Quote

Old   October 18, 2015, 07:29
Default
  #9
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answers:
Quote:
Originally Posted by openfoammaofnepo View Post
1, from numerical point of view, is there any advantange or disadvantage for us to use polyhedral cells, instead of tetrahedral cells?

2, for this utility, the generated cells have the same faces? or is it possible for different polyhedral cells to have different face numbers?
I'll quote myself from this blog post: OpenFOAM: Interesting cases of bad meshes and bad initial conditions
Quote:
Sometime ago, Symscape published this very interesting blog post: Polyhedral, Tetrahedral, and Hexahedral Mesh Comparison
The conclusion was in it's essence that: polyhedral meshes are awesome and should be used more often. And that even though tetrahedral meshes are excellent for FEM, they are lousy for CFD.

But the thing is that polyhedral meshes can derive from tetrahedral meshes, simply because of the duality of these two kinds of meshes. I won't into detail on this topic, since this is very well explained in a lot of other places, such as Wikipedia: http://en.wikipedia.org/wiki/Dual_polyhedron
wyldckat is offline   Reply With Quote

Old   March 4, 2020, 13:22
Default More queries on polyDualMesh
  #10
New Member
 
Arpan Sircar
Join Date: Mar 2017
Posts: 8
Rep Power: 9
ArpanS is on a distinguished road
1. Can polyDualMesh work on a tetrahedral mesh with nonManifoldPoints ?

2. Can polyDualMesh work on a tetrahedral mesh with cells with small determinant ?

3. Is there a version of polyDualMesh which preserves the prism layers around a wall ?

I understand there may not be any direct answers to Questions 1 and 2, just trying to get a feel of the polyDualMesh capability.

Regards
Arpan
ArpanS is offline   Reply With Quote

Old   March 4, 2020, 13:53
Default
  #11
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,093
Rep Power: 34
bigphil will become famous soon enoughbigphil will become famous soon enough
I am not sure I can answer your questions; however, I suggest you try it out and you will find out!
bigphil is offline   Reply With Quote

Reply


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
UDF compiling problem Wouter Fluent UDF and Scheme Programming 6 June 6, 2012 05:43
Gambit - meshing over airfoil wrapping (?) problem JFDC FLUENT 1 July 11, 2011 06:59
natural convection problem for a CHT problem Se-Hee CFX 2 June 10, 2007 07:29
Adiabatic and Rotating wall (Convection problem) ParodDav CFX 5 April 29, 2007 20:13
Is this problem well posed? Thomas P. Abraham Main CFD Forum 5 September 8, 1999 15:52


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