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

[blockMesh] How to define the interpolation points of "arc"?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 8, 2015, 09:59
Default How to define the interpolation points of "arc"?
  #1
Member
 
Join Date: Dec 2014
Posts: 50
Rep Power: 11
Harak is on a distinguished road
Hey,

I want to create a quadrisected cylinder with blockMesh, like this:


What I've done so far is that I created a block with fewer than 8 vortices:



My question is, based on what do I have to define the 3 values in arc in the brackets, for example, arc 3 6 (? ? ?).

Thanks!

This is my blockMeshDict:
Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | foam-extend: Open Source CFD                    |
|  \\    /   O peration     | Version:     3.1                                |
|   \\  /    A nd           | Web:         http://www.extend-project.de       |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

convertToMeters 1;

vertices
(
    (0 0 0)
    (1 0 0)
    (0 1 0)
    (1 1 0)
    (0 0 1)
    (1 0 1)
    (0 1 1)
    (1 1 1)
);

blocks
(
    hex (1 1 3 3 4 5 7 6) (10 10 10) simpleGrading (1 1 1)
);

edges
(
    //arc 3 6 (? ? ?)
    //arc 1 4 (? ? ?)

);

patches
(
    empty frontAndBackPlanes
    (
        (1 3 3 1)
    )
);

mergePatchPairs
(
);

// ************************************************************************* //
Harak is offline   Reply With Quote

Old   April 8, 2015, 16:45
Default
  #2
Member
 
Alexander Bartel
Join Date: Feb 2015
Location: Germany
Posts: 97
Rep Power: 11
alexB is on a distinguished road
Hi Harak,

