BlockMesh grading calculator
Hi everybody,
i've written a calculator for the grading in the blockMesh format some time ago. It relates length, number of cells, total expansion ration, cell-to-cell expansion ratio, start cell size and end cell size. Given the length and any two of the other, the remaining values are calculated. It's a little programm, but I found it myself useful generating meshes with blockMesh. If someone improves it, let me know http://www.cfd-online.com/OpenFOAM_D...hment_icon.gif MeshSpace.tar.gz regards Markus |
Actually, the grading factor i
Actually, the grading factor in blockMesh is defined as the ratio of the last to first cell size, which is much better behaved that defining the number of cells and the geometric expansion ratio. I suppose we have both done the same thing :-)
Hrv |
Hi Markus,
Thanks for the u
Hi Markus,
Thanks for the utility. I found it very useful; esp. to find out the number of cells when one knows the start and end cell sizes in addition to the length. I had to edit the Makefile to remove the reference to the bin subdirectory which does not exist. A sample of the utility usage is shown below for those who need to know how to use it: madhavan@karmayug:~/MeshSpace$ ./MeshSpace ds de 0.58 0.000625 0.003125 Meshspace results by Markus.Hartinger@imperial.ac.uk : Length L : 0.58 Number of cells n : 373 Total expansion ratio r : 5 Cell-to-cell expansion k : 1.00434 Start cell size ds: 0.000625305 End cell size de: 0.00312652 madhavan@karmayug:~/MeshSpace$ |
Hi Markus
Would you please
Hi Markus
Would you please tel me how your calcualtor works? i Couldent open that. Cheers |
I get this error with gcc 4.3.
I get this error with gcc 4.3.1 when running make.
Any idea what is wrong? g++ -g -c MeshSpace.cpp MeshSpace.cpp: In function 'int main(int, char**)': MeshSpace.cpp:35: error: 'exit' was not declared in this scope MeshSpace.cpp:38: error: 'atof' was not declared in this scope make: *** [MeshSpace.o] Error 1 |
Problem solved. It was just a
Problem solved. It was just a question of adding:
#include <cstdlib> to MeshSpace.cpp and TEdgeSpace.cpp |
Sorry, which is the problem??
5:45 ale@alien:~/MeshSpace$ make g++ -g -c MeshSpace.cpp g++ -g -c TEdgeSpace.cpp g++ -g -o bin/MeshSpace MeshSpace.o TEdgeSpace.o /usr/bin/ld: cannot open output file bin/MeshSpace: No such file or directory collect2: ld returned 1 exit status make: *** [MeshSpace] Errore 1 |
Quote:
|
Quote:
Thank you |
Stupid question..
How to give the arguments to the program??? I didnt get it..:(
Sorry for this stupid question.;) |
Quote:
Look at the third post; it's just an example;) |
Oh yes...i just overlooked it..i was trying meshspace value ds value de value...etc
|
Broken Link?
Hi,
I cannot download the .tar.gz file. All I get is a short html file saying that the file I was looking for was not found on the server. This is saved with a .unk file extension. Using wget http://... brings the same result. Can anybody shed some light on this? Or send me the file via email to pascal \at\ pascal-anschau \dot\ de? Thanks in advance! Cheers, Pascal. |
Quote:
Just rename the downloaded file to "MeshSpace.tar.gz", extract it, then it should work. |
Quote:
|
Hi Srinath,
I am new to OpenFoam. I need to create a mesh for channel with non linear mesh. My node spacing is 12% increment for first 20 nodes near wall and 1.5 times viscous length scale and then 8% near the cwnter line and same on the otherside of the center line too.. I am confused how do I can take expansin ration? Thanks in advance, Prameela. |
Hi Pam,
I would suggest first learning how to use blockMesh utility with openFOAM. You will need to separate the mesh into separate blocks for each grading. First do a couple of the tutorials here to learn Then use hartinger's tool to specify the grading based on your requirement. Good luck. |
Blockmesh
Dear Foamers,
i have xyz coordinates(that is model have 33 coumns and 225 rows in .csv file format) how i import and create blockmesh andbody have idea please let me know. Thanks for the answer in advance! |
first: are these coordinates of block vertices?
second: if so u can easyli write converter that will pull vertices of that file and create blocks, faces and edges. if not that is not so easy. Hint: remember that spline edges use mirror of last point for approxymation of y' in last point. |
blockmesh-flapping wing
Dear Slackware_user,
thanks for your reply first: these are the 3Dmodel coordinates generated in matlab,i have xyz coordinates of that model.for example generally people goes for cad model, same thing of that cad model but thing is i have coordinates, in matlab(that is model have 33 coumns and 225 rows xyz coordinates in .csv file format)how i can go for blockmesh. Thanks for the answer in advance! |
All times are GMT -4. The time now is 08:13. |