How to create multiple-block geometries?
I'm doing a research that simulates airflow over urban buildings, therefore I need to create geometries of those buildings with certain spacing.
Does anyone know the effective way of setting this up in OpenFOAM?
The figure below is the example of the simulation model I need to set up:
have a look at the m4 programming language. With the help of this language you can create parametric meshes.
I attached a zip-archive with a m4 file and a screenshot from paraView to give you an idea what this script creates.
To use this script change type something like this:
After that you simply run blockMesh.
You can play with the mesh generated by my script and place a single block in the flow.
Thanks man will have a look. It seems reasonable.
|All times are GMT -4. The time now is 16:38.|