expand_grid_model#

emg3d.models.expand_grid_model(model, expand, interface)[source]#

Expand model and grid according to provided parameters.

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

The provided properties are taken as isotropic (as is the case in water and air); 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
modelModel

The model; a emg3d.models.Model instance.

expandlist

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

interfacefloat

Interface between the two properties in expand.

Returns
exp_gridTensorMesh

Expanded grid; a emg3d.meshes.TensorMesh instance.

exp_modelModel

The expanded model; a emg3d.models.Model instance.