|
[Sponsors] |
June 28, 2017, 04:44 |
create a sphere with blockMesh
|
#1 |
Member
Join Date: May 2017
Posts: 38
Rep Power: 9 |
hi,
I would like to create a sphere with block mesh. I found a code that you can see on this page: https://github.com/OpenFOAM/OpenFOAM.../blockMeshDict In this code I don't understand this part: Code:
v 0.5773502; mv -0.5773502; a 0.7071067; ma -0.7071067; vertices ( ($mv $mv $mv) ( $v $mv $mv) ( $v $v $mv) ($mv $v $mv) ($mv $mv $v) ( $v $mv $v) ( $v $v $v) ($mv $v $v) ); thanks in advance |
|
June 28, 2017, 07:21 |
|
#2 |
Senior Member
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 744
Rep Power: 15 |
0.577 is 1/sqrt(3)
__________________
Uwe Pilz -- Die der Hauptbewegung überlagerte Schwankungsbewegung ist in ihren Einzelheiten so hoffnungslos kompliziert, daß ihre theoretische Berechnung aussichtslos erscheint. (Hermann Schlichting, 1950) |
|
June 28, 2017, 07:30 |
|
#3 |
Member
Join Date: May 2017
Posts: 38
Rep Power: 9 |
Ok thanks, now I don't understand what represent this 1/sqrt(3).
When I generate this mesh is not a sphere, do you know what I have to replace in this script to generate a sphere? |
|
September 7, 2020, 03:40 |
|
#4 |
New Member
Rabia Sönmez
Join Date: Jun 2019
Posts: 2
Rep Power: 0 |
Greetings from Turkey,
I am a student studying Aerospace Engineering. Currently, i am studying on OpenFoam blockMesh with its tutorial sphere7. But there is a one point that I couldnt understand. In the blockMeshDict of sphere7, there is some value such as v, mv, a, ma etc. I couldnt find where these values come from exactly. There is a relationship between them but i couldnt understand it. Can you help me about this? Also I couldnt find the book which you mentioned it I mean Hermann Schlichting, 1950 Thank you in advance Regards. |
|
September 7, 2020, 10:37 |
|
#5 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40 |
Quote:
The '$v' , '$mv' etc variables are references to the values defined earlier in the dictionary. You can think of them as the OpenFOAM equivalent of shell variables if that helps. /mark |
||
Tags |
blockmesh, openfoam, sphere |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Using createPatch and cyclicAMI in FOAM Extend to create periodicbox | manuc | OpenFOAM Running, Solving & CFD | 1 | April 12, 2022 12:36 |
How to use setField to create sphere | sega | OpenFOAM Pre-Processing | 38 | January 13, 2022 01:39 |
[ICEM] meshing a sphere - large deviation from perfect sphere | murx | ANSYS Meshing & Geometry | 25 | August 15, 2012 13:37 |
Help to create geometry using blockMesh | nandiganavishal | OpenFOAM Running, Solving & CFD | 11 | January 13, 2009 15:20 |
[blockMesh] Does blockMesh create mesh vertices in any particular order | brooksmoses | OpenFOAM Meshing & Mesh Conversion | 3 | December 12, 2005 21:26 |