min_cell_width

emg3d.meshes.min_cell_width(skin_depth, pps=3, limits=None, precision=0)[source]

Return the minimum cell width.

The minimum cell width is defined by the desired points per skin depth,

(34)\[\Delta_\text{min} = \text{limits[0]} \le \frac{\delta}{\text{pps}} \le \text{limits[1]} \ .\]

The skin depth \(\delta\) is a function of frequency and conductivity and is given by skin_depth(), Equation (32).

Parameters:
skin_depth : float

Skin depth (m).

pps : int

Points per skin depth.

limits : None, float, or list of two floats

Limits on minimum width:

  • None: No limits.
  • float: Returns limits as dmin.
  • [min, max]: dmin is limited to this range.
precision : int, optional

Precision of the cell width. Provided limits are not rounded. Default is 0, hence meters.

Returns:
dmin : float

Minimum cell width (m).