pyrfu.pyrf.estimate module#

pyrfu.pyrf.estimate.estimate(what_to_estimate: str, radius: float, length: float | None = None)[source]#

Estimate values for some everyday stuff.

Parameters:
  • what_to_estimate (str) –

    Value to estimate:
    • ”capacitance_disk” estimates the capacitance of a disk

    (requires radius of the disk). * “capacitance_sphere” estimates of a sphere (requires radius of the sphere). * “capacitance_wire” estimates the capacitance of a wire (requires radius and length of the wire). * “capacitance_cylinder” estimates the capacitance of a cylinder (requires radius and half length of the cylinder).

  • radius (float) – Radius of the disk, sphere, wire or cylinder

  • length (float, Optional) – Length of the wire or half lenght of the cylinder.

Returns:

out – Estimated value.

Return type:

float

Examples

>>> from pyrfu import pyrf

Define radius of the sphere in SI units

>>> r_sphere = 20e-2

Computes the capacitance of the sphere

>>> c_sphere = pyrf.estimate("capacitance_sphere", r_sphere)