expand_grid_model

emg3d.simulations.expand_grid_model(grid, model, expand, interface)[source]

Expand model and grid according to provided parameters.

Expand the grid and corresponding model in positive z-direction from the end of the grid to the interface with expand[0], and a 100 m thick layer above the interface with expand[1].

The provided properties are taken as isotropic; mu_r and epsilon_r are expanded with ones, if necessary.

The interface is usually the sea-surface, and expand is therefore [property_sea, property_air].

Parameters:
grid : emg3d.meshes.TensorMesh

The grid.

model : emg3d.models.Model

The model.

expand : list

The two properties below and above the interface: [below_interface, above_interface].

interface : float

Interface between the two properties in expand.

Returns:
grid : emg3d.meshes.TensorMesh

Expanded grid.

model : emg3d.models.Model

Expanded model.