|
[Sponsors] |
July 13, 2010, 19:19 |
*.msh conversion + axissymetric problem
|
#1 |
New Member
Abdel
Join Date: Jul 2010
Posts: 28
Rep Power: 16 |
Hi everybody!!
I've converted a mesh (*.msh), it is an axissymetric problem (a barrel of a gun) but now after conversion i'm not sure that's a an axissymetric problem yet!! The wedge explanation on the user guide is not clear!! you can see my boundary file here http://www.4shared.com/file/nSG5aXjl/boundary.html How can I define a 2D an axissymetric problem, i have to define my symmetry axis (revolution axis) as a wedge? If yes how can i do it? Is there a tutorial case with an 2D axissymetric problem? Best regards!! |
|
July 13, 2010, 19:50 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings Abdel,
I've been remembering about your posts about this, but never found the time again to try to answer them. Additionally, I have literally no experience in axisymetric cases, so that was another reason for not replying sooner . But since you opened a another thread, I remembered to search in the usual places:
Bruno
__________________
|
|
July 13, 2010, 20:37 |
|
#3 |
New Member
Abdel
Join Date: Jul 2010
Posts: 28
Rep Power: 16 |
Thanks Bruno for your response hope that can help me!!
|
|
July 14, 2010, 04:30 |
|
#4 |
New Member
Join Date: May 2010
Location: Cologne
Posts: 27
Rep Power: 16 |
hi bruxellois4,
think you can not copy the fluent axissymetry-mesh directly to openfoam as a wedge mesh. either you create a new mesh with blockMesh or (i've never tried this) you create a mesh in gabit with the following rules (page 18) http://projekter.aau.dk/projekter/fi...784/Report.pdf i hope this helps PS: in this report has some other interesting information |
|
July 14, 2010, 08:41 |
|
#5 |
Senior Member
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 334
Rep Power: 18 |
Hi,
Someone developed an utility called makeAxialMesh for OpenFOAM. It will convert a 2D mesh to an axi-symmetric mesh. Search makeAxialMesh on OpenFOAM wiki. You can download the code + some documentation on how to use it. It is quite straight forward. Pei |
|
July 14, 2010, 09:55 |
|
#6 |
New Member
Join Date: May 2010
Location: Cologne
Posts: 27
Rep Power: 16 |
hi phsieh,
the link you are talking about is: http://openfoamwiki.net/index.php/Contrib_MakeAxialMesh this converts a 2D block mesh file (with parallel faces) into an wedge-mesh, but i don't think it can convert a fluent axissymetry-mesh to open-foam wedge. for the axissymetry-mesh the type "cyclic" must be taken. am i wrong with this? |
|
July 14, 2010, 13:20 |
|
#7 |
New Member
Abdel
Join Date: Jul 2010
Posts: 28
Rep Power: 16 |
I don't think that MakeAxialMesh works with openFOam 1.7.
I have to simulate a barrel of a gun, as you can see in screen shots (attachments), i have one cell thick in y i direction, but in my boundary file i don't see how to define a wedge, SO has an idea, help plzz 13 ( tube5 { type wall; nFaces 30; startFace 60334; } tube4 { type wall; nFaces 3; startFace 60364; } FREIN3 { type wall; nFaces 70; startFace 60367; } FREIN2 { type wall; nFaces 15; startFace 60437; } FREIN1 { type wall; nFaces 30; startFace 60452; } Frein { type wall; nFaces 20; startFace 60482; } Pressure_inlet { type patch; nFaces 30; startFace 60502; } Tube3 { type wall; nFaces 21; startFace 60532; } Tube2 { type wall; nFaces 10; startFace 60553; } Tube1 { type wall; nFaces 139; startFace 60563; } Axe { type symmetryPlane; nFaces 215; startFace 60702; } Pressure_outlet { type patch; nFaces 209; startFace 60917; } frontAndBackPlanes { type empty; nFaces 60730; startFace 61126; } ) |
|
July 14, 2010, 17:58 |
|
#8 |
Senior Member
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 334
Rep Power: 18 |
hi,
did you checkout the latest version from svn? It works for me on OpenFOAM-1.7.x. Pei |
|
July 14, 2010, 18:01 |
|
#9 |
Senior Member
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 334
Rep Power: 18 |
Hi, bruxellois4,
I assume that your frontAndBackPlanes are the wedge BC. So, frontAndBackPlanes { type wedge; nFaces 60730; startFace 61126; } Pei |
|
July 14, 2010, 18:08 |
|
#10 |
New Member
Abdel
Join Date: Jul 2010
Posts: 28
Rep Power: 16 |
Hi Pei,
i 've changed the frontAndBackPlanes to wedge type but that i didn't see any change under paraview i steel having the same graphics. Do you have any idea how to install MakeAxialMesh under OF 1.7! Thanks Abdel |
|
July 14, 2010, 20:25 |
|
#11 |
Senior Member
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 334
Rep Power: 18 |
Hi, bruxellois4
In your 0/ folder, all variables, say p and U, you should also have frontAndBackPlanes set to wedge, for example, frontAndBackPlanes { type wedge; } -------------- I don't understand what you mean by you still have the same graphics under paraview. To install makeAxialMesh under OF-1.7.x, just download the latest version from svn (mentioned on the wiki page). Then, cd do the MakeAxialMesh folder, type ./Allwmake Good Luck! Pei |
|
July 14, 2010, 20:32 |
|
#12 |
New Member
Abdel
Join Date: Jul 2010
Posts: 28
Rep Power: 16 |
[QUOTE=phsieh2005;267323]Hi, bruxellois4
In your 0/ folder, all variables, say p and U, you should also have frontAndBackPlanes -------------- I don't understand what you mean by you still have the same graphics under paraview. [/QUOTErmar Yes it's done but ididn' remark any change in graphics (paraview) withe empty patch or wedge, it 's the same regards Pei |
|
July 14, 2010, 20:42 |
|
#13 |
New Member
Abdel
Join Date: Jul 2010
Posts: 28
Rep Power: 16 |
For makeAxialMess i've puted the folder under mesh/manipulation (makeAxialMes folder contain a folder (make) and a makeAxialMes.C file) i tried ./Alwemake but tha doesnt work.
1: wmake not found Abdel Last edited by bruxellois4; July 14, 2010 at 21:54. |
|
July 14, 2010, 22:33 |
|
#14 |
Senior Member
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 334
Rep Power: 18 |
Hi, Abdel,
When you check out the MakeAxialMesh files, you cd to MakeAxialMesh folder. You should have the following files/directories: TestCases (a folder) makeAxialMesh (a folder) Allwmake README type ./Allwmake in this folder. DO NOT cd to makeAxialMesh folder. Pei |
|
July 14, 2010, 22:35 |
|
#15 | |
Senior Member
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 334
Rep Power: 18 |
[QUOTE=bruxellois4;267324]
Quote:
Send it to phsieh2005@yahoo.com Pei |
||
July 15, 2010, 00:37 |
|
#16 | |
New Member
Abdel
Join Date: Jul 2010
Posts: 28
Rep Power: 16 |
[QUOTE=phsieh2005;267337]
Quote:
thank you Pei! |
||
November 26, 2010, 07:55 |
|
#17 |
Senior Member
Matthias Voß
Join Date: Mar 2009
Location: Berlin, Germany
Posts: 449
Rep Power: 20 |
hi,
I am running OF 1.7.x. under suse, installed MakeAxialMesh without any problems. I’m facing some trouble whilst coming from msh. to a running axialmesh case using the makeAxialMesh tool. What i did so far: - created a quasi 2D Mesh in ICEM (1 cell height, frontandback in one patch, all patches are walls for now) --> exported to Fluent.V6 - used fluentMeshToFoam successfully -checkMesh ran without pointing out any mistakes - makeAxialMesh ran upto some fancy failure in "Attempt to cast type polyMesh to type fvMesh" AFTER successfully "copying patches ...." - the Output is pointing @ typeInfo.H (which is checking the types objects???) So. Anybody ever faced smth. similar? neewbie |
|
November 26, 2010, 08:03 |
|
#18 |
Senior Member
Matthias Voß
Join Date: Mar 2009
Location: Berlin, Germany
Posts: 449
Rep Power: 20 |
me again,
i solved the problem by just simply deleting every .lib entry in my controlDict. neewbie |
|
March 5, 2020, 16:48 |
|
#19 |
Member
Join Date: Sep 2013
Posts: 46
Rep Power: 13 |
Hi!
For me, I changed Code:
if (!overwrite) { runTime++; } else { mesh.setInstance(oldInstance); } to Code:
if (!overwrite) { Info << "MK: runTime++ created corruptions. Therefore using -overwrite. sorry!" << endl; //runTime.functionObjects(); mesh.setInstance(oldInstance); Info << "MK: setting old instance" << endl; } else { mesh.setInstance(oldInstance); } in makeAxialMesh.C that solved it. but you can just override |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF compiling problem | Wouter | Fluent UDF and Scheme Programming | 6 | June 6, 2012 05:43 |
Incoherent problem table in hollow-fiber spinning | Gianni | FLUENT | 0 | April 5, 2008 11:33 |
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 |
Unit Conversion Problem | lambuhere | CFX | 0 | August 20, 2004 05:49 |