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 25, 2012, 17:14
Default
  #141
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 rajeshkunwar View Post
What is the difference between new mode and old mode...Pls somebody explain it.
old mode is if you specify axis and wege from the command line and therefor the dictionary is not used. This mode does not allow the axis to have an offset
__________________
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   December 26, 2012, 01:34
Default reply
  #142
Member
 
vahid
Join Date: Feb 2012
Location: Mashhad-Iran
Posts: 80
Rep Power: 13
vahid.najafi is an unknown quantity at this point
Hi, Dear rajeshkunwar.
Your question not Clear for me!!!plz Explain more about your question?
maybe i can help you!!!
vahid.najafi is offline   Reply With Quote

Old   December 26, 2012, 01:35
Default
  #143
Member
 
vahid
Join Date: Feb 2012
Location: Mashhad-Iran
Posts: 80
Rep Power: 13
vahid.najafi is an unknown quantity at this point
Hi, Dear rajeshkunwar.
Your question not Clear for me!!!plz Explain more about your question?
maybe i can help you!!!
vahid.najafi is offline   Reply With Quote

Old   December 27, 2012, 04:34
Default
  #144
New Member
 
Rajesh Kumar
Join Date: Apr 2009
Posts: 25
Rep Power: 17
rajeshkunwar is on a distinguished road
The axis patch type becomes symmetryPlane after using makeAxialMesh in boundary file of polyMesh directory . What boundary type I have to specify in P and U files for symmetryPlane.
rajeshkunwar is offline   Reply With Quote

Old   December 28, 2012, 17:02
Default
  #145
Member
 
vahid
Join Date: Feb 2012
Location: Mashhad-Iran
Posts: 80
Rep Power: 13
vahid.najafi is an unknown quantity at this point
if you done true all steps,you should have Something similar the following lines in your boundary:
frontAndBackPlanes
{
type empty;
}
frontAndBackPlanes_pos
{
type wedge;
}
frontAndBackPlanes_neg
{
type wedge;
}

are you make this lines(wedge) in your boundary in polymesh file?if you see this,so you should add the above lines in P and U files.
vahid.najafi is offline   Reply With Quote

Old   December 29, 2012, 11:26
Default
  #146
New Member
 
Rajesh Kumar
Join Date: Apr 2009
Posts: 25
Rep Power: 17
rajeshkunwar is on a distinguished road
Hi Vahid. Thank you for replying. my boundary file is below. The axis patch name is Axis.

FoamFile
{
version 2.0;
format ascii;
class polyBoundaryMesh;
location "constant/polyMesh";
object boundary;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

8
(
Axis
{
type symmetryPlane;
nFaces 0;
startFace 19800;
}
Upper_Boundary
{
type patch;
nFaces 100;
startFace 19800;
}
Side_Boundary
{
type patch;
nFaces 100;
startFace 19900;
}
Bottom_Wall
{
type wall;
nFaces 90;
startFace 20000;
}
Source
{
type patch;
nFaces 10;
startFace 20090;
}
frontAndBackPlanes
{
type empty;
nFaces 0;
startFace 20100;
}
frontAndBackPlanes_pos
{
type wedge;
nFaces 10000;
startFace 20100;
}
frontAndBackPlanes_neg
{
type wedge;
nFaces 10000;
startFace 30100;
}


U file in zero folder is below.
FoamFile
{
version 2.0;
format ascii;
class volVectorField;
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 1 -1 0 0 0 0];

internalField uniform (0.0 0 0);

boundaryField
{
Axis
{
type symmetryPlane;

}
Upper_Boundary
{

type inletOutlet;
inletValue uniform (0 0 0);
value uniform (0 0 0);

}
....


I just wanted to confirm whether it is correct or not.
rajeshkunwar is offline   Reply With Quote

Old   December 30, 2012, 02:16
Default
  #147
Member
 
vahid
Join Date: Feb 2012
Location: Mashhad-Iran
Posts: 80
Rep Power: 13
vahid.najafi is an unknown quantity at this point
Hi dear rajeshkunwar .
I havent time to see your boundary,but I know that you have to run this line:

makeAxialMesh -axis axis -wedge frontAndBackPlane

I think, its better for you to learn it, do this Commands for a simple geometry like Rectangular shape!!!
if your problem don't solve,Ask the problem again,to explain it!!!
vahid.najafi is offline   Reply With Quote

Old   January 3, 2013, 03:47
Default
  #148
New Member
 
Rajesh Kumar
Join Date: Apr 2009
Posts: 25
Rep Power: 17
rajeshkunwar is on a distinguished road
I have done the same thing what you have suggested. My confusion is regarding the boundary condition of Axis patch.
rajeshkunwar is offline   Reply With Quote

Old   January 5, 2013, 19:05
Default
  #149
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 rajeshkunwar View Post
I have done the same thing what you have suggested. My confusion is regarding the boundary condition of Axis patch.
The type of the axis patch has been rewritten as this usually causes the least problems. If the axis patch was also the rotation axis then collapseEdges should remove all faces there anyway and the type of it is irrelevant. Otherwise if you don't like symmetryPlane go to constant/polymesh/boundary and change it there
__________________
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   January 11, 2013, 10:25
Default
  #150
Senior Member
 
Andrea Ferrari
Join Date: Dec 2010
Posts: 319
Rep Power: 16
Andrea_85 is on a distinguished road
Hi all,

where can i download makeAxialMesh for openFoam 2.1.0? svn doesn't work.

thanks

andrea
Andrea_85 is offline   Reply With Quote

Old   January 11, 2013, 10:52
Default
  #151
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 Andrea_85 View Post
Hi all,

where can i download makeAxialMesh for openFoam 2.1.0? svn doesn't work.
The SVN has been temporarily disabled by Sourceforge because ANSYS claims that 6 files (out of thousands) there violate their copyright.

I will look into how to make stuff that is undisputed available in the meantime, but probably can't do so before monday

If somebody who recently downloaded it (makeAxialMesh) could make a tarball of the source and make it available to the public (for instance on the Wiki) that would be great
__________________
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   January 14, 2013, 07:41
Default
  #152
Senior Member
 
Andrea Ferrari
Join Date: Dec 2010
Posts: 319
Rep Power: 16
Andrea_85 is on a distinguished road
HI Bernhard,

if you can just copy here makeAxialMesh.C that compiles on OF 2.1.0 i can easily do the rest. I cannot find the source code.

Thanks
Andrea_85 is offline   Reply With Quote

Old   January 14, 2013, 08:59
Default
  #153
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 Andrea_85 View Post
HI Bernhard,

if you can just copy here makeAxialMesh.C that compiles on OF 2.1.0 i can easily do the rest. I cannot find the source code.

Thanks
Just added a tar to the MAM-page on the Wiki
__________________
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   January 14, 2013, 10:07
Default
  #154
Senior Member
 
Andrea Ferrari
Join Date: Dec 2010
Posts: 319
Rep Power: 16
Andrea_85 is on a distinguished road
thank you very much!

best
andrea
Andrea_85 is offline   Reply With Quote

Old   June 7, 2013, 08:07
Question problem with makeAxialMesh
  #155
Member
 
shiv
Join Date: Jun 2012
Location: Lucknow, IN
Posts: 51
Rep Power: 14
shash is on a distinguished road
hi bernhard,

I am new to openfoam and i am facing few problems with using makeAxialMesh for a simple case of laminar flow thru a 2D axisymmetric pipe, can you please point out the probleam in my case setup since i am getting boundary layer even at the axis(as in the attached fig.).
Attached Images
File Type: jpg velocity-mag.jpg (18.5 KB, 26 views)
Attached Files
File Type: zip laminar.zip (7.0 KB, 5 views)
shash is offline   Reply With Quote

Old   June 7, 2013, 12:22
Default
  #156
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 shash View Post
hi bernhard,

I am new to openfoam and i am facing few problems with using makeAxialMesh for a simple case of laminar flow thru a 2D axisymmetric pipe, can you please point out the probleam in my case setup since i am getting boundary layer even at the axis(as in the attached fig.).
Did you remove the patch with collapseEdges? And even if it is there: what are the boundary conditions on it?
__________________
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   June 7, 2013, 14:49
Default
  #157
Member
 
ali jafari
Join Date: Sep 2012
Posts: 50
Rep Power: 14
ali jafari is on a distinguished road
Quote:
Originally Posted by gschaider View Post
Did you remove the patch with collapseEdges? And even if it is there: what are the boundary conditions on it?
these are Cyclic . why collapseEdge ? can you explain , please
ali jafari is offline   Reply With Quote

Old   June 7, 2013, 16:17
Default
  #158
Member
 
shiv
Join Date: Jun 2012
Location: Lucknow, IN
Posts: 51
Rep Power: 14
shash is on a distinguished road
hi bernhard,

no i have not used collapseEdges, i simply gave these terminal commands
blockMesh
makeAxialMesh -axis center -wedge frontAndBack
icoFoam >& log

after running makeAxialMesh , a folder was formed from which i copied the polymesh dir. and replaced with the original.

my original blockMeshDict

convertToMeters 0.01;

vertices
(
(0 -1 0)
(5 -1 0)
(5 1 0)
(0 1 0)
(0 -1 2)
(5 -1 2)
(5 1 2)
(0 1 2)
);

blocks
(
hex (0 1 2 3 4 5 6 7) (100 40 1) simpleGrading (1 1 1)
);

edges
(
);

boundary
(
inlet
{
type patch;
faces
(
(0 4 7 3)
);
}

outlet
{
type patch;
faces
(
(2 6 5 1)
);
}

fixedWalls
{
type wall;
faces
(
(3 7 6 2)
);
}

center
{
type empty;
faces
(
(1 5 4 0)
);
}

frontAndBack
{
type empty;
faces
(
(0 3 2 1)
(4 5 6 7)
);
}
);

mergePatchPairs
(
);

and 0/u :

internalField uniform (0 0 0);

boundaryField
{
outlet
{
type zeroGradient;
}

inlet
{
type fixedValue;
value uniform (0.05 0 0);
}


fixedWalls
{
type fixedValue;
value uniform (0 0 0);
}

center
{
type symmetryPlane;
}

frontAndBack
{
type empty;
}
frontAndBack_pos
{
type wedge;
}
frontAndBack_neg
{
type wedge;
}


I am also not very sure about the parameters in rotationDict (attached).

Will be grateful for ur help.
Attached Files
File Type: zip rotationDict.zip (686 Bytes, 4 views)
shash is offline   Reply With Quote

Old   June 8, 2013, 12:52
Default
  #159
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 shash View Post
no i have not used collapseEdges,
You should have. That's why it is the last thing makeAxialMesh talks about it before it ends
__________________
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   June 17, 2013, 07:35
Default
  #160
Member
 
shiv
Join Date: Jun 2012
Location: Lucknow, IN
Posts: 51
Rep Power: 14
shash is on a distinguished road
hi bernhard,

I am sorry , i didn't go thru prevoius threads. Thanks a lot for ur answer now its up and running, I also wanted to confirm something, thou collapseEdges 1e-06 175 command after makeaxialmesh worked for me on OF ver 2.1 but a friend of mine is getting troubles running the same command collapseEdges 1e-06 175 for same case on OF ver 2.2, whats the reason for that, its showing required 0 argument, 2 given
shash 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 01:01.