CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM

Reading Co-ordinates from a file for blockMesh

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   June 28, 2011, 06:30
Default Reading Co-ordinates from a file for blockMesh
  #1
New Member
 
Fu
Join Date: Jun 2010
Location: India
Posts: 4
Rep Power: 6
fu-ki-pa is on a distinguished road
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
fu-ki-pa is offline   Reply With Quote

Old   June 28, 2011, 06:45
Default
  #2
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 787
Rep Power: 12
Bernhard is on a distinguished road
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.
Bernhard is offline   Reply With Quote

Old   June 29, 2011, 05:20
Default
  #3
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: http://olesenm.github.io/
Posts: 774
Rep Power: 17
olesen will become famous soon enough
Quote:
Originally Posted by Bernhard View Post
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.
olesen is offline   Reply With Quote

Reply

Tags
blockmesh, complexgrading, read file, tanh

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem converting fluent mesh vinz OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 20 November 17, 2012 10:54
Version 15 on Mac OS X gschaider OpenFOAM Installation 120 December 2, 2009 10:23
Regarding FoamX running Kindly help out hariya03 OpenFOAM Pre-Processing 0 April 18, 2008 04:26
Problem with rhoSimpleFoam matteo_gautero OpenFOAM Running, Solving & CFD 0 February 28, 2008 06:51
Results saving in CFD hawk Main CFD Forum 16 July 21, 2005 20:51


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