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

[blockMesh] create a sphere with blockMesh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 28, 2017, 04:44
Default create a sphere with blockMesh
  #1
Member
 
Join Date: May 2017
Posts: 38
Rep Power: 9
decibelle is on a distinguished road
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)
);
what's represent the value v?

thanks in advance
decibelle is offline   Reply With Quote

Old   June 28, 2017, 07:21
Default
  #2
Senior Member
 
piu58's Avatar
 
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 744
Rep Power: 15
piu58 is on a distinguished road
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)
piu58 is offline   Reply With Quote

Old   June 28, 2017, 07:30
Default
  #3
Member
 
Join Date: May 2017
Posts: 38
Rep Power: 9
decibelle is on a distinguished road
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?
decibelle is offline   Reply With Quote

Old   September 7, 2020, 03:40
Default
  #4
New Member
 
Rabia Sönmez
Join Date: Jun 2019
Posts: 2
Rep Power: 0
eymenrabia is on a distinguished road
Quote:
Originally Posted by piu58 View Post
0.577 is 1/sqrt(3)
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.
eymenrabia is offline   Reply With Quote

Old   September 7, 2020, 10:37
Default
  #5
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Quote:
Originally Posted by eymenrabia View Post
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.

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
olesen is offline   Reply With Quote

Reply

Tags
blockmesh, openfoam, sphere


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
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


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