interp_edges_to_vol_averages¶
-
emg3d.maps.
interp_edges_to_vol_averages
(ex, ey, ez, volumes, ox, oy, oz)[source]¶ Interpolate fields defined on edges to volume-averaged cell values.
- Parameters
- ex, ey, ezndarray
Electric fields in x-, y-, and z-directions from a
emg3d.fields.Field
instance (field.f{x;y;z}
).- volumesndarray
Cell volumes of the corresponding grid (
field.grid.cell_volumes
).- ox, oy, ozndarray
Output arrays where the results are placed (of shape
field.grid.shape_cells
).