|
[Sponsors] |
[blockMesh] How to define the interpolation points of "arc"? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 8, 2015, 09:59 |
How to define the interpolation points of "arc"?
|
#1 |
Member
Join Date: Dec 2014
Posts: 50
Rep Power: 11 |
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 ( ); // ************************************************************************* // |
|
April 8, 2015, 16:45 |
|
#2 |
Member
Alexander Bartel
Join Date: Feb 2015
Location: Germany
Posts: 97
Rep Power: 11 |
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 |
|
April 9, 2015, 09:54 |
|
#3 | |
Member
Join Date: Dec 2014
Posts: 50
Rep Power: 11 |
Quote:
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) 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! |
||
April 9, 2015, 11:57 |
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 |
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, |
|
April 9, 2015, 12:25 |
|
#5 | ||
Member
Join Date: Dec 2014
Posts: 50
Rep Power: 11 |
Quote:
The reason it didn't work was because of what you said here: Quote:
Thank you sooo much! |
|||
April 9, 2015, 16:52 |
|
#6 |
Member
Alexander Bartel
Join Date: Feb 2015
Location: Germany
Posts: 97
Rep Power: 11 |
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 |
|
April 10, 2015, 05:40 |
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 |
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 |
|
April 10, 2015, 06:55 |
|
#8 | |
Member
Join Date: Dec 2014
Posts: 50
Rep Power: 11 |
Quote:
|
||
September 26, 2018, 05:58 |
how to define interpolation points in arc ?
|
#9 |
New Member
dinesh kumar
Join Date: Sep 2018
Location: Delhi
Posts: 8
Rep Power: 7 |
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 |
|
September 29, 2018, 10:59 |
|
#10 |
Member
Amod Kumar
Join Date: Jan 2010
Location: Delhi, India
Posts: 39
Rep Power: 16 |
Hello Dinesh,
Can you attached your blockMeshDict as txt file? |
|
October 5, 2018, 07:38 |
blockMesh dict file is attached below
|
#11 |
New Member
dinesh kumar
Join Date: Sep 2018
Location: Delhi
Posts: 8
Rep Power: 7 |
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 |
|
October 5, 2018, 22:49 |
|
#12 |
Member
Amod Kumar
Join Date: Jan 2010
Location: Delhi, India
Posts: 39
Rep Power: 16 |
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 |
|
October 6, 2018, 00:59 |
|
#13 |
New Member
dinesh kumar
Join Date: Sep 2018
Location: Delhi
Posts: 8
Rep Power: 7 |
the problem i am solving is laminar flow in a pipe , but i am getting same velocity profile everywhere. i am attaching other files.
|
|
|
|
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 |