CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   mesh like spiderweb? (https://www.cfd-online.com/Forums/openfoam/70919-mesh-like-spiderweb.html)

heavy_user December 9, 2009 12:40

mesh like spiderweb?
 
1 Attachment(s)
Hi Folks,

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

best regards

heavy

sega December 9, 2009 16:11

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.

heavy_user December 10, 2009 07:27

Quote:

Originally Posted by sega (Post 239348)
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

linnemann December 10, 2009 09:04

1 Attachment(s)
Hi

Using salome. 3 mins.

http://www.cfd-online.com/Forums/att...1&d=1260453825

heavy_user December 10, 2009 09:44

Nice!

But with blockmesh it takes a "little" more time, i guess...

Poltak Stanggang December 10, 2009 10:45

Duct Mesh
 
4 Attachment(s)
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.

dratkins December 10, 2009 13:27

Quote:

Originally Posted by heavy_user (Post 239493)
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

linnemann December 10, 2009 14:07

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 December 11, 2009 03:02

1 Attachment(s)
Or even better if you want pure hexes

http://www.cfd-online.com/Forums/att...1&d=1260518558

heavy_user December 11, 2009 10:04

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

jploz December 16, 2009 03:51

Mesh generation with blockMesh
 
@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.

heavy_user December 16, 2009 05:15

Quote:

Originally Posted by jploz (Post 240162)
@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!

sega December 16, 2009 05:56

Quote:

Originally Posted by heavy_user (Post 240177)

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.

heavy_user December 16, 2009 06:17

Quote:

Originally Posted by sega (Post 240178)
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 :confused:.
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...

sega December 16, 2009 06:33

Quote:

Originally Posted by heavy_user (Post 240180)
I read that also, but I was confused by the thing in the dynamicmeshdict, which obviously uses something else :confused:.
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.

heavy_user December 16, 2009 07:55

Quote:

Originally Posted by sega (Post 240181)
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

sega December 16, 2009 08:00

Quote:

Originally Posted by heavy_user (Post 240187)
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.

heavy_user December 16, 2009 10:12

1 Attachment(s)
Quote:

Originally Posted by sega (Post 240191)
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

sega December 16, 2009 15:58

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 (Post 240216)
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!

Wolle December 17, 2009 03:05

Maybe this helps?

http://www.opencfd.co.uk/openfoam/do...#x6-380002.2.1

heavy_user December 17, 2009 04:39

HI all,

thx for the answer!

I want to mesh outside and inside (it is supposed to be a circle inlet at the bottom of a box).

In the last try I ended up having Nx =Ny, otherwise blockmesh complained that the meshing would not match on different edges.
So I came up with the mixed edges theorie (neither parallel to x- or y- axes).
maybe it was a different prob.

I will check on that.

regards

heavy_user December 17, 2009 05:31

I checked it out again and it seems to be a matter of connecting the meshes of different volumes rather than meshing the single volumes...
I am having a little trouble to imagine it (without a GUI) and to relate the curved edges of a cylinder to the cartesian-coordinate systems...
(so it turned out that the x-direction of the inner half of a cylinder seems to be parallel to the y-direction of the fraction of a cylinder surrounding the inner one, thats why I ended up not being able to mesh x- and y- direction independently)


So I got to apologize for confusing you about the "problem" ...!!
THX for your effort again!!!

jaswi December 18, 2009 07:30

Hi Heavy_user

As far as I can understand you , you need to take a look at the User Guide's
example of hole in a plate mesh. The blockMeshDict given for this case is for a quarter mesh. Take a look at it and let us know if that solves your problem.
Else please post here a rough hand sketch of the mesh topology you desire.
The spider type mesh you initially wanted is also possible with blockmeshdict. One just needs to collapse one of the edges of block and it does works. Please first provide a rough mesh topology you desire.

Thanks

Best Regards
jaswi

heavy_user December 18, 2009 07:44

Quote:

Originally Posted by jaswi (Post 240406)
Hi Heavy_user

As far as I can understand you , you need to take a look at the User Guide's
example of hole in a plate mesh. The blockMeshDict given for this case is for a quarter mesh. Take a look at it and let us know if that solves your problem.
Else please post here a rough hand sketch of the mesh topology you desire.
The spider type mesh you initially wanted is also possible with blockmeshdict. One just needs to collapse one of the edges of block and it does works. Please first provide a rough mesh topology you desire.

Thanks

Best Regards
jaswi


hi Jaswi,

thx for the answer!!

I am working in 2D right now, so i avoided the prob.

I was told before that it was NOT possible to create a mesh I originally desired (spidermesh) with blockmesh, so I delayed the task... so thanks for the information with the collapsing corners.. I cant imagine right now how this makes the mesh I desired possible, but I will do more thinking and get back to you if I need further help...



regards


All times are GMT -4. The time now is 06:35.