mag

package
v3.0.12+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2013 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
	Qe     = 1.60217646E-19     // Electron charge in C
)
View Source
const (
	X = 0
	Y = 1
	Z = 2
)

Variables

This section is empty.

Functions

func BruteKernel

func BruteKernel(mesh *data.Mesh, 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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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