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

*.msh conversion + axissymetric problem

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 13, 2010, 19:19
Lightbulb *.msh conversion + axissymetric problem
  #1
New Member
 
Abdel
Join Date: Jul 2010
Posts: 28
Rep Power: 16
bruxellois4 is on a distinguished road
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!!
bruxellois4 is offline   Reply With Quote

Old   July 13, 2010, 19:50
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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:
  1. In openfoamwiki.net: http://openfoamwiki.net/index.php/Ma...s/AxiSymmetric
  2. 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!
  3. Just two hours ago, this thread was updated about 3D axissymetry: http://www.cfd-online.com/Forums/ope...c-problem.html
  4. 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
__________________
wyldckat is offline   Reply With Quote

Old   July 13, 2010, 20:37
Default
  #3
New Member
 
Abdel
Join Date: Jul 2010
Posts: 28
Rep Power: 16
bruxellois4 is on a distinguished road
Thanks Bruno for your response hope that can help me!!
bruxellois4 is offline   Reply With Quote

Old   July 14, 2010, 04:30
Default
  #4
New Member
 
Join Date: May 2010
Location: Cologne
Posts: 27
Rep Power: 16
marcbest is on a distinguished road
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
marcbest is offline   Reply With Quote

Old   July 14, 2010, 08:41
Default
  #5
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 334
Rep Power: 18
phsieh2005 is on a distinguished road
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
phsieh2005 is offline   Reply With Quote

Old   July 14, 2010, 09:55
Default
  #6
New Member
 
Join Date: May 2010
Location: Cologne
Posts: 27
Rep Power: 16
marcbest is on a distinguished road
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?
marcbest is offline   Reply With Quote

Old   July 14, 2010, 13:20
Angry
  #7
New Member
 
Abdel
Join Date: Jul 2010
Posts: 28
Rep Power: 16
bruxellois4 is on a distinguished road
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
File Type: jpg 1.jpg (38.3 KB, 24 views)
File Type: jpg 2.jpg (48.9 KB, 20 views)
File Type: jpg 3.jpg (11.2 KB, 17 views)
bruxellois4 is offline   Reply With Quote

Old   July 14, 2010, 17:58
Default
  #8
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 334
Rep Power: 18
phsieh2005 is on a distinguished road
hi,

did you checkout the latest version from svn? It works for me on OpenFOAM-1.7.x.

Pei
phsieh2005 is offline   Reply With Quote

Old   July 14, 2010, 18:01
Default
  #9
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 334
Rep Power: 18
phsieh2005 is on a distinguished road
Hi, bruxellois4,

I assume that your frontAndBackPlanes are the wedge BC.

So,

frontAndBackPlanes
{
type wedge;
nFaces 60730;
startFace 61126;
}

Pei
phsieh2005 is offline   Reply With Quote

Old   July 14, 2010, 18:08
Default
  #10
New Member
 
Abdel
Join Date: Jul 2010
Posts: 28
Rep Power: 16
bruxellois4 is on a distinguished road
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
bruxellois4 is offline   Reply With Quote

Old   July 14, 2010, 20:25
Default
  #11
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 334
Rep Power: 18
phsieh2005 is on a distinguished road
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
phsieh2005 is offline   Reply With Quote

Old   July 14, 2010, 20:32
Default
  #12
New Member
 
Abdel
Join Date: Jul 2010
Posts: 28
Rep Power: 16
bruxellois4 is on a distinguished road
[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
bruxellois4 is offline   Reply With Quote

Old   July 14, 2010, 20:42
Default
  #13
New Member
 
Abdel
Join Date: Jul 2010
Posts: 28
Rep Power: 16
bruxellois4 is on a distinguished road
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.
bruxellois4 is offline   Reply With Quote

Old   July 14, 2010, 22:33
Default
  #14
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 334
Rep Power: 18
phsieh2005 is on a distinguished road
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
phsieh2005 is offline   Reply With Quote

Old   July 14, 2010, 22:35
Default
  #15
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 334
Rep Power: 18
phsieh2005 is on a distinguished road
[QUOTE=bruxellois4;267324]
Quote:
Originally Posted by phsieh2005 View Post
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
phsieh2005 is offline   Reply With Quote

Old   July 15, 2010, 00:37
Default
  #16
New Member
 
Abdel
Join Date: Jul 2010
Posts: 28
Rep Power: 16
bruxellois4 is on a distinguished road
[QUOTE=phsieh2005;267337]
Quote:
Originally Posted by bruxellois4 View Post

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!
bruxellois4 is offline   Reply With Quote

Old   November 26, 2010, 07:55
Default
  #17
Senior Member
 
Matthias Voß
Join Date: Mar 2009
Location: Berlin, Germany
Posts: 449
Rep Power: 20
mvoss is on a distinguished road
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
mvoss is offline   Reply With Quote

Old   November 26, 2010, 08:03
Default
  #18
Senior Member
 
Matthias Voß
Join Date: Mar 2009
Location: Berlin, Germany
Posts: 449
Rep Power: 20
mvoss is on a distinguished road
me again,

i solved the problem by just simply deleting every .lib entry in my controlDict.

neewbie
mvoss is offline   Reply With Quote

Old   March 5, 2020, 16:48
Default
  #19
Member
 
Join Date: Sep 2013
Posts: 46
Rep Power: 13
ma-tri-x is on a distinguished road
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
ma-tri-x 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
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


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