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   August 8, 2012, 06:25
Default
  #121
Senior Member
 
Join Date: Nov 2010
Posts: 113
Rep Power: 16
lindstroem is on a distinguished road
Hi again..

as reported before, I have the problem, that after MAM checkMesh or collapsEdges crashes with a floating Point Exception. I had this issue before but could solve it, by modifying the boundary of the mesh.
Now I am facing this problem again, but cannot figure out, where the problem comes from. I'd be glad if someone could check the case.
https://dl.dropbox.com/u/587565/gly8...wBackup.tar.gz

Thanks in advance!
Lindstroem
lindstroem is offline   Reply With Quote

Old   August 20, 2012, 17:37
Default
  #122
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 lindstroem View Post
Hi again..

as reported before, I have the problem, that after MAM checkMesh or collapsEdges crashes with a floating Point Exception. I had this issue before but could solve it, by modifying the boundary of the mesh.
Now I am facing this problem again, but cannot figure out, where the problem comes from. I'd be glad if someone could check the case.
https://dl.dropbox.com/u/587565/gly8...wBackup.tar.gz

Thanks in advance!
Lindstroem
Can't reproduce your problem. MAM and collapseEdges work without problem for me. Could you be more specific about the OF-version you use and the exact commands you used
gschaider is offline   Reply With Quote

Old   August 21, 2012, 06:31
Default
  #123
Senior Member
 
Join Date: Nov 2010
Posts: 113
Rep Power: 16
lindstroem is on a distinguished road
Hi Bernhard,

thanks for your help. Your posting made me starting from the scratch again. The problem was that I used the MAM-version for 1.4.1 to 1.7.x although my OF-version was 2.0.0. I had a wrong alias.
I always thought it was a problem of my case!

Thanks!!
lindstroem is offline   Reply With Quote

Old   August 22, 2012, 03:13
Default plz help me dear foamers:
  #124
Member
 
vahid
Join Date: Feb 2012
Location: Mashhad-Iran
Posts: 80
Rep Power: 13
vahid.najafi is an unknown quantity at this point
Hi foamers.
I am trying to convert the 2D mesh to 3D!
my real geometry is (pic1) but i want to Use 2D for my solver(because in 3D very slow Running speed) ,and for this reason i made 2D(pic2).
can I Change the type of frontAndBack and make 2D to 3D (pic3)???
my width 44mm.
Attached Images
File Type: jpg 1.jpg (22.0 KB, 58 views)
File Type: jpg 2.jpg (20.7 KB, 59 views)
File Type: jpg 3.jpg (34.6 KB, 45 views)
vahid.najafi is offline   Reply With Quote

Old   August 22, 2012, 05:36
Default
  #125
Senior Member
 
Join Date: Nov 2010
Posts: 113
Rep Power: 16
lindstroem is on a distinguished road
Hello Vahid,

the width of your geometry does not matter (as you want to run a 2D simulation, if it does matter, it is not 2D anymore). Just make sure, it is only one cell big.
Yes, frontAndBack should be of type empty.

Greetings
lindstroem is offline   Reply With Quote

Old   August 22, 2012, 08:39
Default Hi lindstroem
  #126
Member
 
vahid
Join Date: Feb 2012
Location: Mashhad-Iran
Posts: 80
Rep Power: 13
vahid.najafi is an unknown quantity at this point
Hi lindstroem ,thanks for your answer.
your answer means should I use 3D geometry ???(because width of my real geometry is 44mm!!!)
vahid.najafi is offline   Reply With Quote

Old   August 22, 2012, 09:45
Default
  #127
Senior Member
 
Join Date: Nov 2010
Posts: 113
Rep Power: 16
lindstroem is on a distinguished road
Hi again,

two general things:
- OpenFOAM uses for 2D simulations a mesh with only one cell in the "z-direction" (or which axis you choose to be perpendicular to the 2D-plane you simulate).
So the mesh is basically 3D, but the boundaries (defined as empty) indicate for OF that it is a 2D case. (see U-126 in the User guide)

- if you do a 2D simulation, your depth is "infinite". Otherwise it would be 3D if you want to account for the dependence on the depth. So you should make yourself clear what you want to simulate.

