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

How to read a file from a macro

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

Reply
 
LinkBack Thread Tools Display Modes
Old   July 7, 2004, 15:17
Default How to read a file from a macro
  #1
StarCD
Guest
 
Posts: n/a
Hi everyone,

I have a text file with x and y vertex co-ordinates of a geometry. I would like to write a macro to read from this file. How do I do this? Someone mentinoed something about IFILE command. I need more detail as I dont know much about writing the macro apart from the simplest terms.

Please help.

Thanx, StarCD
  Reply With Quote

Old   July 8, 2004, 21:29
Default Re: How to read a file from a macro
  #2
steve
Guest
 
Posts: n/a
A macro can have any set of std prostar commands. The prostar command for entering vertices is

V,vertex#,x,y,z

If you modify your file to the lines above, rename it casename.inp and then use ifile,, you can read in those numbers. However, if all you want to do is just read in coordinates, you would be better off looking at the help for the VREAD command and put your file in the format that VREAD looks for.
  Reply With Quote

Old   July 8, 2004, 21:31
Default Re: How to read a file from a macro
  #3
StarCD
Guest
 
Posts: n/a
Thank you Steve
  Reply With Quote

Reply

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
using UDF to read file Ellen FLUENT 5 November 25, 2008 18:38
Macro file. Jwala CFX 0 November 14, 2008 05:18
read file in UDF Echo FLUENT 3 June 29, 2008 02:41
read data file sandra FLUENT 5 August 24, 2006 05:42
Read file RBM FLUENT 0 July 14, 2002 13:48


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