fields#

3D fields for magnetic field initiation and other field based tasks.

Functions

parse_value(value, default_units)

Parse an array of values into the correct units.

rot_3d(axis, gx, gy, gz, ang)

Rotates the vector [gx,gy,gz] by an angle ang around a specified axis.

Classes

ClusterField(left_edge, right_edge, ddims[, ...])

param left_edge:

The lower edge of the box [kpc] for each of the dimensions.

GaussianRandomField(left_edge, right_edge, ...)

Class for managing Gaussian random fields.

RadialRandomMagneticField(left_edge, ...[, ...])

TODO: Docstring

RadialRandomMagneticVectorPotential(...[, ...])

TODO: Docstring

RadialRandomVelocityField(left_edge, ...[, ...])

TODO: Docstring

RandomMagneticField(left_edge, right_edge, ...)

TODO: Docstring

RandomMagneticVectorPotential(left_edge, ...)

TODO: Docstring

RandomVelocityField(left_edge, right_edge, ...)

TODO: Docstring