CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [blockMesh] Matlab-script for BlockMesh for beginners (https://www.cfd-online.com/Forums/openfoam-meshing/129619-matlab-script-blockmesh-beginners.html)

OF-User February 9, 2014 15:39

Matlab-script for BlockMesh for beginners
 
Dear Foamers :)

I would like to write a matlab-script for creating a blockMesh, in order to automatize the meshing.

My problem is, that i donīt have any scripting-experience, so that I donīt really know how to start writing the script, but i understand, how BlockMesh is working and i can simple codes using matlab.

It will be great, if someone could give some tips, post a code or a link for a tutorial to beginners.


Thanks a lot !

Bernhard February 10, 2014 03:00

I would recommend you to use m4, instead of Matlab to create a dynamic blockMeshDict. In the tutorials folder, search do

$ find -name "*.m4"

to find some examples.


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