fields.GaussianRandomField#
- class fields.GaussianRandomField(left_edge, right_edge, ddims, l_min, l_max, padding=0.1, alpha=-3.6666666666666665, g_rms=1.0, ctr1=None, ctr2=None, ctr3=None, r1=None, r2=None, r3=None, g1=None, g2=None, g3=None, vector_potential=False, divergence_clean=False, prng=None, r_max=None)[source]#
Class for managing Gaussian random fields.
Methods
__init__
(left_edge, right_edge, ddims, ...)map_field_to_particles
(cluster_particles[, ...])Map the 3D field to a set of particles, creating new particle fields.
write_file
(filename[, overwrite, ...])Write the 3D field to a file.
Attributes
The units associated with the field.