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

# Re: [femm] lua scripts

- To: femm@yahoogroups.com
- Subject: Re: [femm] lua scripts
- From: David Meeker <dmeeker@ieee.org>
- Date: Mon, 17 Jun 2002 12:13:57 -0400
- References: <000001c21606$8addc600$0200a8c0@hirstmagnetics.com>
- User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.0) Gecko/20020530

`Robin Cornelius wrote:`

> `2)`
> `-- is the Lua comment`
> `1)`
> `The properties and materials :- you can currently only add new complete
> materials or delete existing there is no way to edit so you have to live
> with the add material command (have a look at 5.2.9 in the manual) :-
> 5.2.9 Object Properties
> .
> addmaterial("materialname", mu x, mu y, H c, Jr, Ji, Cduct, Lam d, Theta h,
> lam fill, LamType)`
> `
> Is that what you mean for 1) ?`
> `Ah, i think i know what you mean. there is no way (currently!?) of loading
> materials from the materials library into your model using lua on its own as
> you would on the menu properties->materials library.`

`The way that I go about it is to create new model in the preprocessor that just has the materials that I want to eventually use in the lua script. I then save it to some filename like "materials.fem" At the beginning of the lua script, I then load the file (i.e. openfemmfile("materials.fem") ) , and all of the materials that I want are there and ready for use.`
`Dave.`
``

- References:
  - RE: [femm] lua scripts
    - From: "Robin Cornelius" <robin.cornelius@hirst-magnetics.com>

- Prev by Date: RE: [femm] lua scripts
- Next by Date: Spectral domain
- Previous by thread: RE: [femm] lua scripts
- Next by thread: Spectral domain
- Index(es):
  - Date
  - Thread