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.
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!
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?
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.
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!
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?..
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.
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.
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.