mag

package
v3.4.0-beta1+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 20, 2014 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Gamma0 = 1.7595e11          // Gyromagnetic ratio of electron, in rad/Ts
	Mu0    = 4 * math.Pi * 1e-7 // Permeability of vacuum in Tm/A
	MuB    = 9.2740091523E-24   // Bohr magneton in J/T
	Kb     = 1.380650424E-23    // Boltzmann's constant in J/K
	Qe     = 1.60217646E-19     // Electron charge in C
)
View Source
const (
	X = 0
	Y = 1
	Z = 2
)

Variables

This section is empty.

Functions

func DemagKernel

func DemagKernel(inputSize, pbc [3]int, cellsize [3]float64, accuracy float64) (kernel [3][3]*data.Slice)

Calculates the magnetostatic kernel by brute-force integration of magnetic charges over the faces and averages over cell volumes. Mesh should NOT yet be zero-padded.

func MFMKernel

func MFMKernel(mesh *d.Mesh, lift, tipsize float64) (kernel [3]*d.Slice)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL