cell_width#
- emg3d.meshes.cell_width(skin_depth, pps=3, limits=None)[source]#
Return cell width as function of points per skin depth.
The cell width \(\Delta\) is defined by the desired points per skin depth,
(36)#\[\Delta = \Delta_\text{min} \le \frac{\delta}{\text{pps}} \le \Delta_\text{max} \ ,\]to ensure that there are
pps
cells per skin depth (unless restricted bylimits
).The skin depth \(\delta\) is a function of frequency and conductivity and is given by
skin_depth
, Equation (34).- Parameters:
- skin_depthfloat
Skin depth (m).
- ppsfloat
Points per skin depth.
- limits{None, float, array_like}, default: None
Limits on cell width:
None
: No limits.float
: Simply returns thelimits
as cell width.[min, max]
: Cell width is limited to this range.
- Returns:
- cell_widthfloat
Cell width (m).