Anisotropic Fractional Brownian field (2)
Code author: Frédéric Richard <frederic.richard_at_univ-amu.fr>
This example shows how to simulate an anisotropic fractional Brownian field with random Hurst smooth-step function.
[1]:
from afbf import tbfield, perfunction
from numpy import array
# Define the field.
hurst = perfunction(ftype='smooth-step', param=2, fname='Hurst function')
topo = perfunction(ftype='smooth-step', param=2, fname='Topothesy function')
Z = tbfield(fname='afbf', topo=topo, hurst=hurst)
Z.hurst.ChangeParameters(fparam=array([0.2, 0.8]))
Z.NormalizeModel()
# Simulate the field.
z = Z.Simulate()
# Display the simulation.
z.Display()
Z.DisplayParameters()


