|
[Sponsors] |
July 7, 2004, 16:17 |
How to read a file from a macro
|
#1 |
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 |
|
July 8, 2004, 22:29 |
Re: How to read a file from a macro
|
#2 |
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. |
|
July 8, 2004, 22:31 |
Re: How to read a file from a macro
|
#3 |
Guest
Posts: n/a
|
Thank you Steve
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
read file in UDF | Echo | FLUENT | 4 | July 4, 2017 13:37 |
using UDF to read file | Ellen | FLUENT | 5 | November 25, 2008 18:38 |
Macro file. | Jwala | CFX | 0 | November 14, 2008 05:18 |
read data file | sandra | FLUENT | 5 | August 24, 2006 06:42 |
Read file | RBM | FLUENT | 0 | July 14, 2002 14:48 |