GaussianRandomVectorField#

class pisces.math_utils.random_fields.GaussianRandomVectorField(domain_dimensions: ndarray, bounding_box: ndarray, **kwargs)[source]#

Class for generating Gaussian random vector fields in arbitrary dimensions.

Methods

__init__(domain_dimensions, bounding_box, ...)

compute_grid_arrays()

Compute the meshgrid of spatial coordinates for the random field.

compute_spatial_mgrid(**kwargs)

Compute the meshgrid of spatial coordinates for the random field.

compute_wavenumber_arrays([fft_type])

Compute the 1D wavenumber arrays for each axis of the domain.

compute_wavenumber_mgrid([fft_type])

Compute the meshgrid of wavenumber arrays for the random field.

generate([divergence_cleaning])

Generate a real-space Gaussian random vector field.

Attributes

bbox

Bounding box of the random field.

dd

Domain dimensions of the random field.

dl

Alias for grid_spacing.

envelope_function

Spatial envelope function modulating the field.

field_shape

Shape of the field at each grid point.

grid_range

Range of the grid in each dimension.

grid_spacing

Spacing of the grid in each dimension.

mean_field

Mean field value added to the generated field.

ndim

Number of dimensions of the random field.

power_spectrum

Power spectrum function defining the statistical properties of the field.