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

[mesh manipulation] Converting a 2Dmesh to axisymmetric

Register Blogs Community New Posts Updated Threads Search

Like Tree20Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 20, 2014, 10:03
Default
  #181
Senior Member
 
zhangyan's Avatar
 
Yan Zhang
Join Date: May 2014
Posts: 120
Rep Power: 12
zhangyan is on a distinguished road
Quote:
Originally Posted by davibarreira View Post
The dictionary for makeAxilMesh is rotationDict not rotateDict. Can you post your blockMeshDict here so I can take a look?
oh,thanks!
Attached Files
File Type: zip blockMeshDict.zip (947 Bytes, 22 views)
zhangyan is offline   Reply With Quote

Old   December 20, 2014, 10:08
Default
  #182
Senior Member
 
zhangyan's Avatar
 
Yan Zhang
Join Date: May 2014
Posts: 120
Rep Power: 12
zhangyan is on a distinguished road
Quote:
Originally Posted by davibarreira View Post
The dictionary for makeAxilMesh is rotationDict not rotateDict. Can you post your blockMeshDict here so I can take a look?
oh
you mean the command rotateMesh don't need any dictionary?
zhangyan is offline   Reply With Quote

Old   December 20, 2014, 19:06
Default
  #183
Member
 
Davi Barreira
Join Date: Apr 2014
Location: Fortaleza
Posts: 76
Rep Power: 12
davibarreira is on a distinguished road
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.
Attached Files
File Type: zip collapseDict.zip (679 Bytes, 98 views)
File Type: zip rotationDict.zip (680 Bytes, 65 views)
davibarreira is offline   Reply With Quote

Old   December 20, 2014, 19:23
Default
  #184
Senior Member
 
zhangyan's Avatar
 
Yan Zhang
Join Date: May 2014
Posts: 120
Rep Power: 12
zhangyan is on a distinguished road
thanks for your kindness!
I will try it.
__________________
https://openfoam.top
zhangyan is offline   Reply With Quote

Old   December 21, 2014, 22:08
Default
  #185
Senior Member
 
zhangyan's Avatar
 
Yan Zhang
Join Date: May 2014
Posts: 120
Rep Power: 12
zhangyan is on a distinguished road
Quote:
Originally Posted by davibarreira View Post
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.
maybe I can operate in another way:blockMesh...makeAxialMesh -overwrite...collapseEdges -overwrite?
__________________
https://openfoam.top
zhangyan is offline   Reply With Quote

Old   January 7, 2015, 17:11
Default
  #186
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by zhangyan View Post
maybe I can operate in another way:blockMesh...makeAxialMesh -overwrite...collapseEdges -overwrite?
Try it. (as some time passed you probably did it and it worked)
davibarreira likes this.
__________________
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
gschaider is offline   Reply With Quote

Old   March 22, 2015, 21:01
Default Help
  #187
New Member
 
Everton Santos
Join Date: Jan 2015
Posts: 7
Rep Power: 11
dumas is on a distinguished road
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.


Attached Files
File Type: gz Tmalhanowedge.tar.gz (22.8 KB, 13 views)
dumas is offline   Reply With Quote

Old   March 23, 2015, 00:04
Default Hi Santos,
  #188
Senior Member
 
zhangyan's Avatar
 
Yan Zhang
Join Date: May 2014
Posts: 120
Rep Power: 12
zhangyan is on a distinguished road
Quote:
Originally Posted by dumas View Post
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.



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.
zhangyan is offline   Reply With Quote

Old   March 23, 2015, 08:12
Default thanks
  #189
New Member
 
Everton Santos
Join Date: Jan 2015
Posts: 7
Rep Power: 11
dumas is on a distinguished road
Thank zhangyan, I will try to perform these procedures. No problem, sorry my English.
dumas is offline   Reply With Quote

Old   March 23, 2015, 13:05
Default Help
  #190
New Member
 
Everton Santos
Join Date: Jan 2015
Posts: 7
Rep Power: 11
dumas is on a distinguished road
Quote:
Originally Posted by zhangyan View Post
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.



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
Attached Images
File Type: jpg Captura_de_tela.jpg (38.1 KB, 45 views)
File Type: jpg Captura_de_tela-1.jpg (35.5 KB, 37 views)
Attached Files
File Type: gz Tmalhanowedge2.tar.gz (43.1 KB, 2 views)
dumas is offline   Reply With Quote

Old   April 27, 2015, 12:30
Default 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
ali.ghaemi is on a distinguished road
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.
Attached Files
File Type: gz axi-2.tar.gz (4.6 KB, 3 views)
ali.ghaemi is offline   Reply With Quote

Old   August 15, 2015, 11:54
Default
  #192
Member
 
Davi Barreira
Join Date: Apr 2014
Location: Fortaleza
Posts: 76
Rep Power: 12
davibarreira is on a distinguished road
You might want to try OF 2.4, they made some improvements to the makeAxialMesh.

Cheers
davibarreira is offline   Reply With Quote

Old   October 2, 2015, 12:48
Default makeAxialMesh
  #193
New Member
 
Antony Premkumar
Join Date: Jul 2015
Posts: 19
Rep Power: 11
Antony_P is on a distinguished road
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
Antony_P is offline   Reply With Quote

Old   October 2, 2015, 12:55
Default round off
  #194
Member
 
David P. Schmidt
Join Date: Mar 2009
Posts: 72
Rep Power: 17
schmidt_d is on a distinguished road
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.
Antony_P likes this.
schmidt_d is offline   Reply With Quote

Old   October 14, 2015, 05:28
Default checkMesh
  #195
New Member
 
Antony Premkumar
Join Date: Jul 2015
Posts: 19
Rep Power: 11
Antony_P is on a distinguished road
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
Attached Images
File Type: jpg snap1.jpg (53.6 KB, 36 views)
File Type: jpg snap2.jpg (129.8 KB, 23 views)
Antony_P is offline   Reply With Quote

Old   October 14, 2015, 05:29
Default
  #196
New Member
 
Antony Premkumar
Join Date: Jul 2015
Posts: 19
Rep Power: 11
Antony_P is on a distinguished road
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
Antony_P is offline   Reply With Quote

Old   October 14, 2015, 07:31
Default
  #197
Member
 
Davi Barreira
Join Date: Apr 2014
Location: Fortaleza
Posts: 76
Rep Power: 12
davibarreira is on a distinguished road
Try to use extrudeMesh after snappyHexMesh
Antony_P likes this.
davibarreira is offline   Reply With Quote

Old   October 15, 2015, 11:57
Default extrudeMesh
  #198
New Member
 
Antony Premkumar
Join Date: Jul 2015
Posts: 19
Rep Power: 11
Antony_P is on a distinguished road
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??
Antony_P is offline   Reply With Quote

Old   October 28, 2015, 12:41
Default
  #199
Senior Member
 
Hisham's Avatar
 
Hisham Elsafti
Join Date: Apr 2011
Location: Braunschweig, Germany
Posts: 257
Blog Entries: 10
Rep Power: 17
Hisham is on a distinguished road
Hallo Antony,

Have you defined frontAndBack_neg as wedge in your constant/polyMesh/boundary file?

Best regards
Hisham
Hisham is offline   Reply With Quote

Old   October 28, 2015, 12:53
Default
  #200
New Member
 
Antony Premkumar
Join Date: Jul 2015
Posts: 19
Rep Power: 11
Antony_P is on a distinguished road
@Hisham.
After running snappyHexMesh frontAndBack is patch.
After running makeAxialMesh frontAndBack is patch, frontAndBack_pos is wedge and frontAndBack_neg is wedge.
Antony_P 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
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


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