Important alert: (current site time 7/16/2013 2:10:54 AM EDT)
 

winzip icon

Magrid 1.0, A 3D magnetic field line rendering program

Email
Submitted on: 10/17/2012 12:27:48 PM
By: RandyT_CS 
Level: Advanced
User Rating: By 5 Users
Compatibility: VB 6.0
Views: 4923
(About the author)
 
     This program is still in development mode and far from being finished. I am posting it here to allow members of www.talk-pollywell.org to download and examine the program’s source code. The source code is written in the Visual Basic 6.0 programming language.

 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
  3. Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 6 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Advanced category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments

10/18/2012 12:31:49 AMBonnie West

The code's excellent even at this stage!
(If this comment was disrespectful, please report it.)

 
10/22/2012 6:39:36 AMRandyT_CS

Link in the program's description was misspelled.
Should be: www.talk-polywell.org
(If this comment was disrespectful, please report it.)

 
10/27/2012 6:32:26 PMRandyT_CS

In relation to calculating 3D magnetic field lines, the most important module in my program is: “modNDSolve.bas.” This (ASCII text) file contains the basic procedure I use to calculate the endpoints of each sequential streamline segment – everything else is just 3D support code.
(If this comment was disrespectful, please report it.)

 
11/1/2012 7:29:40 AMThePiper

Thanks a lot! An excellent application; very impressive in every respect! I'm wondering how you have realized all the math/graphic feautures.
(If this comment was disrespectful, please report it.)

 
11/3/2012 8:25:09 AMRandyT_CS

Piper, it’s simple…

I believe that Dr. Bussard’s Polywell Fusion concept is very worthy of further investigation. I was looking for how to plot 3D magnetic field lines related to the polywell fusion concept but I needed to find someone well versed in basic 3D graphics first, such as “EGL” (I learned the basics of 3D graphics from his examples on Planet Source Code.) From there I used “Google” to search about different/(more efficient) ways of doing things… That’s all.

In the end we ALL need an alternative source of energy, other than petroleum (fossil fuels.)

I’ve been friends with many people around the world… And in my experience we’re all the SAME. It’s OUR world. It’s all about sharing… Who knows – Some kid in India may just see this post and understand it so quickly that she/he gives free energy to us all.

~Randy

(If this comment was disrespectful, please report it.)

 
12/8/2012 9:24:07 PMA. G. Violette

Randy,

I get a compile error "Invalid Procedure Call" on this line in your control:

Private Sub UpdateUnits(unitName As String, newVal As Double)
Dim divisor As Double
Dim ndx As Integer
Dim tmpDbl As Double

divisor = UnitCol(unitName).defVal <<<<<< HERE

I'm running VB6 on Windows 7
(If this comment was disrespectful, please report it.)

 
12/14/2012 12:12:03 AMRandyT_CS

“A. G. Violette”, Here’s a fix:
(1)Select and then delete the LengthControl from the “frmMagrid“ form; It’s the control located just to the right-hand side of the “Magrid Physical Radius: “ label. Replace it with a Textbox named: “txtMagridRadiusMeters” having a default (design time) Text value of: “0.1524”. Note, (0.1524 meters = 6.0 inches).
(2)Replace all occurrences of “lenCtlMagridRadius.cur_meter” in the project with “val(txtMagridRadiusMeters.Text)”.
(3)In the “frmMagrid“ form code rename the routine “Private Sub lenCtlMagridRadius_TboxKeyPress(KeyAscii As Integer)” to “Private Sub txtMagridRadiusMeters_KeyPress(KeyAscii As Integer)”.
(4)Remove both the “LengthControl” user-control module and the “UnitElementCls” class module from the project.
(5)You should then be able to compile and run the .exe program.
(If this comment was disrespectful, please report it.)

 
12/14/2012 12:13:37 AMRandyT_CS

Here’s another handy program usage note:

You may right-button-mouse-click and drag the 3d image up and down to zoom the image in and out respectively.

(If this comment was disrespectful, please report it.)

 
12/24/2012 7:47:39 AMRandyT_CS

“A. G. Violette”, Here’s a fix:

(1)Delete the LengthControl from the form and replace it with a Textbox named: “txtMagridRadiusMeters” having a .Text value of: “0.1524” (0.1524 meters = 6.0 inches).
(2)Replace all occurrences of “lenCtlMagridRadius.cur_meter” in the project with “val(txtMagridRadiusMeters.Text)”.
(3)In the “frmMagrid“ form code rename the routine “Private Sub lenCtlMagridRadius_TboxKeyPress(KeyAscii As Integer)” to “Private Sub txtMagridRadiusMeters_KeyPress(KeyAscii As Integer)”.
(4)Remove both the “LengthControl” user-control module and the “UnitElementCls” class module from the project.

You should then be able to compile and run the .exe program.
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.