Welcome
Username or Email:

Password:


Missing Code




[ ]
[ ]
Online
  • Guests: 16
  • Members: 0
  • Newest Member: omjtest
  • Most ever online: 396
    Guests: 396, Members: 0 on 12 Jan : 12:51
Members Birthdays:
No birthdays today

Next birthdays
05/14 hvguy (41)
05/14 thehappyelectron (14)
05/14 Justin (2024)
Contact
If you need assistance, please send an email to forum at 4hv dot org. To ensure your email is not marked as spam, please include the phrase "4hv help" in the subject line. You can also find assistance via IRC, at irc.shadowworld.net, room #hvcomm.
Support 4hv.org!
Donate:
4hv.org is hosted on a dedicated server. Unfortunately, this server costs and we rely on the help of site members to keep 4hv.org running. Please consider donating. We will place your name on the thanks list and you'll be helping to keep 4hv.org alive and free for everyone. Members whose names appear in red bold have donated recently. Green bold denotes those who have recently donated to keep the server carbon neutral.


Special Thanks To:
  • Aaron Holmes
  • Aaron Wheeler
  • Adam Horden
  • Alan Scrimgeour
  • Andre
  • Andrew Haynes
  • Anonymous000
  • asabase
  • Austin Weil
  • barney
  • Barry
  • Bert Hickman
  • Bill Kukowski
  • Blitzorn
  • Brandon Paradelas
  • Bruce Bowling
  • BubeeMike
  • Byong Park
  • Cesiumsponge
  • Chris F.
  • Chris Hooper
  • Corey Worthington
  • Derek Woodroffe
  • Dalus
  • Dan Strother
  • Daniel Davis
  • Daniel Uhrenholt
  • datasheetarchive
  • Dave Billington
  • Dave Marshall
  • David F.
  • Dennis Rogers
  • drelectrix
  • Dr. John Gudenas
  • Dr. Spark
  • E.TexasTesla
  • eastvoltresearch
  • Eirik Taylor
  • Erik Dyakov
  • Erlend^SE
  • Finn Hammer
  • Firebug24k
  • GalliumMan
  • Gary Peterson
  • George Slade
  • GhostNull
  • Gordon Mcknight
  • Graham Armitage
  • Grant
  • GreySoul
  • Henry H
  • IamSmooth
  • In memory of Leo Powning
  • Jacob Cash
  • James Howells
  • James Pawson
  • Jeff Greenfield
  • Jeff Thomas
  • Jesse Frost
  • Jim Mitchell
  • jlr134
  • Joe Mastroianni
  • John Forcina
  • John Oberg
  • John Willcutt
  • Jon Newcomb
  • klugesmith
  • Leslie Wright
  • Lutz Hoffman
  • Mads Barnkob
  • Martin King
  • Mats Karlsson
  • Matt Gibson
  • Matthew Guidry
  • mbd
  • Michael D'Angelo
  • Mikkel
  • mileswaldron
  • mister_rf
  • Neil Foster
  • Nick de Smith
  • Nick Soroka
  • nicklenorp
  • Nik
  • Norman Stanley
  • Patrick Coleman
  • Paul Brodie
  • Paul Jordan
  • Paul Montgomery
  • Ped
  • Peter Krogen
  • Peter Terren
  • PhilGood
  • Richard Feldman
  • Robert Bush
  • Royce Bailey
  • Scott Fusare
  • Scott Newman
  • smiffy
  • Stella
  • Steven Busic
  • Steve Conner
  • Steve Jones
  • Steve Ward
  • Sulaiman
  • Thomas Coyle
  • Thomas A. Wallace
  • Thomas W
  • Timo
  • Torch
  • Ulf Jonsson
  • vasil
  • Vaxian
  • vladi mazzilli
  • wastehl
  • Weston
  • William Kim
  • William N.
  • William Stehl
  • Wesley Venis
The aforementioned have contributed financially to the continuing triumph of 4hv.org. They are deserving of my most heartfelt thanks.
Forums
4hv.org :: Forums :: Electromagnetic Projectile Accelerators
« Previous topic | Next topic »   

Yanom's FEMM program for simulating coilguns and calculating efficiency.

1 2 
Move Thread LAN_403
Yanom
Wed Jan 30 2013, 03:35AM Print
Yanom Registered Member #4659 Joined: Sun Apr 29 2012, 06:14PM
Location:
Posts: 158
For my high school regional Science Fair, I wrote a program that simulates coilgun shots and calculates the efficiency of the shot. It uses a three-step process:

1) Draws a coilgun using the specified parameters - innerRadius, coilThickness, coilLength, projectileLength, ampTurns (specifies the total current*turns that the coil will be powered with while in operation)
2) Iteratively moves the projectile into the coil, calculating the force at each location. This data goes into a "Force table" that correlates each location of the projectile (location 0 is where the iron is just outside the coil) with a particular force on the projectile.
3) Calculates the total kinetic energy of the projectile on coil exit. During this process, it finds the total time that the gun firing will take and multiplies this by the resistive losses of the coil, then adds this sum to the total energy in the magnetic field, to find the amount of energy expended in the shot. see the function calcTable in the code for more.

the program opens the file "a_tabulaRasa.fem" before drawing the coilgun. this file has the material properties for iron and magwire, which I learned from looking at Yandersen's Recuperational Gauss FEMM script.

the program and the TabulaRasa file are attached. you can edit the line 187 to change the parameters of the drawn coilgun

