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

# Re: [femm] Using LUA to create a Bx table

- To: femm@yahoogroups.com
- Subject: Re: [femm] Using LUA to create a Bx table
- From: "Peter Ceelen" <peter.ceelen@ct.boc.com>
- Date: Wed, 15 Aug 2001 08:48:25 -0700

    Thanks for your help. For your consideration and for the use of others I have
    attached a modified grid file which creates two separate file for Bx and By and
    includes the coordinates of the points in a tabular fashion that is useful for
    exporting to Excel and making surface plots. I also setup Xmin, Xmax, Xstep,
    Ymin, Ymax, and Ystep as variables that are easy to find in the beginning of the
    script. The one thing that would make this even more useful would be a popup
    window prompting the user to enter the desired variable values, but I don't see
    how that might be done.
    (See attached file: Bx and By grid.lua)

    David Meeker <dmeeker@foster-miller.com> on 08/10/2001 10:44:51 AM

    Please respond to femm@yahoogroups.com

    To: femm@yahoogroups.com
    cc: (bcc: Peter Ceelen/BOCCT)

    Subject: Re: [femm] Using LUA to create a Bx table

peter.ceelen@ct.boc.com wrote:

> I have been trying, without success, to create a LUA script that will
> create a x,y table of Bx values. Has anyone got an example of a
> functioning script that will do this.

OK--here's an example. The attached script evaluates Bx on a matrix of locations in the qfld1.fem example. The results are written to disk as a text file. To run the example:

1) load qfld1.fem (included in the attached zip) into the preprocessor in the usual way
2) push the "turn the crank" button to analyze the problem
3) push the "glasses" button to view the solution
4) select File|Open Lua Script off of the main menu of the postprocessor
5) pick out the file "grid.lua" (also included in the attached zip) and hit OK
6) a file called "values.txt" will then be written automatically with the field values separated by spaces.

Dave.
`Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.`
*********************************************************************
This footnote confirms that this e-mail message has been scanned for
the presence of known computer viruses by the MessageLabs Virus
Control Centre. However, it is still recommended that you use
local virus scanning software to monitor for the presence of viruses.
*********************************************************************

Attachment: `grid.zip`
Description: .ZIP File

Attachment: `dmeeker.vcf`
Description: Binary data

Attachment: `Bx and By grid.lua`
Description: Binary data

- Prev by Date: What is the best way to model Horseshoe magnets
- Next by Date: some bugs?
- Previous by thread: Re: What is the best way to model Horseshoe magnets
- Next by thread: some bugs?
- Index(es):
  - Date
  - Thread