File:Ideal-solenoid-field-3D.png

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

Original file(3,200 × 2,080 pixels, file size: 592 KB, MIME type: image/png)

Captions

Captions

Add a one-line explanation of what this file represents

Summary[edit]

Description
English: 3D surface plot of the absolute magnetic field strength around an ideal solenoid of radius 1 and length 4.
Date
Source Own work
 
This diagram was created with Mathematica.
Author Geek3
Other versions Ideal-solenoid-field-3D-2.png

Mathematica source code[edit]

Bx[x_, z_, R_, L_] = 
  If[Abs[x] < 10^-5, 0, 
   1/(4 Pi L) Sum[(\[Beta] = (x + R)^2 + (z - s L/2)^2;
      m = (4 x*R)/\[Beta];
      s Sqrt[\[Beta]]/
        x ((2 - m) EllipticK[m] - 2 EllipticE[m])), {s, {-1, 1}}]];
Bz[x_, z_, R_, L_] = (x1 = -Abs[x]; 
   2/(4 Pi L) Sum[(\[Beta] = (x1 + R)^2 + (z - s L/2)^2;
      m = 4 x1*R/\[Beta];
      s (z - s L/2)/
        Sqrt[\[Beta]] ((((x1 - R)/(x1 + R) EllipticPi[
              4 x1 R/(x1 + R)^2, m]) /. Indeterminate -> 0) - 
         EllipticK[m])), {s, {-1, 1}}]);
R = 1; L = 4;
plot = Plot3D[
  Sqrt[Bx[x, z, R, L]^2 + Bz[x, z, R, L]^2] L, {x, -3, 3}, {z, -4, 4},
   PlotRange -> {0, 1}, BoxRatios -> {6, 8, 3}, 
  AxesLabel -> {"\[Rho]", "z", "B"}, 
  AxesEdge -> {{-1, -1}, {1, -1}, {1, 1}}, PlotPoints -> 200, 
  MaxRecursion -> 6, ImageSize -> 800, 
  Exclusions -> {{Abs[x] == R, Abs[z] < L/2}}, 
  ExclusionsStyle -> {None, Black}, ClippingStyle -> Black, 
  Mesh -> {11, 15, Range[0, 1, 0.1]}, MeshFunctions -> {#1 &, #2 &, #3 &}, 
  MeshStyle -> {Black, Black, {Gray, Thickness[0.002]}}, 
  ColorFunction -> (Directive[Specularity[0.5, 16], 
      Glow@ColorData["DarkRainbow"][#3]] &), 
  Lighting -> {{"Spot", White, {0, -5, 10}, {Pi/4, 50}}, {"Spot", 
     White, {-9, 5, 4}, {Pi/4, 150}}, {"Spot", 
     White, {-5, -10, 3}, {Pi/4, 100}}, {"Spot", 
     White, {-7, 6, 10}, {Pi/4, 100}}}, BaseStyle -> {FontSize -> 20},
   ViewPoint -> {3, -4, 2}]
SetDirectory[NotebookDirectory[]];
Export["Ideal-solenoid-field-3D.png", plot, ImageResolution -> 300];

Licensing[edit]

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International 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.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.

File history

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

Date/TimeThumbnailDimensionsUserComment
current23:10, 12 December 2017Thumbnail for version as of 23:10, 12 December 20173,200 × 2,080 (592 KB)Geek3 (talk | contribs)thicker z-level lines
17:18, 10 December 2017Thumbnail for version as of 17:18, 10 December 20173,200 × 2,080 (601 KB)Geek3 (talk | contribs)lines around excluded area at the side of the coil.
16:51, 10 December 2017Thumbnail for version as of 16:51, 10 December 20173,200 × 2,080 (600 KB)Geek3 (talk | contribs)User created page with UploadWizard

There are no pages that use this file.

Metadata