please look at my code and tell me what you think!
Back to top
Yanom
Wed Jan 30 2013, 03:38AM
Yanom Registered Member #4659 Joined: Sun Apr 29 2012, 06:14PM
Location:
Posts: 158
ok, forum decided not to accept my files the first time. They're in the .zip attached to this post
]coilgunsim.zip[/file]


anyway, can anyone check my math in this program and ensure that it makes sense? especially the calcTable() function.
Back to top
Yanom
Thu Feb 07 2013, 03:46PM
Yanom Registered Member #4659 Joined: Sun Apr 29 2012, 06:14PM
Location:
Posts: 158
*bump*

what does everyone think of this? Does anyone have a one-stage coilgun laying around that they can plug into this simulator and see if the simulator gives accurate efficiency values?
Back to top
Yandersen
Thu Feb 07 2013, 10:26PM
Yandersen Registered Member #6944 Joined: Fri Sept 28 2012, 04:54PM
Location: Canada
Posts: 340
Actually, with constant ampturns it has no use for simulations of real devices. Simple monkey-design circuit (cap, thyristor, coil and dumper diode) should be assumed, so current change must be simulated (cap discharge, inductance change, resistive losses, kinetical to magnetic energy conversions affect current change).
Will you add it? By now, it is easier to draw a coil and projectile, put it in location of interest, set current and make 1 single static simulation to have an idea of what force here will be at given current.
Back to top
Yanom
Fri Feb 08 2013, 01:52AM
Yanom Registered Member #4659 Joined: Sun Apr 29 2012, 06:14PM
Location:
Posts: 158
The purpose of this was to give a rough approximation of Cg behavior at a given coil geometry and power level. I then made 4000+ setups, and got permission from my school to use all 30 workstations at once like a ghetto supercomputer. The idea was to find the most efficient setup. Results are coming soon!
Back to top
Yandersen
Fri Feb 08 2013, 04:24AM
Yandersen Registered Member #6944 Joined: Fri Sept 28 2012, 04:54PM
Location: Canada
Posts: 340
Some abstract results are coming soon! Get ready for random numbers! SkyNet is launched!!!

Does anybody on this planet has a coilgun driven from constant current source? It is important that current does not change in your coilgun during the shot - otherwise it's operation will give +-100500% difference from Yanom's simulation - we don't want to make him upset and his teachers to look stupid, right?..
Back to top
DerAlbi
Fri Feb 08 2013, 05:27AM
DerAlbi Registered Member #2906 Joined: Sun Jun 06 2010, 02:20AM
Location: Dresden, Germany
Posts: 727
I must agree. You are simulating a steady state, which is NOT what a shot is. Your effieicency report will tell you exactly nothing. You cant estimate losses with a steady state. Its not even a close aproximation.

You need to use physics of the process, not the steady state.
In detail:
-use a time discrete simulation,
-calculate delta_currents and delte_voltages based on inductance / capacitance
-use the law of conservation of energy when
a) the inductance changes -> recalculate the current based on energy previously on the field.
b) the projectile acceleration. recalculate current after the accelleration. Kinetic energy is drained from the magnetic field.

In the end all energy (R-disipation, L/2*I^2 and C/2*U^2 must be close to constant. Its a good thing to keeps track of all energy-forms during the simulation to check its correctness.
Back to top
DerAlbi
Sun Feb 10 2013, 06:13PM
DerAlbi Registered Member #2906 Joined: Sun Jun 06 2010, 02:20AM
Location: Dresden, Germany
Posts: 727
Yanom... i have done some work.
Its originally a script thats designed to simulate a multistage half bridge design. I modified it to work with the conventional circuit. The simulation seems to work, but it looses track of energy-stuff, which shouldnt matter, since its only a proof of math, thats developed for the half-bridge design. (it works in halfbridge mode)

Please feel free to modify it. I am actually not sure, if it works with just one coil. I recommend you try do understand what i am doing and build your own script.
I will share it here, so otheres can do simulation too. However i am not willing to provide extensive support. (sry).

Math looks complicated - yes it was. But its derived from known school formulas only. Its just a little messy due to time discrete stuff. Also the state machine is a little hard to follow. You can add debug-outputs for easier understanding.

Have fun!

1360519996 2906 FT149977 Test

]yanomstuff.zip[/file]
Back to top
BigBad
Sun Feb 10 2013, 09:13PM
BigBad Registered Member #2529 Joined: Thu Dec 10 2009, 02:43AM
Location:
Posts: 600
On the contrary, I think this is likely to be very useful.

It would be equivalent to a coil gun where the activated coil tracks the projectile.
Back to top
Yanom
Sat Mar 02 2013, 03:28AM
Yanom Registered Member #4659 Joined: Sun Apr 29 2012, 06:14PM
Location:
Posts: 158
DerAlbi wrote ...

In the end all energy (R-disipation, L/2*I^2 and C/2*U^2 must be close to constant.

wouldn't that list also include M/2*V^2, the projectile kinetic energy?
Back to top
1 2 

Moderator(s): Chris Russell, Noelle, Alex, Tesladownunder, Dave Marshall, Dave Billington, Bjørn, Steve Conner, Wolfram, Kizmo, Mads Barnkob

Go to:

Powered by e107 Forum System
 
Legal Information
This site is powered by e107, which is released under the GNU GPL License. All work on this site, except where otherwise noted, is licensed under a Creative Commons Attribution-ShareAlike 2.5 License. By submitting any information to this site, you agree that anything submitted will be so licensed. Please read our Disclaimer and Policies page for information on your rights and responsibilities regarding this site.