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

Re: [FEMM] Lua script to output B field and other info



Use lua to "map" B fields.  Use the lua script to calculate
a model, then use the "plot to file" function to generate a
table of values for B.  Always have to set the number of
points in the plot to something plus 1 to get even
positions.  for example, 51.  Also, plot both normal and
tangential to get the x,y directions.  For AC fields,
you'll get a complex value at each point.  

For multiple models, use lua to name the files in some
sequential manner, like Bn001, Bt001, Bn002,Bt002, etc.

Once you have text tables of data, you can do with it what
you need.  

Little more detail what you're doing and I can send sample
lua scripts.  But keep in mind I have the old version of
femm.  Where there were two step processing of lua.

                       - Robert -



On Sat, 20 Mar 2004 12:24:02 -0500
 Steven Adeff <adeffs@xxxxxxx> wrote:
> hello all!
> I'm working on a programming project for my Computer
> Methods in Electric Power 
> Engineering course that I'd like to use some output from
> FEMM for. What I'd 
> like to do is be able to output the B field information
> from a FEMM analysis 
> in a x,y,B style layout into a text file for import into
> the program I have 
> to write. I haven't used Lua before and was wondering if
> anyone had anything 
> similar that I could steal some code from, or if anyone
> knows of a quick and 
> easy way to do this and wouldn't mind helping me.
> 
> Thanks!!
> 
> 
> -- 
> 
> Steven Adeff
> ADEFFS@xxxxxxx
> Graduate, Electric Power Engineering
> Rensselaer Polytechnic Institute - Troy, NY
> _______________________________________________
> FEMM mailing list
> FEMM@xxxxxxxxxxxxxxxxxxxxxx
> http://femm.foster-miller.net/mailman/listinfo/femm