|
[Sponsors] |
[mesh manipulation] Converting a 2Dmesh to axisymmetric |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 20, 2014, 10:03 |
|
#181 |
Senior Member
Yan Zhang
Join Date: May 2014
Posts: 120
Rep Power: 12 |
oh,thanks!
|
|
December 20, 2014, 10:08 |
|
#182 |
Senior Member
Yan Zhang
Join Date: May 2014
Posts: 120
Rep Power: 12 |
||
December 20, 2014, 19:06 |
|
#183 |
Member
Davi Barreira
Join Date: Apr 2014
Location: Fortaleza
Posts: 76
Rep Power: 12 |
Ok, so I figured out how to use makeAxialMesh properly thanks to this old thread: http://www.cfd-online.com/Forums/ope...mmetric-6.html
Forget what I said before about using the option makeAxialOldMode 1. Just put the rotationDict and collapseDict in your system folders (you can use the ones attached, they work on your case). After that, run blockMesh to generate your mesh, then makeAxialMesh. Finally, run collapseEdges -latestTime . Your directory will look something like this (the numbers of the folders may change a bit): 0/ 0.0025/ 0.005/ constant/ system/ Copy the polymesh folder inside the 0.005 directory and replace it with your polymesh inside the constant/ folder (remember to back it up, so you dont lose your original blockMeshDict). And that's it. P.S: rotateMesh is not for creating axial meshes, so you dont need to use it. |
|
December 20, 2014, 19:23 |
|
#184 |
Senior Member
Yan Zhang
Join Date: May 2014
Posts: 120
Rep Power: 12 |
thanks for your kindness!
I will try it.
__________________
https://openfoam.top |
|
December 21, 2014, 22:08 |
|
#185 | |
Senior Member
Yan Zhang
Join Date: May 2014
Posts: 120
Rep Power: 12 |
Quote:
__________________
https://openfoam.top |
||
January 7, 2015, 17:11 |
|
#186 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Try it. (as some time passed you probably did it and it worked)
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
|
March 22, 2015, 21:01 |
Help
|
#187 |
New Member
Everton Santos
Join Date: Jan 2015
Posts: 7
Rep Power: 11 |
I have a problem to generate the axisymmetric mesh in my work, someone could help me, I am sending the files, would be grateful if anyone could help.
My openFoam 2.3 Thanks. |
|
March 23, 2015, 00:04 |
Hi Santos,
|
#188 | |
Senior Member
Yan Zhang
Join Date: May 2014
Posts: 120
Rep Power: 12 |
Quote:
Hi Santos, 1~~~At first,the makeAxialMesh tools should be compiled correctly. 2~~~In the file "blockMeshDict" , you should add a face named "center" which the mesh can rotate around it. Like this : center { type symmetryPlane; faces ( (13 0 14 27) ); } 3~~~And then,in the dictionary "system",two files "rotationDict" and "collapseDict" are needed. See the #183 floor. 4~~~At last,input these commands in order: blockMesh makeAxialMesh -overwrite collapseEdges -overwrite checkMesh 5~~~Good luck! 6~~~Forgive my poor English. |
||
March 23, 2015, 08:12 |
thanks
|
#189 |
New Member
Everton Santos
Join Date: Jan 2015
Posts: 7
Rep Power: 11 |
Thank zhangyan, I will try to perform these procedures. No problem, sorry my English.
|
|
March 23, 2015, 13:05 |
Help
|
#190 | |
New Member
Everton Santos
Join Date: Jan 2015
Posts: 7
Rep Power: 11 |
Quote:
hello zhangyan, I tried to take the steps you suggested, but the mesh was the same as the initial mesh. Execultar got the makeAxialMesh program, was generated the 0005 file, but nothing has changed. Chosen as the center ( (0 1 7 6) // Bot (0) (1 12 14 7) // Bot (2) ); Would have a question, frontandback is the type empty? If you could generate this mesh to me with the axis of symmetry equal to figure Site: https://openfoamwiki.net/index.php/C.../MakeAxialMesh |
||
April 27, 2015, 12:30 |
Conveerting a 2D mesh to axisymmetric using MAM in OF-2.3.1
|
#191 |
New Member
Ali
Join Date: Dec 2012
Posts: 9
Rep Power: 13 |
Hi Foamers
I am encountering a strange problem creating axisymmetric meshes using MAM. The mesh looks pretty fine in paraview, before using collapseEdges. But when I use collapeEdges, it converts the axisymmetric mesh to the original 2D mesh. I also tried using makeAxialMesh -overwrite. Thereafter, OF exits by (Floating point exception) error, when I use collapeEdges or checkMesh. Does any body use MakeAxialMesh_2.x on OF-2.3.1? From what I have read in this thread, I guess it is a compatibility problem. Thanks in advance PS: please find attached the corresponding case. |
|
August 15, 2015, 11:54 |
|
#192 |
Member
Davi Barreira
Join Date: Apr 2014
Location: Fortaleza
Posts: 76
Rep Power: 12 |
You might want to try OF 2.4, they made some improvements to the makeAxialMesh.
Cheers |
|
October 2, 2015, 12:48 |
makeAxialMesh
|
#193 |
New Member
Antony Premkumar
Join Date: Jul 2015
Posts: 19
Rep Power: 11 |
Hi,
While running makeAxialMesh i am getting this warnig quite often. --> FOAM Warning : From function wedgePolyPatch::calcGeometry(PstreamBuffers&) in file meshes/polyMesh/polyPatches/constraint/wedge/wedgePolyPatch.C at line 72 Wedge patch 'wedge_neg' is not planar. At local face at (1.5137 0.0402188 -0.000877755) the normal (8.01877e-18 -0.0218097 -0.999762) differs from the average normal (-3.78148e-22 -0.0218097 -0.999762) by 1.72515e-15 is there something i should check or can i ignore this? Thanks |
|
October 2, 2015, 12:55 |
round off
|
#194 |
Member
David P. Schmidt
Join Date: Mar 2009
Posts: 72
Rep Power: 17 |
Looking at the digits of the normal vectors, it appears that this small discrepancy is a consequence of round-off. My guess is that you can safely ignore this warning.
|
|
October 14, 2015, 05:28 |
checkMesh
|
#195 |
New Member
Antony Premkumar
Join Date: Jul 2015
Posts: 19
Rep Power: 11 |
Thanks schmidt,
I have yet another problem. I am doing a external flow study on a axis symmetric body. I am using blockMesh -> snappyHexMesh -> makeAxialMesh -> collapseEdges. when i view the mesh it is all fine . but when i check the mesh with 'checkMesh' i am getting 7 errors. I have attached the log file i received for checkMesh. Is there anything that i have to do with rotationDict or collapseDict? Code:
Checking topology... Boundary definition OK. Cell to face addressing OK. Point usage OK. Upper triangular ordering OK. Face vertices OK. Number of regions: 1 (OK). Checking patch topology for multiply connected surfaces... Patch Faces Points Surface topology inlet 100 202 ok (non-closed singly connected) outlet 100 202 ok (non-closed singly connected) upperWall 1200 2402 ok (non-closed singly connected) frontAndBack 0 0 ok (empty) lowerWall 1532 2677 ok (non-closed singly connected) ua1 31770 32535 ok (non-closed singly connected) frontAndBack_pos 142483 145823 ok (non-closed singly connected) frontAndBack_neg 142375 145713 ok (non-closed singly connected) Checking geometry... Overall domain bounding box (-1.1 0 -0.0141658) (4.6 0.325 0.0141868) Mesh (non-empty, non-wedge) directions (1 1 0) Mesh (non-empty) directions (1 1 1) Wedge frontAndBack_pos with angle 2.49754 degrees ***Cannot find opposite wedge for wedge frontAndBack_pos Boundary openness (-9.02861e-19 1.54122e-14 1.31133e-12) OK. ***Open cells found, max cell openness: 0.0218662, number of open cells 152521 <<Writing 152521 non closed cells to set nonClosedCells <<Writing 228809 cells with high aspect ratio to set highAspectRatioCells ***Zero or negative face area detected. Minimum area: 0 <<Writing 130 zero area faces to set zeroAreaFaces ***Zero or negative cell volume detected. Minimum negative volume: -7.9226e-17, Number of negative volume cells: 120358 <<Writing 120358 zero volume cells to set zeroVolumeCells Mesh non-orthogonality Max: 175.974 average: 70.2632 *Number of severely non-orthogonal (> 70 degrees) faces: 330991. ***Number of non-orthogonality errors: 306103. <<Writing 637094 non-orthogonal faces to set nonOrthoFaces ***Error in face pyramids: 1338 faces are incorrectly oriented. <<Writing 1338 faces with incorrect orientation to set wrongOrientedFaces ***Max skewness = 1.58762e+06, 118079 highly skew faces detected which may impair the quality of the results <<Writing 118079 skew faces to set skewFaces Coupled point location match (average 0) OK. Failed 7 mesh checks. End |
|
October 14, 2015, 05:29 |
|
#196 |
New Member
Antony Premkumar
Join Date: Jul 2015
Posts: 19
Rep Power: 11 |
sorry for the previous post.
the error is Code:
Checking topology... Boundary definition OK. Cell to face addressing OK. Point usage OK. Upper triangular ordering OK. Face vertices OK. Number of regions: 1 (OK). Checking patch topology for multiply connected surfaces... Patch Faces Points Surface topology inlet 100 202 ok (non-closed singly connected) outlet 100 202 ok (non-closed singly connected) upperWall 1200 2402 ok (non-closed singly connected) frontAndBack 0 0 ok (empty) lowerWall 1532 2677 ok (non-closed singly connected) ua1 31770 32535 ok (non-closed singly connected) frontAndBack_pos 142483 145823 ok (non-closed singly connected) frontAndBack_neg 142375 145713 ok (non-closed singly connected) Checking geometry... Overall domain bounding box (-1.1 0 -0.0141658) (4.6 0.325 0.0141868) Mesh (non-empty, non-wedge) directions (1 1 0) Mesh (non-empty) directions (1 1 1) Wedge frontAndBack_pos with angle 2.49754 degrees ***Cannot find opposite wedge for wedge frontAndBack_pos Boundary openness (-9.02861e-19 1.54122e-14 1.31133e-12) OK. ***Open cells found, max cell openness: 0.0218662, number of open cells 152521 <<Writing 152521 non closed cells to set nonClosedCells <<Writing 228809 cells with high aspect ratio to set highAspectRatioCells ***Zero or negative face area detected. Minimum area: 0 <<Writing 130 zero area faces to set zeroAreaFaces ***Zero or negative cell volume detected. Minimum negative volume: -7.9226e-17, Number of negative volume cells: 120358 <<Writing 120358 zero volume cells to set zeroVolumeCells Mesh non-orthogonality Max: 175.974 average: 70.2632 *Number of severely non-orthogonal (> 70 degrees) faces: 330991. ***Number of non-orthogonality errors: 306103. <<Writing 637094 non-orthogonal faces to set nonOrthoFaces ***Error in face pyramids: 1338 faces are incorrectly oriented. <<Writing 1338 faces with incorrect orientation to set wrongOrientedFaces ***Max skewness = 1.58762e+06, 118079 highly skew faces detected which may impair the quality of the results <<Writing 118079 skew faces to set skewFaces Coupled point location match (average 0) OK. Failed 7 mesh checks. End |
|
October 14, 2015, 07:31 |
|
#197 |
Member
Davi Barreira
Join Date: Apr 2014
Location: Fortaleza
Posts: 76
Rep Power: 12 |
Try to use extrudeMesh after snappyHexMesh
|
|
October 15, 2015, 11:57 |
extrudeMesh
|
#198 |
New Member
Antony Premkumar
Join Date: Jul 2015
Posts: 19
Rep Power: 11 |
Thanks Davibarreira,
extrudeMesh did not help. But i don't see the use of extrudeMesh. Do i have to make any changes in extrudeMeshDict or in collapseMeshDict?? |
|
October 28, 2015, 12:53 |
|
#200 |
New Member
Antony Premkumar
Join Date: Jul 2015
Posts: 19
Rep Power: 11 |
@Hisham.
After running snappyHexMesh frontAndBack is patch. After running makeAxialMesh frontAndBack is patch, frontAndBack_pos is wedge and frontAndBack_neg is wedge. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Simplest way of converting a 2d Navier Stokes code to a 2d axisymmetric one | mseka | Main CFD Forum | 1 | September 18, 2017 15:53 |
Axisymmetric Boundary condition | Mohit Singh | SU2 | 3 | July 15, 2015 10:19 |
[mesh manipulation] Converting axisymmetric mesh into fully 3D mesh | tomloh | OpenFOAM Meshing & Mesh Conversion | 0 | April 29, 2012 21:31 |
Difference of final temperature between a plane and an axisymmetric geometry | douchka | FLUENT | 0 | July 7, 2011 09:38 |
URGENT ! Need help on Axisymmetric Flow ! | Suman Kumar | Main CFD Forum | 1 | November 20, 2001 15:51 |