View Javadoc
1   package org.djunits.unit;
2   
3   import org.djunits.unit.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-2020 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 ElectricalCapacitanceUnit extends Unit<ElectricalCapacitanceUnit>
18  {
19  
20      /** */
21      private static final long serialVersionUID = 20190830;
22  
23      /** The base, with "s3A2/kgm2" as the SI signature. */
24      public static final Quantity<ElectricalCapacitanceUnit> BASE = new Quantity<>("ElectricalCapacitance", "s4A2/kgm2");
25  
26      /** The SI unit for electrical capacitance is Farad. */
27      public static final ElectricalCapacitanceUnitl#ElectricalCapacitanceUnit">ElectricalCapacitanceUnit SI = new ElectricalCapacitanceUnit()
28              .build(new Unit.Builder<ElectricalCapacitanceUnit>().setQuantity(BASE).setId("F").setName("farad")
29                      .setUnitSystem(UnitSystem.SI_DERIVED).setSiPrefixes(SIPrefixes.UNIT, 1.0).setScale(IdentityScale.SCALE));
30  
31      /** Farad. */
32      public static final ElectricalCapacitanceUnit FARAD = SI;
33  
34      /** mF. */
35      public static final ElectricalCapacitanceUnit MILLIFARAD = FARAD.deriveLinear(1.0E-3, "mF", "millifarad");
36  
37      /** uF. */
38      public static final ElectricalCapacitanceUnit MICROFARAD =
39              FARAD.deriveLinear(1.0E-6, "muF", "microfarad", UnitSystem.SI_DERIVED, "uF", "uF", "\u03BCF", "muF");
40  
41      /** nF. */
42      public static final ElectricalCapacitanceUnit NANOFARAD = FARAD.deriveLinear(1.0E-9, "nF", "nanofarad");
43  
44      /** pF. */
45      public static final ElectricalCapacitanceUnit PICOFARAD = FARAD.deriveLinear(1.0E-12, "pF", "picofarad");
46  
47  }