AC Generator Simulation with FEMM.


2D Finite Element Animation.

In this chapter I will describe you a metod to obtain an animation using a Lua script file in FEMM 4.0.

We start from the femm file that we want animate.

We need to create a group with all the components of the rotor. To do this select the components ( arcs, lines, etc ... ) and write the number "1" ( you can use one number for each group that you need in your design ) in the field "In Group" from the "Properties for the selectec block" dialog window. This let us select it in the Lua script file. In this case in the Group number 1.

Then create the Lua Script file as is:

Adjust the Femm window to the area that you want see in the animation, and open the Lua Script.

Waint a moment.

If all is right, we have several BMP files, acgen_0.bmp, acgen_18.bmp, acgen_36.bmp, etc...

You can convert these files to *.gif using IrfanView http://www.irfanview.com

Now, that we have *.gif files we can join to one file using Microsoft Gif Animator http://www.versiontracker.com/dyn/moreinfo/win/13212

To do this: Make a copy of acgen_0.gif and rename it to acgen.gif

Open it with the MS Gif Animator.

Intert the other gif files.

Set the Image Duration to 10 for all the images. Set the Animation Looping to Repeat Forever. Then save you acgen.gif.

Now you can publish you 2D Finite Element Animation on the Web.

To create your own 2D Finite Element Animation, you only need to create the model that you want to animate, solve the problem, and save the solution for each step of the animation. With this you can make an animation of moving parts ( rotating or linear movement, of blocks ) or shape modification ( moving points or lines ).


Open Circuit Voltage.

You can simulate the open circuit voltage of your generator design using the Finite Element Method Magnetics Software ( FEMM ) and with the help of the Lua Programing Language.

As the Voltage Inducend in a coil is governed by the mathematical experssion, Vind = N * d Phi /dt. Where N is number of turns in the estator coil, and Phi is the magnetic flux.

You can create a Lua scipt file and obtain the magnetic flux trough the stator poles for each position of the Permanent Magnet Rotor. And then apply a relation between the angle position and time ( rotational speed ) to obtain the variation of Phi over time ( d Phi / dt ). 

The I have obtained a Time-Domain or Transient Simulation of an Electric Generator from a Finite Element Model.

With this you can change the dimensions and form of the permanent magnets in the rotor, the generator dimensions, the speed of rotation, the number of turns in the stator coils, and more variables to see what happen with wave form of Induced Voltage, and adjust it to your application.

For example:

When I have changed the rotor by this new shape.

I have obtained a sinusoidal voltage output.

Now we can see what happen with change of units, from millimeters to centimeters, rotor poles from 2 to 4, stator poles from 2 to 4, number of turns in stator coils to 5000 ( 2500 x 2 ) and rotation speed to 5500 rpm.

Here we have a senoidal voltage with 313 Volts of pic, this means 220 V eff, aprox.

The frequency is 18.3 Hz only. But can work fine for battery charge, bulbs and electric heaters.

Of course, we can change the frequency by increasing the number of poles in the rotor, and/or the rotatonial speed. Then we can reduce the number of turns in the coil and obtain the same out voltage.


Open Circuit Torque.

Another example of what you can do with Finite Element Analysis. Is calculate the torque in Open Circuit conditions, without loading the generator. This Open Circuit Torque is due to the attraction between the permanent magnet rotor and the ferromagnetic estator when the current in the outcoils coils is equal to zero.

With this you can change the dimension and shape of the rotor permanent magnets and see the effects over torque. For non zero current in the output coils we need a more complex transient algorithm, see the section, Simulation of Loaded AC Generator.

With the last Generator Finite Element Model I have obtained this torque in rotor.

That now is senoidla, becose the distance between the permanents magnets in the rotor is zero.


Simulation of Loaded AC Generator.

We can model the Electric Heaters and Electric Bulbs as simple resistive loads, that we can test the effect over the torque required to rotate the generator.

Modeling Electric Heaters and Electric Bulbs.

For this we only need obtain the Resistance from the Power and Voltage using the mathematical expression R = V^2 / P, that we can obtain from I = V / R and P = V * I, were P = Power in Watts, V = Voltage in Volts, I = Current in Amps and R = Resistance in Ohms

Bulb Examples:

Heater Examples:

With this you can see the effects over your ac generator design when you connect all the bulbs of your home in the generator. Well you need calculate the equivalent resistance of all the bulbs connected in parallel, and apply this equivalent resistance to the mathematical model of the generator.

Additionally you can see the effects in you bulbs vs the working conditions of the generators, rotational speed, shape, ferromagnetic material, dimensions, permanent magnet in the rotor, etc...

You can change the design and see what happen.

the algorithm that let obtain this transient analysis, please be patient.

I invite you to visit this page periodically, I have the intention of include the algorithm that let us obtain this transient analysis. If time and donations let me do it, of course.


Crimson Editor Files

Crimson Editor is a Freeware text editor that can help you to write your own Lua Script files for FEMM, BELA and MIRAGE.

You can download this helpfull freeware editor from http://www.crimsoneditor.com/

And my Specification Language and Keywords files for FEMM, BELA and MIRAGE by Click Here!

Intallation:

Copy all the files included in the crimson.zip file in the "spec" directory the Crimson Editor installation.
Go to Crimson Editor menu, select Document - Syntax Type - Customize.

Select and empty slot and fill with:
Description: FEMM
Lang. Spec: FEMM.SPC
Keywords: FEMM.KEY

Select another empty slot and fill with:
Description: BELA
Lang. Spec: BELA.SPC
Keywords: BELA.KEY

Select another empty slot and fill with:
Description: MIRAGE
Lang. Spec: MIRAGE.SPC
Keywords: MIRAGE.KEY

In the Filters section:
Description: FEMM Files
Extensions: *.lua
Default Ext: lua


If you are interested in Finite Elements and ElectroMechanical Machines, here do you some books in Amazon.com that can be of great interest to you.



Return to the Main Page.