as_conductor

pmrf.materials.as_conductor(value) AbstractConductor

Coerce a value into a conductor material.

Accepts an existing AbstractConductor or a scalar conductivity in S/m, which builds a BulkConductor.

Parameters:

value (Any) – The value to coerce.

Returns:

The resulting conductor material.

Return type:

AbstractConductor

Raises:

ValueError – If value falls in the resistivity regime (roughly 1e-8 to 1e-5 ohm-meters for metals) rather than the conductivity regime (roughly 1e5 to 1e8 S/m): the two are fifteen orders of magnitude apart, so there is no ambiguous middle ground. Also raised for 0, which was the old resistivity-based idiom for a perfect conductor and would now silently build the opposite: an infinitely resistive one.