File:Magnetische-Feldstaerke.svg

Summary

Description
Deutsch: Magnetische Feldstärke eines geraden stromdurchflossenen Leiters für ausgewählte Punkte
Date
Source Own work
Author Menner

Licensing

I, the copyright holder of this work, hereby publish it under the following license:
Creative Commons CC-Zero This file is made available under the Creative Commons CC0 1.0 Universal Public Domain Dedication.
The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.

Category:CC-Zero#Magnetische-Feldstaerke.svgCategory:Self-published work

Octave Source code

count = 24;
dim_x = 1.2;
dim_y = dim_x;
x = linspace(-1. * dim_x, dim_x,count+1);
y = linspace(dim_y,-1. * dim_x,count+1);

[X Y] = meshgrid(x,y);

% X_vec = 0.2 * sin(2 * pi * X);
% Y_vec = 0.2 * sin(2 * pi * Y);

% Y_vec = -0.2 * X;
% X_vec = -0.2 * Y;

Radius = sqrt(X.^2+Y.^2);
% Angle

X_vec = 0.4 * 1. ./ Radius .* (Y./Radius);
Y_vec = -0.4 * 1. ./ Radius .* (X./Radius);


center = (count/2) + 1;

X_vec(center - 2:center +2, center - 1: center + 1) = zeros(5,3);
Y_vec(center - 2:center +2, center - 1: center + 1) = zeros(5,3);
X_vec(center - 1:center +1, center - 2: center + 2) = zeros(3,5);
Y_vec(center - 1:center +1, center - 2: center + 2) = zeros(3,5);

hold on;

plot (X , Y, "x", "color", "k", "markersize", 2. );

quiver(X, Y, X_vec, Y_vec, "linewidth", 1.5, "filled");




%plot (0, 0, "+", "markersize", 20, "linewidth", 5);


plot (0,0, "o", "markersize", 35, "linewidth", 5, "markerfacecolor", "r", "color", "red");

axis ([-1.05 * dim_x, +1.05 * dim_x, -1.05 * dim_y, +1.05 * dim_y], "square");
set (gca(), "linewidth", 2.);


xlabel ("x");
ylabel ("y");
title("Magnetische Feldstärke eines geraden stromdurchflossenen Leiters")

hold off;


print("magnetfeld.svg", "-dsvg", "-S1000,1000")

%printf("Weiter mit beliebiger Taste\n");
%pause;
Category:Magnetic fields around conductors Category:Images with Octave source code Category:Vector fields
Category:CC-Zero Category:Images with Octave source code Category:Magnetic fields around conductors Category:Self-published work Category:Vector fields