Computer Science – Graphics
Scientific paper
Dec 2006
adsabs.harvard.edu/cgi-bin/nph-data_query?bibcode=2006aas...209.6004p&link_type=abstract
2007 AAS/AAPT Joint Meeting, American Astronomical Society Meeting 209, #60.04; Bulletin of the American Astronomical Society, V
Computer Science
Graphics
Scientific paper
A simple Visual Basic (VB) to VPython interface is described and illustrated with the example of a charged particle in a magnetic field. This interface allows data to be passed to Python through a text file read by Python. The first component of the interface is a user-friendly data entry screen designed in VB, in which the user can input values of the charge, mass, initial position and initial velocity of the particle, and the magnetic field. Next, a command button is coded to write these values to a text file. Another command button starts the VPython program, which reads the data from the text file, numerically solves the equation of motion, and provides the 3d graphics animation. Students can use the interface to run the program several times with different data and observe changes in the motion.
No associations
LandOfFree
Visual Basic VPython Interface: Charged Particle in a Magnetic Field does not yet have a rating. At this time, there are no reviews or comments for this scientific paper.
If you have personal experience with Visual Basic VPython Interface: Charged Particle in a Magnetic Field, we encourage you to share that experience with our LandOfFree.com community. Your opinion is very important and Visual Basic VPython Interface: Charged Particle in a Magnetic Field will most certainly appreciate the feedback.
Profile ID: LFWR-SCP-O-1157580