|
[Sponsors] |
[mesh manipulation] 2D Axisymmetric Model in OpenFOAM 4.0 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 9, 2017, 09:21 |
2D Axisymmetric Model in OpenFOAM 4.0
|
#1 |
Member
Matt Ridzon
Join Date: Jun 2014
Posts: 91
Rep Power: 12 |
I have two questions about modelling 2D axisymmetric flows in OpenFOAM 4.0 in Linux.
1) I recently learned about the following website which contains a utility to take a mesh and collapse it into a wedge thereby preparing it for an axisymmetric simulation. The header of the website states the valid versions, but stops at v2.0. Does anybody know if this utility works with v4.0? http://openfoamwiki.net/index.php/Contrib_MakeAxialMesh 2) I understand that the aforementioned utility takes a mesh and collapses one side to form a wedge. But that web page, nor that OpenFOAM User Manual Sec 5.3.3 (https://cfd.direct/openfoam/user-gui...25-1830005.3.3) indicate what the starting size of the block should be before collapsing. In other words, using the lid-driven-cavity tutorial from the User Manual, its Z thickness is 0.1m. Collapsing this will produce a wedge of a certain angle. However, if the Z thickness instead started at some other arbitrary number (e.g., 2.0m), the resulting wedge angle will be different after collapsing. So presumably, the wedge angle will have an effect on the simulation, correct? If so, what should the wedge angle be? Thanks, M Ridzon |
|
April 12, 2017, 15:37 |
|
#2 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52 |
Hi Ridzon,
I checked the site you mentioned and I guess it is very out dated. For 2D mesh generation you can extrudeMesh utility that come with OpenFOAM. Tutorials for 2D meshes are given in my website. The second question is related to - how the mesh is extruded. Normally we extrude from the x, y, or z axis (starting from origin). If the plane you want to extrude is not aligned with these corresponding planes (origin point and vector x, y, z), the resulting mesh is different. So if you want to make a 2D wedge mesh, you should put the patch that should be extruded to one of the origin's planes. However, maybe it is not necessary anymore and we can specify some alternative origin for extruding (just check the extrudeMeshDict). Good luck and I hope I got your question right (especially the second one).
__________________
Keep foaming, Tobias Holzmann |
|
April 12, 2017, 17:46 |
|
#3 |
Member
Matt Ridzon
Join Date: Jun 2014
Posts: 91
Rep Power: 12 |
Tobi,
Thanks for your response, but I'm not sure you understood my second question. Please see the attached thumbnail with my example. In it, I illustrated two examples where I'm collapsing in the XZ plane. In the first scenario, the Z dimension of the block is 0.4, while in the second scenario, the Z dimension is 0.6. After collapsing, this produces wedges of different angles; alpha = 21.8° in the first and 31.0° in the second. So by merely changing the Z dimension of the original block, the wedge changed shaped. How does the software know how to deal with this? Or is there a requirement that the wedge always collapse to a specified angle (e.g., 5 degrees) thus forcing the user to ensure the initial Z dimension is appropriate to achieve that specified angle upon collapsing? Or does the software not care what angle the wedge has? Thanks again! M Ridzon |
|
April 12, 2017, 18:12 |
|
#4 |
Senior Member
Wouter van der Meer
Join Date: May 2009
Location: Elahuizen, Netherlands
Posts: 203
Rep Power: 18 |
hello m_ridzon,
As far as I know the third dimension is ignored, so in your case only xy plane is used than a 5 deg wedge is made with this plane. But as Tobi describes the z plane will become the axis of the wedge. Hope this helps Wouter |
|
April 13, 2017, 01:35 |
|
#5 |
Senior Member
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 744
Rep Power: 15 |
The resulting angel may be configured in system.rotataionDict->wedgeAngle
The z coordinate will be ignored.
__________________
Uwe Pilz -- Die der Hauptbewegung überlagerte Schwankungsbewegung ist in ihren Einzelheiten so hoffnungslos kompliziert, daß ihre theoretische Berechnung aussichtslos erscheint. (Hermann Schlichting, 1950) |
|
April 13, 2017, 04:05 |
|
#6 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52 |
Hi all,
I just want to complete the not 100% correct things here and want to sum up:
__________________
Keep foaming, Tobias Holzmann Last edited by Tobi; April 13, 2017 at 07:51. Reason: I mixed up two threads. |
|
April 13, 2017, 10:17 |
|
#7 | |
Member
Matt Ridzon
Join Date: Jun 2014
Posts: 91
Rep Power: 12 |
Thanks folks! Yes, I'm using the Foundation FOAM version 4.0. I haven't messed with the Extend version at all.
This is very interesting and I'm glad I asked. Unless I missed it, I was unable to find this tiny, but vital detail in the User Manual. Quote:
Thanks again! M Ridzon |
||
April 17, 2017, 03:51 |
|
#8 |
Senior Member
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 744
Rep Power: 15 |
> Or does the solver alert you if it's not 5°?
I am not quite sure about this, but I assume that the wedge boundary condition is elaborated for this angle.
__________________
Uwe Pilz -- Die der Hauptbewegung überlagerte Schwankungsbewegung ist in ihren Einzelheiten so hoffnungslos kompliziert, daß ihre theoretische Berechnung aussichtslos erscheint. (Hermann Schlichting, 1950) |
|
April 21, 2017, 16:58 |
|
#9 |
Senior Member
CFD
Join Date: Nov 2010
Location: United States
Posts: 243
Rep Power: 17 |
Hi,
Typical wedge angle would be according the CFD community <5 degrees. I used before different wedge angle i.e 10, 15, and 25 degrees to see how the angle would effect my solution and found that values below 5 would give better solution (You could try that too if you want a further investigation). Another question that of my interests about the wedge bc is in the following https://www.cfd-online.com/Forums/op...th-behind.html |
|
April 21, 2017, 17:54 |
|
#10 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52 |
The angle of 5 degree is mentioned in the user guide. So I would guess that this is the angle you should use and nothing else.
Sent from my HTC One mini using CFD Online Forum mobile app
__________________
Keep foaming, Tobias Holzmann |
|
April 21, 2017, 18:11 |
|
#11 | |
Senior Member
CFD
Join Date: Nov 2010
Location: United States
Posts: 243
Rep Power: 17 |
Quote:
Regards, |
||
April 22, 2017, 02:22 |
|
#12 |
Senior Member
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 744
Rep Power: 15 |
> What is the math behind it?
As far as I understand it: There is no special math. The geometry is warped into a real wedge. The only difference is the boundary condition, which changes from empty to wedge. I assume, that a slip b.c. would give similar results.
__________________
Uwe Pilz -- Die der Hauptbewegung überlagerte Schwankungsbewegung ist in ihren Einzelheiten so hoffnungslos kompliziert, daß ihre theoretische Berechnung aussichtslos erscheint. (Hermann Schlichting, 1950) |
|
April 22, 2017, 09:22 |
|
#13 | ||
Member
Matt Ridzon
Join Date: Jun 2014
Posts: 91
Rep Power: 12 |
Quote:
Quote:
|
|||
January 11, 2018, 06:45 |
|
#14 | |
New Member
karundev
Join Date: Jun 2017
Location: India
Posts: 25
Rep Power: 9 |
Quote:
I have gone through your tut on 2d axi-symmetric cases. The tutorial is well posted and really helpful. I need clarification in some basic doubts. 1. In background mess, is it required to specify patch names? 2. After snappy how you are changing patch names like 'maxZ, minZ' to 'front or back'? 3. Suppose if I define multiple cellzones in snappyHexMesh and if I convert it to wedge , will the cellzone be still marked? Thank You |
||
January 11, 2018, 08:20 |
|
#15 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52 |
Hi and thanks for your positive feedback,
1. no it is not required; generally my patch names come from the STL`s (depend on your mesh strategy) 2. Either manual by changing the names in constant/polyMesh/boundary or using the changeDictionary application. However, generally point #1 generates my boundary names (in other words, snappyHexMesh is responsible for it) 3. Good question, never checked it out. Could be but it can happen that it is removed. However, regeneration of the cell zones should not be a big deal. I refer to topoSet and setSet.
__________________
Keep foaming, Tobias Holzmann |
|
January 15, 2018, 07:00 |
Cellzone in wedge
|
#16 |
New Member
karundev
Join Date: Jun 2017
Location: India
Posts: 25
Rep Power: 9 |
Hello,
Cellzone will remain marked even after converting geometry to wedge. checked cellZone file and observed the changes to make sure that its not the old file (befor extrudeMesh) still existing. Regards Karundv |
|
January 17, 2018, 00:59 |
extrudeMesh
|
#17 |
New Member
karundev
Join Date: Jun 2017
Location: India
Posts: 25
Rep Power: 9 |
Hello,
After extrudeMesh getting 5 error in checkMesh. How this can be controlled? snappyHexMeshDict? |
|
January 17, 2018, 02:41 |
|
#19 |
New Member
karundev
Join Date: Jun 2017
Location: India
Posts: 25
Rep Power: 9 |
hi,
I guess exruded direction is correct because I got the expected shape. But checkMesh is showing error and simulation stopes with 'core dumped' message. My snappyHexMesh finishes with this warning 'Finished meshing with 31280 illegal faces', but checkMesh showed Ok. Again got 5 error in checkMesh after forming wedge. |
|
January 17, 2018, 02:47 |
|
#20 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52 |
In my opinion, I can see wrong oriented faces. To proof my statement, check the surface normal vectors in ParaView.
Code:
My snappyHexMesh finishes with this warning 'Finished meshing with 31280 illegal faces', but checkMesh showed Ok. Again got 5 error in checkMesh after forming wedge.
__________________
Keep foaming, Tobias Holzmann |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
(FW-H OpenFOAM) Ffowcs-Williams and Hawking Acoustic model for OpenFOAM | Alhasan | OpenFOAM Post-Processing | 8 | March 28, 2023 13:52 |
How to contribute to the community of OpenFOAM users and to the OpenFOAM technology | wyldckat | OpenFOAM | 17 | November 10, 2017 16:54 |
OpenFOAM 4.0 Released | CFDFoundation | OpenFOAM Announcements from OpenFOAM Foundation | 2 | October 6, 2017 06:40 |
Simulating an aether model of EM using OpenFoam? | lamare | Electromagnetics | 2 | September 15, 2016 06:08 |
axisymmetric model issue | prc | Siemens | 4 | February 7, 2007 07:42 |