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
RandomMaterial.RandomMaterial Class Reference

Random material generator class. More...

Collaboration diagram for RandomMaterial.RandomMaterial:

Public Member Functions

def __init__ (self, grid_level, ndim=2, verbose=0, levelcut_strategy="abs", **kwargs)
 
def set_level (self, vf=None, tau=None)
 
def reseed (self, seed=None)
 
def sample (self, noise=None)
 Generate a realization. More...
 
def generate_samples (self, nsamples=1, path=None, output_format="png", append=False)
 Generate a family of realizations. More...
 
def save_png (self, phase, filename)
 
def save_vtk (self, phase, filename)
 
def test_Covariance (self, nsamples=1000)
 
def test_VolumeFraction (self, nsamples=1000)
 
def test_TwoPointProbability (self, nsamples=1000)
 

Public Attributes

 verbose
 
 ndim
 
 N
 
 Nd
 
 nvoxels
 
 levelcut_strategy
 Level-cut strategy: 'abs' - level-cut of the abs(field) 'sym' - standard level-cut. More...
 
 GRF
 Gaussian Random Field (Intensity) More...
 
 vf
 
 tau
 
 sample_count
 

Detailed Description

Random material generator class.

Constructor & Destructor Documentation

◆ __init__()

def RandomMaterial.RandomMaterial.__init__ (   self,
  grid_level,
  ndim = 2,
  verbose = 0,
  levelcut_strategy = "abs",
**  kwargs 
)

Member Function Documentation

◆ generate_samples()

def RandomMaterial.RandomMaterial.generate_samples (   self,
  nsamples = 1,
  path = None,
  output_format = "png",
  append = False 
)

Generate a family of realizations.

◆ reseed()

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

◆ sample()

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

Generate a realization.

◆ save_png()

def RandomMaterial.RandomMaterial.save_png (   self,
  phase,
  filename 
)

◆ save_vtk()

def RandomMaterial.RandomMaterial.save_vtk (   self,
  phase,
  filename 
)

◆ set_level()

def RandomMaterial.RandomMaterial.set_level (   self,
  vf = None,
  tau = None 
)

◆ test_Covariance()

def RandomMaterial.RandomMaterial.test_Covariance (   self,
  nsamples = 1000 
)

◆ test_TwoPointProbability()

def RandomMaterial.RandomMaterial.test_TwoPointProbability (   self,
  nsamples = 1000 
)

◆ test_VolumeFraction()

def RandomMaterial.RandomMaterial.test_VolumeFraction (   self,
  nsamples = 1000 
)

Member Data Documentation

◆ GRF

RandomMaterial.RandomMaterial.GRF

Gaussian Random Field (Intensity)

◆ levelcut_strategy

RandomMaterial.RandomMaterial.levelcut_strategy

Level-cut strategy: 'abs' - level-cut of the abs(field) 'sym' - standard level-cut.

◆ N

RandomMaterial.RandomMaterial.N

◆ Nd

RandomMaterial.RandomMaterial.Nd

◆ ndim

RandomMaterial.RandomMaterial.ndim

◆ nvoxels

RandomMaterial.RandomMaterial.nvoxels

◆ sample_count

RandomMaterial.RandomMaterial.sample_count

◆ tau

RandomMaterial.RandomMaterial.tau

◆ verbose

RandomMaterial.RandomMaterial.verbose

◆ vf

RandomMaterial.RandomMaterial.vf

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