🛠️ToolsShed

Power Density Converter

Convert between W/m², W/cm², mW/cm², W/in², and kW/m² power density units.

W/m²
1
W/cm²
0.0001
mW/cm²
0.1
W/in²
0.00064516
kW/m²
0.001
Reference Values
1 W/m² ≈ 0.0929 W/ft² ≈ 0.1 mW/cm²
1 kW/m² = 1 W/dm² = 1000 W/m² (solar irradiance at Earth surface ≈ 1 kW/m²)
Safe RF exposure limit (FCC): 1–10 mW/cm²

Pertanyaan yang Sering Diajukan

Implementasi Kode

# Power density unit conversions
CONVERSIONS = {
    'W/m2':   1,
    'W/cm2':  10000,
    'mW/cm2': 10,
    'W/in2':  1550.0031,
    'kW/m2':  1000,
}

def convert_power_density(value: float, from_unit: str, to_unit: str) -> float:
    """Convert between power density units via W/m² base."""
    if from_unit not in CONVERSIONS or to_unit not in CONVERSIONS:
        raise ValueError(f"Unknown unit. Choose from: {list(CONVERSIONS.keys())}")
    return value * CONVERSIONS[from_unit] / CONVERSIONS[to_unit]

# Examples
print(f"1 kW/m² = {convert_power_density(1, 'kW/m2', 'W/m2')} W/m²")
print(f"1000 W/m² = {convert_power_density(1000, 'W/m2', 'mW/cm2')} mW/cm²")
print(f"Solar irradiance (1 kW/m²):")
for unit in CONVERSIONS:
    val = convert_power_density(1, 'kW/m2', unit)
    print(f"  {val:.6g} {unit}")

Comments & Feedback

Comments are powered by Giscus. Sign in with GitHub to leave a comment.