Cut a 3D scalar
Exercise 01
"""
Created on Fri May 24 09:31:52 2024
@author: lorenzo piu
"""Import module and define array
>>> from aPrioriDNS.DNS import Scalar3D>>> import numpy as np
>>> shape = [30, 20, 15]
>>> array = np.random.rand(*shape)Define Scalar3D object
>>> scalar = Scalar3D(shape=shape, value=array)
>>> print(f'Initial shape:\n{scalar.shape}')
Initial shape:
(30, 20, 15)Cut scalar
Use Scalar3D in light_mode
Last updated