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

# Re: File name

- To: femm@yahoogroups.com
- Subject: Re: File name
- From: "David Meeker" <dmeeker@ieee.org>
- Date: Mon, 12 May 2003 21:02:37 -0000
- In-reply-to: <001f01c3187d$26c1a770$1429558d@Mihainou>
- User-agent: eGroups-EW/0.82

    --- In femm@yahoogroups.com, "Mihai Priboianu" <pribo@a...> 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

- References:
  - File name
    - From: "Mihai Priboianu" <pribo@amotion.pub.ro>

- Prev by Date: Re: Permanent magnet operating point
- Next by Date: Re: [femm] TetGen, a 3D tetrahedral mesh generator
- Previous by thread: File name
- Next by thread: Saving the "meshed" model in FEMM as a *.DXF file
- Index(es):
  - Date
  - Thread