Model Python Object#
Full name: geomodelgrids.create.core.model.Model
Data Members#
top_surface (Surface) Surface for top of model.
topo_bathy (Surface) Surface for top of solid material.
blocks (list of Block) Blocks in model.
config (dict) Model parameters.
storage (HDF5) Interface for storing model.
metadata (ModelMetadata) Model metadata.
Methods#
Model(config)#
Constructor.
config[in] (dict) Model parameters.
save_domain()#
Write domain information to storage.
init_top_surface()#
Create top_surface
in storage
save_top_surface(elevation, batch=None)#
Write top_surface
information to storage.
elevation[in] (numpy.array [Nx, Ny]) Elevation of top surface.
batch[in] (BatchGenerator2D) Current batch of surface points.
init_topography_bathymetry()#
Create topography/bathymetry in storage.
save_topography_bathymetry(elevation, batch=None)#
Write topography_bathymetry
information to storage.
elevation[in] (numpy.array [Nx, Ny]) Elevation of topography/bathymetry surface.
batch[in] (BatchGenerator2D) Current batch of surface points.
init_block(block)#
Create block in storage.
block[in] (Block) Block information.
save_block(block, values, batch=None)#
Write block information to storage.
block[in] (Block) Block information.
values[in] (numpy.array [Nx, Ny, Nz, Nv]) Gridded data associated with block.
batch[in] (BatchGenerator3D) Current batch of points in domain.
update_metadata()#
Update all metadata for model using current model configuration.
get_attributes()#
Get attributes for model.
returns Tuple of model attributes.