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

mesh like spiderweb?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 9, 2009, 13:40
Default mesh like spiderweb?
  #1
Senior Member
 
Join Date: Dec 2009
Posts: 112
Rep Power: 17
heavy_user is on a distinguished road
Hi Folks,

is it possible to create a mesh like a spiderweb (see picture attached) ?

best regards

heavy
Attached Images
File Type: jpg spider_mesh.jpg (5.6 KB, 39 views)
heavy_user is offline   Reply With Quote

Old   December 9, 2009, 17:11
Default
  #2
Senior Member
 
sega's Avatar
 
Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 20
sega is on a distinguished road
With blockMesh you can only create an O-Grid for the discretization of a circle.

If you have some other netgenerator you can try to mix tet- with hex-elements.
__________________
Schrödingers wife: "What did you do to the cat? It's half dead!"
sega is offline   Reply With Quote

Old   December 10, 2009, 08:27
Default
  #3
Senior Member
 
Join Date: Dec 2009
Posts: 112
Rep Power: 17
heavy_user is on a distinguished road
Quote:
Originally Posted by sega View Post
With blockMesh you can only create an O-Grid for the discretization of a circle.

If you have some other netgenerator you can try to mix tet- with hex-elements.

Hi sega,

thx for your reply, i will try to do so...

regards
heavy_user is offline   Reply With Quote

Old   December 10, 2009, 10:04
Default
  #4
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27
linnemann will become famous soon enough
Hi

Using salome. 3 mins.

Attached Images
File Type: jpg spiderweb.jpg (97.8 KB, 237 views)
__________________
Linnemann

PS. I do not do personal support, so please post in the forums.
linnemann is offline   Reply With Quote

Old   December 10, 2009, 10:44
Default
  #5
Senior Member
 
Join Date: Dec 2009
Posts: 112
Rep Power: 17
heavy_user is on a distinguished road
Nice!

But with blockmesh it takes a "little" more time, i guess...
heavy_user is offline   Reply With Quote

Old   December 10, 2009, 11:45
Default Duct Mesh
  #6
New Member
 
Join Date: Jun 2009
Posts: 4
Rep Power: 17
Poltak Stanggang is on a distinguished road
Hi,

see attach the grid (3-D) for ducted. You can used very good blockMesh in OF to generate Mesh. First I used FORTRAN to organize blockMeshDict and transfer to OF. Try to learn how to organize blockMeshDict for OF.
Attached Images
File Type: jpg Duct0.jpg (65.3 KB, 68 views)
File Type: jpg Duct1.jpg (34.0 KB, 65 views)
File Type: jpg Duct2.jpg (85.1 KB, 62 views)
File Type: jpg Duct3.jpg (90.8 KB, 79 views)
Poltak Stanggang is offline   Reply With Quote

Old   December 10, 2009, 14:27
Default
  #7
New Member
 
Join Date: Dec 2009
Posts: 3
Rep Power: 17
dratkins is on a distinguished road
Quote:
Originally Posted by heavy_user View Post
But with blockmesh it takes a "little" more time, i guess...
Don't guess.

If you'd start reading manuals instead of complaining that they are not useful, you could do it in 3 minutes with blockmesh. Also in Salome you can't create a mesh in 3 minutes unless you read about it or you play around for a loooong time before you begin real work.

By the way, I don't know why you are so heavy. I recommend that you try a diet.

Robert
dratkins is offline   Reply With Quote

Old   December 10, 2009, 15:07
Default
  #8
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27
linnemann will become famous soon enough
I agree with you dratkins, but the amount of work you need to put into using/learning either Blockmesh or Salome would be somewhat the same. When you get to very complex geometries it is not a feasible approach to use blockmesh. At least not in the industry, maybe for scientific work blockmesh will suffice in a day to day basis.
__________________
Linnemann

PS. I do not do personal support, so please post in the forums.

Last edited by linnemann; December 12, 2009 at 13:12.
linnemann is offline   Reply With Quote

Old   December 11, 2009, 04:02
Default
  #9
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27
linnemann will become famous soon enough
Or even better if you want pure hexes

Attached Images
File Type: jpg spiderweb2.jpg (97.6 KB, 212 views)
__________________
Linnemann

PS. I do not do personal support, so please post in the forums.
linnemann is offline   Reply With Quote

Old   December 11, 2009, 11:04
Default
  #10
Senior Member
 
Join Date: Dec 2009
Posts: 112
Rep Power: 17
heavy_user is on a distinguished road
HI All,

thx for your nice answers and images!!

but i am wondering....

Since i have no manual (which is great, by the way!) i am not shure what to do..

lets take the posted mesh of linnmann.
If you create the mesh with blockmesh you can chose the meshpoints on the x- y- and z-axis of each hex block.
Like this: hex (vertices) (100 100 50) simpleGrading (1 1 1)

But in the case the lines of the geometry are not parallel to the axes of the coordinate-system the lines of the geometry can be described by a combination of x and y (or x and z, or y and z; depending of how you have your coordinate system).
so i end up, not being able to mesh the radial direction independently.


How can i independently determin the radial mesh-points?
Can i do it in polarcoordinates or what is the trick?
(and if, how can i do so)

Or can I mesh each edge individualy (like in gambit, sorry for comparing) ?

I could manage to alligne all the adges of the volumes surrounding the inner tube (the geometry is a cylinder in a hex box) to the coordinate-axes by creating a Volume with 10 vertices.
If I look at UG page 127 this seems not possible.
Is there a way to do so with blockmesh?

(@dratkins: thats why i spend so much time looking for manuals and documentation...my small experience tells me that you might need them one day)

thx in advance!

bg

Last edited by heavy_user; December 11, 2009 at 13:46.
heavy_user is offline   Reply With Quote

Old   December 16, 2009, 04:51
Default Mesh generation with blockMesh
  #11
Member
 
Jean-Peer Lorenz
Join Date: Mar 2009
Location: Rostock, Germany
Posts: 33
Rep Power: 17
jploz is on a distinguished road
@heavy_user:
Have a look at section "5.3 Mesh generation with the blockMesh utility" of the OpenFOAM User's guide (v1.5). Features and usage of the blockMesh tool are described there (like in a manual).

HTH,
Jean-Peer.
jploz is offline   Reply With Quote

Old   December 16, 2009, 06:15
Default
  #12
Senior Member
 
Join Date: Dec 2009
Posts: 112
Rep Power: 17
heavy_user is on a distinguished road
Quote:
Originally Posted by jploz View Post
@heavy_user:
Have a look at section "5.3 Mesh generation with the blockMesh utility" of the OpenFOAM User's guide (v1.5). Features and usage of the blockMesh tool are described there (like in a manual).

HTH,
Jean-Peer.

Hi Jean-Peer,

thx for your answer!

Section 5.3 describes the use of blockMesh (partly).

In 5.3.3 it is described how to create blocks with LESS than 8 vertices, so I asume doing different is not possible (which is not explicitly stated there)...

In 5.3.1.3 in "nuber of cells" it sais: "...number of cells in each direction of the x_1 x_2 and x_3 directions.." which does not help (see description of problem above...) since i have edges in the x-y-direction that can not be graded independently (???) from the edges parallel to the x- or y- direction.

I did some research and found a paper "rotatingGGI" which shows an entry of an dynamic mesh dict:

coordinateSystem
{
type cylindrical;
origin ();
axis ();
direction ();
}
....
(but that is pretty much the only informatino I could gather regarding the use of cylindrcal coordinates)

But I dont know how to use cylindrical coordinates in the blockmeshdict, yet... I will try to find out (and post if i succeed) but thats the thing i have been complaining about...the UG and the PG seem not to describe the prog. completly...so i will go on guessing..

best regards!
heavy_user is offline   Reply With Quote

Old   December 16, 2009, 06:56
Default
  #13
Senior Member
 
sega's Avatar
 
Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 20
sega is on a distinguished road
Quote:
Originally Posted by heavy_user View Post

But I dont know how to use cylindrical coordinates in the blockmeshdict, yet... I will try to find out (and post if i succeed) but thats the thing i have been complaining about...the UG and the PG seem not to describe the prog. completly...so i will go on guessing..
This is because OpenFOAM does not work with cylindrical coordinates.
OpenFOAM is restricted to cartesian!

Citation of the UG (you didn't find usefull):

Quote:
2.1.1.1 Mesh generation

OpenFOAM always operates in a 3 dimensional Cartesian coordinate system and all
geometries are generated in 3 dimensions.
__________________
Schrödingers wife: "What did you do to the cat? It's half dead!"
sega is offline   Reply With Quote

Old   December 16, 2009, 07:17
Default
  #14
Senior Member
 
Join Date: Dec 2009
Posts: 112
Rep Power: 17
heavy_user is on a distinguished road
Quote:
Originally Posted by sega View Post
Citation of the UG (you didn't find usefull):
I read that also, but I was confused by the thing in the dynamicmeshdict, which obviously uses something else .
So how can OF not be able to do it, when somebody uses it in the dynamicmeshdict...

And I figuered there might be a trick to it, something like define a local-system for the whole geoemtry... but I thought I ask before shooting...
heavy_user is offline   Reply With Quote

Old   December 16, 2009, 07:33
Default
  #15
Senior Member
 
sega's Avatar
 
Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 20
sega is on a distinguished road
Quote:
Originally Posted by heavy_user View Post
I read that also, but I was confused by the thing in the dynamicmeshdict, which obviously uses something else .
So how can OF not be able to do it, when somebody uses it in the dynamicmeshdict...

And I figuered there might be a trick to it, something like define a local-system for the whole geoemtry... but I thought I ask before shooting...
I'm not familiar with gliding interfaces, so I can't tell you anything about it.
Lets get back to your original problem: You want to mesh a cylinder!

Why don't you use the meshes & o-grids suggested by us?
They are popular and widely used.
__________________
Schrödingers wife: "What did you do to the cat? It's half dead!"
sega is offline   Reply With Quote

Old   December 16, 2009, 08:55
Default
  #16
Senior Member
 
Join Date: Dec 2009
Posts: 112
Rep Power: 17
heavy_user is on a distinguished road
Quote:
Originally Posted by sega View Post
I'm not familiar with gliding interfaces, so I can't tell you anything about it.
Lets get back to your original problem: You want to mesh a cylinder!

Why don't you use the meshes & o-grids suggested by us?
They are popular and widely used.
I meshed the cylinder with the o-grid.
Then I ran in the problems with not being able to mesh the edges independently since i have edges which are obviously seen as a combination of x and y... so i came back to findig a way of making a cylindrical mesh...and then the question of creating volumes with 10 vertices...

I created a 2D geometry and I am trying to get the case running right now.

The only remaing question is the indepentent-meshing problem i described before...
Did I make the problem clear or should i attach a draft??

regards
heavy_user is offline   Reply With Quote

Old   December 16, 2009, 09:00
Default
  #17
Senior Member
 
sega's Avatar
 
Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 20
sega is on a distinguished road
Quote:
Originally Posted by heavy_user View Post
The only remaing question is the indepentent-meshing problem i described before...
Did I make the problem clear or should i attach a draft??
I didn't understand the problem. Maybe a draft would be useful.
__________________
Schrödingers wife: "What did you do to the cat? It's half dead!"
sega is offline   Reply With Quote

Old   December 16, 2009, 11:12
Default
  #18
Senior Member
 
Join Date: Dec 2009
Posts: 112
Rep Power: 17
heavy_user is on a distinguished road
Quote:
Originally Posted by sega View Post
I didn't understand the problem. Maybe a draft would be useful.
HI sega,

here the draft (sorry for the poor draft, but I hope it fits the cause...)

Lets say we name it from left to right, the first draft is A, the second B and the third C.

All drafts are to show a cylinder in a box.
The Z-direction is out of the screen and the axes poking your nose...

For creating the volumes around the cylinder there are 3 possebilities.

A: the lines between the cylinder and the box are not parallel to one of the axes and can therefore not be graded individual.

B: you could grade the edges individual, since they are parallel to the axes, but this kind of volume needs 10 vertices. (but how to determine the mesh of the circle ??)

C: (i dont have photoshop at work, so sorry for cheating :-P, i should have turned the box, not the axes... ) You can grade the edges connecting the box and the cylinder with the "hex....(Nx Ny Nz) " but how do you determine the mesh of the circle and the edge of the box? They are not parallel to any of the axes..(and i know that a circle can not be parallel to a line, but you know what i am trying to say...)

Perhaps it is really easy to solve and I am stuck somewhere...but i cant figure right now...

thx for your efforts!

regards
Attached Images
File Type: jpg graph_prob.jpg (62.0 KB, 41 views)
heavy_user is offline   Reply With Quote

Old   December 16, 2009, 16:58
Default
  #19
Senior Member
 
sega's Avatar
 
Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 20
sega is on a distinguished road
This makes it more clearly to me, now.
But now you want to mesh the outside of the cylinder, not the inside?!

Quote:
Originally Posted by heavy_user View Post
A: the lines between the cylinder and the box are not parallel to one of the axes and can therefore not be graded individual.
As far as I know the edges of the hex don't have to be parallel to any axis.
You can simply set the appropriate grading factor to the corresponding direction.
Remember: each hex block (which forms a topological square) has its own coordinate system when dealing with blockmesh!
And this is the reason the grading should work in this case.
How the local coordinate system is determined depends on how you choose your vertices, but this can be re-read in the UG!
__________________
Schrödingers wife: "What did you do to the cat? It's half dead!"
sega is offline   Reply With Quote

Old   December 17, 2009, 04:05
Default
  #20
Member
 
Wolfram Kretzschmar
Join Date: Dec 2009
Posts: 71
Rep Power: 17
Wolle is on a distinguished road
Maybe this helps?

http://www.opencfd.co.uk/openfoam/do...#x6-380002.2.1
Wolle 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
Dynamic Mesh Problem. Tom Clark FLUENT 10 June 21, 2021 05:27
Meshing aifoil in ICEM student123a ANSYS Meshing & Geometry 13 December 8, 2010 11:40
problem when converting mesh (made by ICEM) using fluentMeshToFoam Forrest_Lei OpenFOAM 11 October 16, 2009 07:28
2d irregular grid Remy Main CFD Forum 1 December 22, 2008 05:49
General questions on grid-based computing Adrin Gharakhani Main CFD Forum 21 June 5, 2000 14:47


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