View Javadoc
1   package org.djunits.unit;
2   
3   import org.djunits.quantity.Quantity;
4   import org.djunits.unit.scale.IdentityScale;
5   import org.djunits.unit.si.SIPrefixes;
6   import org.djunits.unit.unitsystem.UnitSystem;
7   
8   /**
9    * The units of electrical capacitance.
10   * <p>
11   * Copyright (c) 2015-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br>
12   * BSD-style license. See <a href="https://djunits.org/docs/license.html">DJUNITS License</a>.
13   * </p>
14   * version May 15, 2014 <br>
15   * @author <a href="https://www.tudelft.nl/p.knoppers">Peter Knoppers</a>
16   */
17  public class ElectricalInductanceUnit extends Unit<ElectricalInductanceUnit>
18  {
19  
20      /** */
21      private static final long serialVersionUID = 20190830;
22  
23      /** The base, with "kgm2/s2/A2" as the SI signature. */
24      public static final Quantity<ElectricalInductanceUnit> BASE = new Quantity<>("ElectricalInductance", "kgm2/s2A2");
25  
26      /** The SI unit for electrical inductance is Henry. */
27      public static final ElectricalInductanceUnit SI = new ElectricalInductanceUnit()
28              .build(new Unit.Builder<ElectricalInductanceUnit>().setQuantity(BASE).setId("H").setName("henry")
29                      .setUnitSystem(UnitSystem.SI_DERIVED).setSiPrefixes(SIPrefixes.UNIT, 1.0).setScale(IdentityScale.SCALE));
30  
31      /** Henry. */
32      public static final ElectricalInductanceUnit HENRY = SI;
33  
34      /** mH. */
35      public static final ElectricalInductanceUnit MILLIHENRY = HENRY.deriveLinear(1.0E-3, "mH", "millihenry");
36  
37      /** muH. */
38      public static final ElectricalInductanceUnit MICROHENRY =
39              HENRY.deriveLinear(1.0E-6, "muH", "microhenry", UnitSystem.SI_DERIVED, "muH", "muH", "\u03BCH");
40  
41      /** nH. */
42      public static final ElectricalInductanceUnit NANOHENRY = HENRY.deriveLinear(1.0E-9, "nH", "nanohenry");
43  }