first off all, does your blockmeshdict run well?
As written in the UserGuide ( http://cfd.direct/openfoam/user-guide/blockMesh/ ) you shouldn't let collapse thethe first defined vertices of your block, because they also define your coordinate system. Perhaps that never will be a problem while running your case.

Now to your posted problem.
For simple geometries as yours I would propose to just use a calculator to determine the interpolation point.
You want to describe an arc in the x-z-plane.
Many arcs are possible to connect Point 3 and 6.
With the interpolation point you chose one specific arc.
With an interpolation point in the x-z-plane that also contain 3 and 6 you choose an arc in this plane.
To make it short:
take ( sin(45) 1 cos(45) )

regards
Alex
alexB is offline   Reply With Quote

Old   April 9, 2015, 09:54
Default
  #3
Member
 
Join Date: Dec 2014
Posts: 50
Rep Power: 11
Harak is on a distinguished road
Quote:
Originally Posted by alexB View Post
Hi Harak,

first off all, does your blockmeshdict run well?
As written in the UserGuide ( http://cfd.direct/openfoam/user-guide/blockMesh/ ) you shouldn't let collapse thethe first defined vertices of your block, because they also define your coordinate system. Perhaps that never will be a problem while running your case.

Now to your posted problem.
For simple geometries as yours I would propose to just use a calculator to determine the interpolation point.
You want to describe an arc in the x-z-plane.
Many arcs are possible to connect Point 3 and 6.
With the interpolation point you chose one specific arc.
With an interpolation point in the x-z-plane that also contain 3 and 6 you choose an arc in this plane.
To make it short:
take ( sin(45) 1 cos(45) )

regards
Alex
Hi Alex,

thanks for your reply!

Yes, my blockMeshDict is working well without any errors.
I tried
Code:
arc 3 6 (0.70710678 1 0.70710678)
arc 1 4 (0.70710678 1 0.70710678)
but unfortunately it seems that nothing happened.

Can you please explain what the rule of defining these three values is?
I've already read through this thread (http://www.cfd-online.com/Forums/ope...blockmesh.html) but didn't get it neither.

I appreciate your help!
Harak is offline   Reply With Quote

Old   April 9, 2015, 11:57
Default Re: How to define the interpolation points of "arc"?
  #4
Member
 
Amod Kumar
Join Date: Jan 2010
Location: Delhi, India
Posts: 39
Rep Power: 16
amod_kumar is on a distinguished road
Hi,

I corrected
arc 3 6 (0.70710678 1 0.70710678)
arc 1 4 (0.70710678 1 0.70710678)

to
arc 3 6 (0.70710678 1 0.70710678)
arc 1 4 (0.70710678 0 0.70710678) //vertices 1 & 4 are at y=0

It created arc and generated the mesh but highly skewed. You may like to review the co-ordinates to define the arc. The mesh is attached.

Regards,
Attached Images
File Type: png QudriSected_Cylinder.png (13.3 KB, 321 views)
amod_kumar is offline   Reply With Quote

Old   April 9, 2015, 12:25
Default
  #5
Member
 
Join Date: Dec 2014
Posts: 50
Rep Power: 11
Harak is on a distinguished road
Quote:
Originally Posted by Harak View Post
Hi Alex,

thanks for your reply!

Yes, my blockMeshDict is working well without any errors.
I tried
Code:
arc 3 6 (0.70710678 1 0.70710678)
arc 1 4 (0.70710678 1 0.70710678)
but unfortunately it seems that nothing happened.

Can you please explain what the rule of defining these three values is?
I've already read through this thread (http://www.cfd-online.com/Forums/ope...blockmesh.html) but didn't get it neither.

I appreciate your help!
Nevermind, just solved the problem.
The reason it didn't work was because of what you said here:
Quote:
you shouldn't let collapse thethe first defined vertices of your block, because they also define your coordinate system
My origin was my 0-vertice, so I just changed the numbering so that my first defined vertice does not collapse anymore!

Thank you sooo much!
Harak is offline   Reply With Quote

Old   April 9, 2015, 16:52
Default
  #6
Member
 
Alexander Bartel
Join Date: Feb 2015
Location: Germany
Posts: 97
Rep Power: 11
alexB is on a distinguished road
You are welcome Harak,

the rule behind the definition of an arc is simple.
The three values are the x,y and z coordinates of one additional point on the arc.

Because an arc is defined completely by three different points on this arc.
Just imagine two arbitrary points in 3-dimensional space.
If its clear that the connecting line is an arc, every additional point defines another arc.

@amod:
I suggest you just helped Harak and are not hung at the same point.

regards
Alex
alexB is offline   Reply With Quote

Old   April 10, 2015, 05:40
Default How to define the interpolation points of "arc"? Reply to Thread
  #7
Member
 
Amod Kumar
Join Date: Jan 2010
Location: Delhi, India
Posts: 39
Rep Power: 16
amod_kumar is on a distinguished road
Hello,
Out of curiosity, I tried
hex (0 4 1 1 2 6 3 3) (10 10 10) simpleGrading (1 1 1)

It generated the correct geometry and mesh. Though I would recommend to use Y-block and further divide the sector into 3 sub-sector as shown below. I will not only eliminate the need of collapsed blocks but a high-quality mesh can also be generated with ease.

Regards,
Amod
Attached Images
File Type: png OF1.png (23.2 KB, 320 views)
File Type: png 1_8th_Sector_3_Blocks.png (9.8 KB, 298 views)
amod_kumar is offline   Reply With Quote

Old   April 10, 2015, 06:55
Default
  #8
Member
 
Join Date: Dec 2014
Posts: 50
Rep Power: 11
Harak is on a distinguished road
Quote:
Originally Posted by amod_kumar View Post
Hello,
Out of curiosity, I tried
hex (0 4 1 1 2 6 3 3) (10 10 10) simpleGrading (1 1 1)

It generated the correct geometry and mesh. Though I would recommend to use Y-block and further divide the sector into 3 sub-sector as shown below. I will not only eliminate the need of collapsed blocks but a high-quality mesh can also be generated with ease.

Regards,
Amod
Your idea sounds pretty smart, though my configuration fits my case well enough
Harak is offline   Reply With Quote

Old   September 26, 2018, 05:58
Default how to define interpolation points in arc ?
  #9
New Member
 
dinesh kumar
Join Date: Sep 2018
Location: Delhi
Posts: 8
Rep Power: 7
dinesh1700 is on a distinguished road
i am facing problem in defining arc in wedge type of problem. without the arc option the mesh is running fine but as i include an arc mesh problem arises
blockmeshdict file is as follows:

Capture.JPG
dinesh1700 is offline   Reply With Quote

Old   September 29, 2018, 10:59
Default
  #10
Member
 
Amod Kumar
Join Date: Jan 2010
Location: Delhi, India
Posts: 39
Rep Power: 16
amod_kumar is on a distinguished road
Hello Dinesh,
Can you attached your blockMeshDict as txt file?
amod_kumar is offline   Reply With Quote

Old   October 5, 2018, 07:38
Default blockMesh dict file is attached below
  #11
New Member
 
dinesh kumar
Join Date: Sep 2018
Location: Delhi
Posts: 8
Rep Power: 7
dinesh1700 is on a distinguished road
sir the blockMesh file is attached i am struggling with this from last 2 weeks still not able to find the error in arc syntax.

thanks
Attached Files
File Type: txt blockMeshDict.txt (1.7 KB, 61 views)
dinesh1700 is offline   Reply With Quote

Old   October 5, 2018, 22:49
Default
  #12
Member
 
Amod Kumar
Join Date: Jan 2010
Location: Delhi, India
Posts: 39
Rep Power: 16
amod_kumar is on a distinguished road
Hello Dinesh,
I do not think there is any issue with the arc. The wedge is such a small angle 1.5 [deg] that is looks a straight line. If you zoom very closely in ParaView, the arc is visible. Try changing

hex ( 0 1 5 4 0 1 2 3) (400 50 2) SimpleGrading (1 0.2 1)

to

hex ( 0 1 5 4 0 1 2 3) (400 50 8) SimpleGrading (1 0.2 1)

and then check.

I also realized that the blockMesh does not work if wedge angle is > 15 [deg].

Regards,
Amod
amod_kumar is offline   Reply With Quote

Old   October 6, 2018, 00:59
Default
  #13
New Member
 
dinesh kumar
Join Date: Sep 2018
Location: Delhi
Posts: 8
Rep Power: 7
dinesh1700 is on a distinguished road
the problem i am solving is laminar flow in a pipe , but i am getting same velocity profile everywhere. i am attaching other files.
Attached Files
File Type: txt blockMeshDict.txt (1.7 KB, 58 views)
File Type: txt controlDict.txt (1.2 KB, 7 views)
File Type: txt p.txt (1.2 KB, 6 views)
File Type: txt U.txt (1.4 KB, 3 views)
dinesh1700 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
[blockMesh] checkMesh for a Hollow Cylinder hwsv07 OpenFOAM Meshing & Mesh Conversion 9 November 22, 2018 07:59
[blockMesh] Meshing a circle in a square ChasingNeutrons OpenFOAM Meshing & Mesh Conversion 6 October 11, 2016 20:42
[snappyHexMesh] sHM layer process keeps getting killed MBttR OpenFOAM Meshing & Mesh Conversion 4 August 15, 2016 03:21
settlingFoam unstable? bendel_boy OpenFOAM Running, Solving & CFD 38 July 8, 2016 05:07
An odd ERROR mdakbari Fluent UDF and Scheme Programming 7 April 4, 2016 04:30


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