|
[Sponsors] |
[blockMesh] Creating similar multiplte geomentry by m4 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 13, 2015, 04:44 |
Creating similar multiplte geomentry by m4
|
#1 |
New Member
Warning
Join Date: Jan 2015
Posts: 15
Rep Power: 11 |
Hey Foamers
I am trying to develop an m4 blockMeshDict script for 15 similar pipes attached to each other, if i start writing co ordinates and building blocks it may take lots of time.i have attached the geomentry below. Is there any command in m4 or example where we can repeat the blocks of same dimensions repeatedly. please do reply Thanks in advance |
|
March 21, 2015, 08:52 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,980
Blog Entries: 45
Rep Power: 128 |
Greetings range_rover,
In the m4 manual: http://www.gnu.org/software/m4/manual/m4.html - check the section "Conditionals, loops and recursion". AFAIK, there is no example available in public for doing what you're asking for. Nonetheless, it feels like it would be better for you to use an easier programming language for creating the final dictionary file. Have a look at the list of examples provided here: http://openfoamwiki.net/index.php/Bl...MeshDict_files Using Python or MATLAB might be the easiest solutions. Best regards, Bruno
__________________
|
|
March 23, 2015, 03:35 |
|
#3 |
New Member
Warning
Join Date: Jan 2015
Posts: 15
Rep Power: 11 |
thnks bruno for your help and advice,
are there any examples of developing Matlab scripts for openfoam ? |
|
March 28, 2015, 16:01 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,980
Blog Entries: 45
Rep Power: 128 |
Hi range_rover,
The only example I know about for MATLAB is already listed on the wiki page and is this one: http://www.cfd-online.com/Forums/ope...blockmesh.html Best regards, Bruno |
|
Tags |
blockmeshdict block mesh, gnu m4, openfoam |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Commercial meshers] Fluent3DMeshToFoam | simvun | OpenFOAM Meshing & Mesh Conversion | 50 | January 19, 2020 15:33 |
Heat Sink Meshing | Olds88 | Pointwise & Gridgen | 14 | June 20, 2016 07:11 |
Compressor Simulation using rhoPimpleDyMFoam | Jetfire | OpenFOAM Running, Solving & CFD | 107 | December 9, 2014 13:38 |
Possible Bug in pimpleFoam (or createPatch) (or fluent3DMeshToFoam) | cfdonline2mohsen | OpenFOAM | 3 | October 21, 2013 09:28 |
Problems running laminarSmoke | r08n | OpenFOAM Running, Solving & CFD | 1 | September 27, 2013 19:27 |