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

RE: [femm] FEMM + MathCad



Hi,

Yes, we have been putting ActiveX Automation into Femme, and it works well,
but it is not finished yet (we only have the commands that we are using at
the moment). It hooks onto the Lua interface which seemed to be the easiest
way of doing it at the time. When it is finished you would be able to call
any Lua function from other applications (Exel, Mathcad, Matlab etc..)

I havent tried accessing using Mathcad, but currently we are building
parameterised Femme models from within Matlab (including solving and
postprocessing). I have also built a VisualBasic application for a
specific model, so that I have a GUI for the model parameters. This works
well when I want to do multiple solves etc.

I could try and see if Mathcad works too... Hopefully it won't be too
long before we can complete the interface.



Finlay Evans



-----Original Message-----
From: David Meeker [mailto:dmeeker@xxxxxxxxxxxxxxxxx]
Sent: 07 February 2002 18:25
To: femm@xxxxxxxxxxxxxxx
Subject: Re: [femm] FEMM + MathCad




Gal Janos wrote:

> Hi,
>
> I am a new FEMM user, dealing with rotating machine design; designing
mainly
> large induction motors. Most of our calculations are in MathCad, and I
> intend to use the FEMM for leakage reactance calculation of high skin
effect
> rotor slot shapes. Is there anyone who has already connected FEMM to
MathCad
> for any reason?
> Is there anyone with the same interest?
>
> Janos Gal
>

Currently, I don't know of a way to hook into FEMM directly from MathCad.
One
of the users is working on developing ActiveX automation for FEMM, which
according to the MathCad documentation would allow one to access FEMM
directly
from within MathCad. This is a pretty cool extension to the program, but I
need
to do a little bit more work to understand how the ActiveX automation stuff
actually works so that I can support it in a future release. (Can anyone
have a
good place to start? ActiveX appears to be very poorly documented in the
material that comes with MSVC++).

In the mean time, it is currently possible to access FEMM from within some
mathematical analysis programs like Mathematica, Matlab, etc. without using
ActiveX, via calls to the operating system. This method works, although it
is
pretty klunky. The reason that I think that you can't do this approach in
MathCad is that I can't find a way to make operating system calls in
MathCad.

Anyhow, I'd been meaning to put up an example of this for a while, and I
finally
got around to making one up. See:
http://groups.yahoo.com/group/femm/files/scripting/roters1b.zip
In this example, I've written a Mathematica function that calls FEMM to do
magnetic analysis. Specifically, the example is of a solenoidal actuator.
The
Mathematica function takes the plunger position and coil current as inputs
and
returns the magnetic field coenergy and force on the plunger. I then call
the
function a bunch of times to make some graphs that can be compared to some
experimental data about this particular actuator from a classic book on
magnetic
actuator design.

Dave.





Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 



------------------------------------------------------------------------
This email and any attachments are confidential and are for the
use of the addressee only. If you are not the addressee, you must not
use or disclose the contents to any other person. Please immediately
notify the sender and delete the email. Statements and opinions
expressed here may not represent those of the company.
Email correspondence is monitored by the company.

The parent company of the Renishaw Group is Renishaw plc, registered
in England no. 1106260. Registered Office: New Mills, Wotton-under-Edge
Gloucestershire, GL12 8JR, United Kingdom. Tel +44 (0) 1453 524524
-----------------------------------------------------------------------