KratosMultiphysics
KRATOS Multiphysics (Kratos) is a framework for building parallel, multi-disciplinary simulation software, aiming at modularity, extensibility, and high performance. Kratos is written in C++, and counts with an extensive Python interface.
Public Member Functions | Public Attributes | List of all members
GaussianRandomField.GaussianRandomField Class Reference

Gaussian Random Field generator class. More...

Inheritance diagram for GaussianRandomField.GaussianRandomField:
Collaboration diagram for GaussianRandomField.GaussianRandomField:

Public Member Functions

def __init__ (self, grid_level, grid_shape=None, grid_dimensions=[1.0, 1.0, 1.0], ndim=2, window_margin=0, sampling_method='fft', verbose=0, **kwargs)
 
def setSamplingMethod (self, method, **kwargs)
 
def reseed (self, seed=None)
 Reseed pseudo-random number generator. More...
 
def sample_noise (self, grid_shape=None)
 Sample noise. More...
 
def sample (self, noise=None)
 Sample GRF. More...
 

Public Attributes

 verbose
 
 ndim
 
 all_axes
 
 grid_shape
 
 L
 
 ext_grid_shape
 Extended window (NOTE: extension is done outside) More...
 
 nvoxels
 
 DomainSlice
 
 Covariance
 Covariance. More...
 
 prng
 Sampling method. More...
 
 noise_std
 
 method
 
 Correlate
 

Detailed Description

Gaussian Random Field generator class.

Constructor & Destructor Documentation

◆ __init__()

def GaussianRandomField.GaussianRandomField.__init__ (   self,
  grid_level,
  grid_shape = None,
  grid_dimensions = [1.0,1.0,1.0],
  ndim = 2,
  window_margin = 0,
  sampling_method = 'fft',
  verbose = 0,
**  kwargs 
)

Member Function Documentation

◆ reseed()

def GaussianRandomField.GaussianRandomField.reseed (   self,
  seed = None 
)

Reseed pseudo-random number generator.

◆ sample()

def GaussianRandomField.GaussianRandomField.sample (   self,
  noise = None 
)

Sample GRF.

◆ sample_noise()

def GaussianRandomField.GaussianRandomField.sample_noise (   self,
  grid_shape = None 
)

Sample noise.

◆ setSamplingMethod()

def GaussianRandomField.GaussianRandomField.setSamplingMethod (   self,
  method,
**  kwargs 
)

Member Data Documentation

◆ all_axes

GaussianRandomField.GaussianRandomField.all_axes

◆ Correlate

GaussianRandomField.GaussianRandomField.Correlate

◆ Covariance

GaussianRandomField.GaussianRandomField.Covariance

Covariance.

◆ DomainSlice

GaussianRandomField.GaussianRandomField.DomainSlice

◆ ext_grid_shape

GaussianRandomField.GaussianRandomField.ext_grid_shape

Extended window (NOTE: extension is done outside)

◆ grid_shape

GaussianRandomField.GaussianRandomField.grid_shape

◆ L

GaussianRandomField.GaussianRandomField.L

◆ method

GaussianRandomField.GaussianRandomField.method

◆ ndim

GaussianRandomField.GaussianRandomField.ndim

◆ noise_std

GaussianRandomField.GaussianRandomField.noise_std

◆ nvoxels

GaussianRandomField.GaussianRandomField.nvoxels

◆ prng

GaussianRandomField.GaussianRandomField.prng

Sampling method.

◆ verbose

GaussianRandomField.GaussianRandomField.verbose

The documentation for this class was generated from the following file: