[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [femm] Re: Current
Israel Kehaty wrote:
Hi. David:
In your example there are only 7 coils. But practically there can be
hundreds or even thousands of coils. How can one assign all those
coils the circuit propeties automatically without having to assign it
one after another?
Thanks.
This is a pain to do manually for any more than a small number of turns.
However, it isn't too difficult to programmatically define and assign
the currents with a loop in a lua script.
I've attached an example lua scipt that does just this. It draws an
air-cored coil with 100 turns. Each turn has its own current
constraint, forcing exactly 1 amp to flow in the turn. All of the block
labels in the coil are defined to be in group 1, so you can use the lua
command groupselectblock(1) in the postprocessor to select them all in
one step, e.g. to compute the total losses including proximity effects.
Dave
--
David Meeker
Attachment:
zip00031.zip
Description: Zip compressed data