I cannot recommend you what you should do, because it depends on what you want to solve for.
lindstroem is offline   Reply With Quote

Old   August 22, 2012, 12:30
Default
  #128
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 lindstroem .
thanks a lot for your Clear answer.
vahid.najafi is offline   Reply With Quote

Old   September 25, 2012, 05:02
Default
  #129
Member
 
ali jafari
Join Date: Sep 2012
Posts: 50
Rep Power: 14
ali jafari is on a distinguished road
Hi
I start OF recently. I have O.F 1.5 dev . I download makeAxialmesh and try compile it according to threads but some errors appear (repatchPolyTopoChanger.H file error)
please guide me for compiling this utility step by step. (specific paths ; specific commands ...)
ali jafari is offline   Reply With Quote

Old   September 25, 2012, 05:17
Default
  #130
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 ali jafari View Post
Hi
I start OF recently. I have O.F 1.5 dev . I download makeAxialmesh and try compile it according to threads but some errors appear (repatchPolyTopoChanger.H file error)
please guide me for compiling this utility step by step. (specific paths ; specific commands ...)
I've got to give the question back: which version of makeAxialMesh did YOU download?

Anyway: try getting this version (according to the README it should work with 1.5-dev but I can't check because I don't have such an old installation) with the following command

svn checkout https://openfoam-extend.svn.sourcefo...MakeAxialMesh/

go to the makeAxialMesh-directory and do the usual wmake. But all that is described on http://openfoamwiki.net/index.php/Contrib_MakeAxialMesh anyway
__________________
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   September 27, 2012, 06:01
Default
  #131
Member
 
ali jafari
Join Date: Sep 2012
Posts: 50
Rep Power: 14
ali jafari is on a distinguished road
Quote:
Originally Posted by amin144 View Post
Hello Dear Foamers
Especially Dear Bernhard

I want to run testCase and doing below steps:
(I think this thread need a post that describe process step by step like this)

(My OF version: openFoam 1.5-dev)
1-Download files of utility and after Compile makeAxilMesh using "wmake all"---> well done
2-Download "testCase" files
3-Go to testCase Directory
4-Run "blockMesh"----> well done
5-Run "makeAxialMesh -axis movingWall -wede frontAndBack -overwrite" --->well done
6-Run "paraFoam" and can see wedge shape grid
7-Run "collapseEdges 0.0001 175 -overwrite" shows below message:


Create time

Create polyMesh for time = 0

Merging:
edges with length less than 0.0001 meters
edges split by a point with edges in line to within 175 degrees

Collapsing 21 small edges
Morphing ...
Collapsing 0 small edges
Collapsing 0 in line edges
Max face area:4.36194e-05
Collapse area factor:1e-09
Collapse area:4.36194e-14
Collapsing 0 small high aspect ratio faces
Writing collapsed mesh to time 0
End


8-Run "icoFoam" and it runs without any problem!

-----------------------------------------------------
-----------------------------------------------------
Queations:

1))Is my Steps all True? Isn't anything wrong?

2))What does this Case physically show ? Only a full closed cylinder whitout any flow?

3))Any body can mail me a test case for Flow in a simple axisymmetric pipe?
I will appreciat if anybody upload a pipe case for using everyone for test beside this simple and maybe unused case

-------------------------------------------------------
-------------------------------------------------------
shariatkhah@gmail.com

Thanks
-----------------------------------
I do your steps but when I run parafoam and click on apply . parafoam exiting and this error appears :
--> FOAM FATAL IO ERROR:
inconsistent patch and patchField types for
patch type symmetryPlane and patchField type zeroGradient

file: /home/ali/USER_RUN/tutorials/axialCavity/0/p::boundaryField::movingWall from line 34 to line 34.

From function fvPatchField<Type>::New(const fvPatch&, const DimensionedField<Type, volMesh>&, const dictionary&)
in file /home/opencfd/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/fvPatchFieldNew.C at line 164.

FOAM exiting

Segmentation fault (core dumped)
-------------------------------------------------------------
I use checkMesh after blockMesh and that's OK , and I use checkMesh after makeAxialMesh but it show
" Failed 4 mesh checks."
how do I understand that I compile MakeAxialMesh correctly ?

