magpar_scripts Namespace Reference

Data Structures

class  Vector
class  TestVectorClass
class  Line
class  TestLineClass
class  Segment
class  Polygon
class  TestPolygonClass
class  TestBiotSavart
class  Test_external_field_wire

Functions

def initialize_magnetization_mx
def initialize_magnetization_my
def initialize_magnetization_mz
def initialize_magnetization_111
def initialize_magnetization_theta_rad
def initialize_magnetization_theta_deg
def initialize_magnetization_phi_rad
def initialize_magnetization_phi_deg
def initialize_magnetization_random
def initialize_magnetization_flower
def vortex
def initialize_magnetization_vortex
def initialize_magnetization_blochwall
def initialize_magnetization_head_to_head_transverse
def initialize_magnetization_head_to_head_vortex
def external_field_homogeneous
def external_field_time_scaling
def test_straight_poly
def biot_savart
def field_of_wire_slow
def field_of_wire
def initmag
def hext_xyz2
def hext_xyzt
def timing
def test_function_2col
def misc3
def wire_z
def hext_f
def hext_xyz

Variables

tuple coils = wire_z()

Function Documentation

def magpar_scripts::biot_savart (   current_A,
  r,
  ds 
)
Calculate magnetic field according to Biot-Savart law

dB=mu0*I/(4 pi)* (ds x r)/r^3

http://en.wikipedia.org/wiki/Biot-Savart_law
http://maxwell.byu.edu/~spencerr/websumm122/node70.html
http://hyperphysics.phy-astr.gsu.edu/HBASE/magnetic/magcur.html#c2

Definition at line 476 of file magpar_scripts.py.

def magpar_scripts::external_field_homogeneous (   r,
  theta_deg = 0.0,
  phi_deg = 0.0,
  amp_T = 0.0 
)

Definition at line 365 of file magpar_scripts.py.

def magpar_scripts::external_field_time_scaling (   t_ns  ) 

Definition at line 378 of file magpar_scripts.py.

def magpar_scripts::field_of_wire (   wire,
  current_A,
  r 
)

Definition at line 516 of file magpar_scripts.py.

def magpar_scripts::field_of_wire_slow (   wire,
  current_A,
  r 
)

Definition at line 506 of file magpar_scripts.py.

def magpar_scripts::hext_f (   t_ns  ) 

Definition at line 614 of file magpar_scripts.py.

def magpar_scripts::hext_xyz (   x,
  y,
  z 
)
Set external field with desired function called in here.

This function must be defined after all the external_field_* functions!

Definition at line 632 of file magpar_scripts.py.

def magpar_scripts::hext_xyz2 (   x,
  y,
  z 
)
Set external field with desired function called in here.

This function must be define after all the external_field_* functions!

Definition at line 551 of file magpar_scripts.py.

def magpar_scripts::hext_xyzt (   x,
  y,
  z,
  t_ns 
)
Set external field with desired function called in here.

This function must be define after all the external_field_* functions!

Definition at line 561 of file magpar_scripts.py.

def magpar_scripts::initialize_magnetization_111 (   r  ) 

Definition at line 222 of file magpar_scripts.py.

def magpar_scripts::initialize_magnetization_blochwall (   r,
  xpos = 0.0,
  width = 0.1 
)
Bloch wall (parallel to y-z plane)

Definition at line 316 of file magpar_scripts.py.

def magpar_scripts::initialize_magnetization_flower (   r,
  c = Vector([0.0,0.0,
  f = 1.0 
)
Approximate flower state (around z-axis)

Definition at line 260 of file magpar_scripts.py.

def magpar_scripts::initialize_magnetization_head_to_head_transverse (   x,
  y,
  z,
  xpos = 0.0,
  width = 0.1 
)
Transverse head-to-head wall

Definition at line 331 of file magpar_scripts.py.

def magpar_scripts::initialize_magnetization_head_to_head_vortex (   r,
  xpos = 0.0,
  width = 0.1 
)
Approximate vortex head-to-head wall

Head-to-head vortex wall at (0, 0) with radius R
if R>0, then vortex is clockwise in xy plane.
if R<0, then vortex is counter-clockwise in xy plane.
center of vortex points in -z direction.

Definition at line 346 of file magpar_scripts.py.

def magpar_scripts::initialize_magnetization_mx (   r  ) 

Definition at line 207 of file magpar_scripts.py.

def magpar_scripts::initialize_magnetization_my (   r  ) 

Definition at line 212 of file magpar_scripts.py.

def magpar_scripts::initialize_magnetization_mz (   r  ) 

Definition at line 217 of file magpar_scripts.py.

def magpar_scripts::initialize_magnetization_phi_deg (   r,
  phi_deg = 0 
)

Definition at line 245 of file magpar_scripts.py.

def magpar_scripts::initialize_magnetization_phi_rad (   r,
  phi = 0 
)
Set magnetization in x-y plane to desired angle

Definition at line 239 of file magpar_scripts.py.

def magpar_scripts::initialize_magnetization_random (   r  ) 
Random magnetization - inaccurate: not uniform on unit sphere!

Definition at line 250 of file magpar_scripts.py.

def magpar_scripts::initialize_magnetization_theta_deg (   r,
  theta_deg = 0 
)

Definition at line 234 of file magpar_scripts.py.

def magpar_scripts::initialize_magnetization_theta_rad (   r,
  theta = 0 
)
Set magnetization in x-z plane to desired angle theta (from z-axis)

Definition at line 228 of file magpar_scripts.py.

def magpar_scripts::initialize_magnetization_vortex (   r,
  c = Vector([0.0,0.0 
)
Approximate vortex state

Definition at line 301 of file magpar_scripts.py.

def magpar_scripts::initmag (   x,
  y,
  z 
)
Initialize magnetization with desired function called in here.

This function must be define after all the initialize_magnetization_* functions!

Definition at line 538 of file magpar_scripts.py.

def magpar_scripts::misc3 (  ) 

Definition at line 601 of file magpar_scripts.py.

def magpar_scripts::test_function_2col (  ) 

Definition at line 588 of file magpar_scripts.py.

def magpar_scripts::test_straight_poly (  ) 

Definition at line 451 of file magpar_scripts.py.

def magpar_scripts::timing (   f,
  n,
  a 
)

Definition at line 579 of file magpar_scripts.py.

def magpar_scripts::vortex (   p,
  R 
)
Approximate vortex state

vortex centered at (cx, cy) with radius R:
if R>0, then vortex is counter-clockwise in xy plane.
if R<0, then vortex is clockwise in xy plane.
center of vortex points in pol*z direction.

Definition at line 270 of file magpar_scripts.py.

def magpar_scripts::wire_z (  ) 

Definition at line 605 of file magpar_scripts.py.


Variable Documentation

tuple magpar_scripts::coils = wire_z()

Definition at line 630 of file magpar_scripts.py.


magpar - Parallel Finite Element Micromagnetics Package
Copyright (C) 2002-2010 Werner Scholz