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

How to read a file from a macro

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 7, 2004, 16: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, 22: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, 22:31
Default Re: How to read a file from a macro
  #3
StarCD
Guest
 
Posts: n/a
Thank you Steve
  Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On


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


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