[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: File name



--- In femm@xxxxxxxxxxxxxxx, "Mihai Priboianu" <pribo@xxxx> wrote:
> I'm running a Lua script in order to calculate the
> flux density distribution in the airgap for each
> postion of the rotor. I use a for loop in the
> preprocessor but in the postprocessor I want to
> export in a txt file the flux density values. How
> can I rename the text file used for exporting the
> values for each position of the rotor.
> 
> Thanks !

Pass the iteration number as described in message:
http://groups.yahoo.com/group/femm/message/1784

You could then append the iteration number to the name of the output
file. For example, if your iteration number were stored in the
variable k, you could open a file to write to using the syntax:
handle=openfile("file" .. k .. ".txt","w");
which would generate files nameed file1.txt, file2.txt, etc.

Dave.
--
David Meeker
http://femm.berlios.de/dmeeker