File:VFPt superconductor ball B-field.svg

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Original file (SVG file, nominally 600 × 600 pixels, file size: 21 KB)

Captions

Captions

Add a one-line explanation of what this file represents

Summary

[edit]
Description
English: Deformation of a previously homogeneous magnetic field around a superconducting ball.
The magnetic field is ejected by the superconductor (Meissner effect).
Date
Source Own work
Author Geek3
Other versions
SVG development
InfoField
 
The SVG code is valid.
 
This plot was created with VectorFieldPlot.
Source code
InfoField

Python code

# paste this code at the end of VectorFieldPlot 1.1
doc = FieldplotDocument('VFPt_superconductor_ball_B-field', width=600, height=600, commons=True)
field_direction = [0.0, -1.0]
ball_radius = 1.2
field = Field({'homogeneous':[field_direction],
    'dipoles':[[0, 0, -2*pi*ball_radius**3*field_direction[0], -2*pi*ball_radius**3*field_direction[1]]]})
n = 20
for i in range(n):
    a = -3 + 6 * (0.5 + i) / n
    line = FieldLine(field, [a, 6], maxr=12, pass_dipoles=1)
    doc.draw_line(line, arrows_style={'min_arrows':2, 'max_arrows':2, 'offsets':4 * [0.3]})
# draw the superconducting ball
ball = doc.draw_object('g', {'id':'metal_ball'})
grad = doc.draw_object('radialGradient', {'id':'metal_spot', 'cx':'0.53', 'cy':'0.54',
    'r':'0.55', 'fx':'0.65', 'fy':'0.7', 'gradientUnits':'objectBoundingBox'}, group=ball)
for col, of in (('#fff', 0), ('#e7e7e7', 0.15), ('#ddd', 0.25), ('#aaa', 0.7), ('#888', 0.9), ('#666', 1)):
    doc.draw_object('stop', {'offset':of, 'stop-color':col}, group=grad)
doc.draw_object('circle', {'cx':0, 'cy':0, 'r':str(ball_radius),
    'style':'fill:url(#metal_spot); stroke:#000; stroke-width:0.02'}, group=ball)
doc.write()

Licensing

[edit]
I, the copyright holder of this work, hereby publish it under the following licenses:
GNU head Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled GNU Free Documentation License.
w:en:Creative Commons
attribution
This file is licensed under the Creative Commons Attribution 3.0 Unported license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
You may select the license of your choice.

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current13:39, 24 July 2010Thumbnail for version as of 13:39, 24 July 2010600 × 600 (21 KB)Geek3 (talk | contribs)VFPt_superconductor_ball_B-field

File usage on other wikis

The following other wikis use this file:

Metadata