# *.msh conversion + axissymetric problem

 Register Blogs Members List Search Today's Posts Mark Forums Read

 July 13, 2010, 18:19 *.msh conversion + axissymetric problem #1 New Member   Abdel Join Date: Jul 2010 Posts: 28 Rep Power: 7 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, 18:50 #2 Super Moderator   Bruno Santos Join Date: Mar 2009 Location: Lisbon, Portugal Posts: 8,301 Blog Entries: 34 Rep Power: 84 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: In openfoamwiki.net: http://openfoamwiki.net/index.php/Ma...s/AxiSymmetric To search for text in files (I google'd it ), simply go to the tutorials folder in a terminal and run this command line: Code: `find . | xargs grep 'wedge' -sl` You can also try inside the applications folder of OpenFOAM, because sometimes there are pearls of wisdom in them! Just two hours ago, this thread was updated about 3D axissymetry: 3D axissymmetric problem Using the advanced search mode in this forum, searching for "axisymmetric" (note only one 's') and in OpenFOAM forums only, it gave me 15 threads that talk about it! Good luck! Best regards, Bruno __________________ OpenFOAM: Frequently Asked Questions | Useful links for building and using Forum: How to ask for help | Posting code and output with [CODE] My to-do list and when I'll be able to come to the forum: http://wyldckat.github.io And please: Read this before sending private messages to me

 July 13, 2010, 19:37 #3 New Member   Abdel Join Date: Jul 2010 Posts: 28 Rep Power: 7 Thanks Bruno for your response hope that can help me!!

 July 14, 2010, 03:30 #4 New Member   Join Date: May 2010 Location: Cologne Posts: 27 Rep Power: 7 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, 07:41 #5 Senior Member   Pei-Ying Hsieh Join Date: Mar 2009 Posts: 271 Rep Power: 9 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, 08:55 #6 New Member   Join Date: May 2010 Location: Cologne Posts: 27 Rep Power: 7 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, 12:20
#7
New Member

Abdel
Join Date: Jul 2010
Posts: 28
Rep Power: 7
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;
}
)
Attached Images
 1.jpg (38.3 KB, 22 views) 2.jpg (48.9 KB, 19 views) 3.jpg (11.2 KB, 16 views)

 July 14, 2010, 16:58 #8 Senior Member   Pei-Ying Hsieh Join Date: Mar 2009 Posts: 271 Rep Power: 9 hi, did you checkout the latest version from svn? It works for me on OpenFOAM-1.7.x. Pei

 July 14, 2010, 17:01 #9 Senior Member   Pei-Ying Hsieh Join Date: Mar 2009 Posts: 271 Rep Power: 9 Hi, bruxellois4, I assume that your frontAndBackPlanes are the wedge BC. So, frontAndBackPlanes { type wedge; nFaces 60730; startFace 61126; } Pei

 July 14, 2010, 17:08 #10 New Member   Abdel Join Date: Jul 2010 Posts: 28 Rep Power: 7 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, 19:25 #11 Senior Member   Pei-Ying Hsieh Join Date: Mar 2009 Posts: 271 Rep Power: 9 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, 19:32 #12 New Member   Abdel Join Date: Jul 2010 Posts: 28 Rep Power: 7 [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, 19:42 #13 New Member   Abdel Join Date: Jul 2010 Posts: 28 Rep Power: 7 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 20:54.

 July 14, 2010, 21:33 #14 Senior Member   Pei-Ying Hsieh Join Date: Mar 2009 Posts: 271 Rep Power: 9 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, 21:35
#15
Senior Member

Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 271
Rep Power: 9
[QUOTE=bruxellois4;267324]
Quote:
 Originally Posted by phsieh2005 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
If you do not mind, pack up the case. I can take a quick look at it.

Send it to phsieh2005@yahoo.com

Pei

July 14, 2010, 23:37
#16
New Member

Abdel
Join Date: Jul 2010
Posts: 28
Rep Power: 7
[QUOTE=phsieh2005;267337]
Quote:
 Originally Posted by bruxellois4 If you do not mind, pack up the case. I can take a quick look at it. Send it to phsieh2005@yahoo.com Pei
Yes of course

thank you Pei!

 November 26, 2010, 07:55 #17 Senior Member   Matthias Voß Join Date: Mar 2009 Location: Berlin, Germany Posts: 446 Rep Power: 11 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: 446 Rep Power: 11 me again, i solved the problem by just simply deleting every .lib entry in my controlDict. neewbie

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post Wouter Fluent UDF and Scheme Programming 6 June 6, 2012 04:43 Gianni FLUENT 0 April 5, 2008 10:33 Se-Hee CFX 2 June 10, 2007 06:29 ParodDav CFX 5 April 29, 2007 19:13 lambuhere CFX 0 August 20, 2004 04:49

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