CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   Reading Co-ordinates from a file for blockMesh (http://www.cfd-online.com/Forums/openfoam/89999-reading-co-ordinates-file-blockmesh.html)

fu-ki-pa June 28, 2011 06:30

Reading Co-ordinates from a file for blockMesh
 
Greetings !

Is there any way I can read the coordinates from a file rather than using simpleGrading in blockMesh . To make my point clear , I have an uniform mesh in streamwise (say x) and spanwise (say z) directions in a channel and the third direction which is non-uniform (say y) co-ordinate is to be read from a file. Can i do it by tweaking the blockMeshDict file ?.

I will be more than happy if i can generate using an expression (Say, Tanh or Sinh functions) inside blockMeshDict

Thanks and Regards

fu-ki-pa

Bernhard June 28, 2011 06:45

This is not possible with the original blockMesh afaik. But if you make your own utility, based on this blockMesh, you will definitely be able to do something like this.

olesen June 29, 2011 05:20

Quote:

Originally Posted by Bernhard (Post 313866)
This is not possible with the original blockMesh afaik. But if you make your own utility, based on this blockMesh, you will definitely be able to do something like this.


You'll also notice that blockMesh now has its own library routines (see http://repo.or.cz/w/OpenFOAM-2.0.x.g...mesh/blockMesh) which should make this type of customization somewhat easier.


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