as_conductor
- pmrf.materials.as_conductor(value) AbstractConductor
Coerce a value into a conductor material.
Accepts an existing
AbstractConductoror a scalar conductivity in S/m, which builds aBulkConductor.- Parameters:
value (Any) – The value to coerce.
- Returns:
The resulting conductor material.
- Return type:
- Raises:
ValueError – If
valuefalls 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 for0, which was the old resistivity-based idiom for a perfect conductor and would now silently build the opposite: an infinitely resistive one.