In [1]:
%%javascript
IPython.OutputArea.prototype._should_scroll = function(lines) {
return false;
}
In [2]:
# Import packages
from flumyx import *
import numpy as np
import statistics as stats
import matplotlib.pyplot as pl
In [3]:
# Fluvial simulation parameters
trace_level = TL_WARNING # 0: None, 1: Fatal, 2: Error, 3: Warning, 4: Info, 5: Debug
# PARAMETER KEY VALUE
params = {KEY_CHNL_MAX_DEPTH: 40,
KEY_CHNL_WAVELENGTH: 4000}
# Simulation root seed
seed = 665544
# Create simulator
simu = iSimulator.createSimulator()
simu.getParameters().setUsingTurbi()
In [4]:
simu.clear()
print("Running simulation...")
simu.printVersion()
runFlumy(simu, 0, seed=seed, params=params, zul=50, trace_level=trace_level, keep=False)
print("Simulation finished!")
Running simulation... Simulation finished!
In [5]:
fac,grain,age = getSlice(simu,10) # Slice at z=10m
print(type(fac))
<class 'numpy.ndarray'>
In [6]:
showSection(fac, title="Slice at 10m", legend=1, full_legend=True)