Last edited by ali jafari; September 27, 2012 at 06:41.
ali jafari is offline   Reply With Quote

Old   September 28, 2012, 15:35
Default
  #132
Member
 
Amin Shariat KHah
Join Date: Apr 2011
Location: Shiraz
Posts: 86
Rep Power: 15
amin144 is on a distinguished road
Dear Ali
Did you tested testCase or another case?
what is your OF version?
amin144 is offline   Reply With Quote

Old   September 29, 2012, 02:29
Default
  #133
Member
 
ali jafari
Join Date: Sep 2012
Posts: 50
Rep Power: 14
ali jafari is on a distinguished road
Quote:
Originally Posted by amin144 View Post
Dear Ali
Did you tested testCase or another case?
what is your OF version?
I used testcase. I use openfoam2.1.1 because makeaxialmesh didn't compiled on OF 1.5-dev !!
ali jafari is offline   Reply With Quote

Old   September 29, 2012, 03:58
Default
  #134
Member
 
Amin Shariat KHah
Join Date: Apr 2011
Location: Shiraz
Posts: 86
Rep Power: 15
amin144 is on a distinguished road
I think you should reinstall you OF 1.5 dev
and you couldn't run test case or your case?
I can't understand.

feel free to mail me:
amin_144@yahoo.com
amin144 is offline   Reply With Quote

Old   September 29, 2012, 10:31
Default AnyOne have tested makeAxialMesh in OF 2.1.1 ?
  #135
Member
 
Amin Shariat KHah
Join Date: Apr 2011
Location: Shiraz
Posts: 86
Rep Power: 15
amin144 is on a distinguished road
Hi Dear Foamers!

AnyOne have tested makeAxialMesh in OF 2.1.1 ?
I have used it in 1.5dev before and it worked correctly as I said in my other posts in this thresd.
but today I used it in OF 2.1.1
I compiled the version which is written for OF 2.0.0 and there isn't especial version of makeAxialMesh for OF 2.1.1 !!
but when I ran "check mesh" (after collaspsing edges) it shows an error:

***Wedge patch frontAndBack_pos not planar. Point (0.005 0.06 0.00174478) is not in patch plane by 3.9962e-08 meter.

Any change in code of this utility is needed for OF 2.1.1 ?
TanX very much
amin144 is offline   Reply With Quote

Old   September 30, 2012, 06:13
Default
  #136
New Member
 
Join Date: Mar 2012
Posts: 27
Rep Power: 14
tomloh is on a distinguished road
Hi Amin,

I have had this problem before, you shouldn't need to change anything.
See posts between Bernhard and myself in this threat, (post #106 onwards)

Kind Regards,
Tom
tomloh is offline   Reply With Quote

Old   November 13, 2012, 07:18
Default
  #137
New Member
 
Emil Baric
Join Date: May 2012
Location: Graz. Austria
Posts: 12
Rep Power: 14
emil is on a distinguished road
Hello everybody, just one question is it possible to create a geometry that is symetric around a coordinate axis and not around one of its boundaries?

Thank you!
emil is offline   Reply With Quote

Old   November 20, 2012, 20:59
Default
  #138
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 emil View Post
Hello everybody, just one question is it possible to create a geometry that is symetric around a coordinate axis and not around one of its boundaries?

Thank you!
What do you mean with "not around one of its boundaries"? Could you sketch 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   November 21, 2012, 02:13
Default
  #139
New Member
 
Emil Baric
Join Date: May 2012
Location: Graz. Austria
Posts: 12
Rep Power: 14
emil is on a distinguished road
Hello,

I managed to avoid it by creating wedge (5 degree slice) mesh in Gambit and then importing it into OpenFoam. I hope that procedure is ok.

And what I ment is if the domain is ofset from x-axis for some measure and I want to revolve it around x-axis and not the boundary

Thank you
emil is offline   Reply With Quote

Old   December 25, 2012, 14:39
Default rotationDict Confusing
  #140
New Member
 
Rajesh Kumar
Join Date: Apr 2009
Posts: 25
Rep Power: 17
rajeshkunwar is on a distinguished road
What is the difference between new mode and old mode...Pls somebody explain it.
rajeshkunwar 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 00:59.