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 magnetic flux density, a.k.a. magnetic induction.
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 MagneticFluxDensityUnit extends Unit<MagneticFluxDensityUnit>
18  {
19      /** */
20      private static final long serialVersionUID = 20190830;
21  
22      /** The base, with "kg/m2s2A" as the SI signature. */
23      public static final Quantity<MagneticFluxDensityUnit> BASE = new Quantity<>("MagneticFluxDensity", "kg/s2A");
24  
25      /** The SI unit for magnetic flux density is Tesla. */
26      public static final MagneticFluxDensityUnitl#MagneticFluxDensityUnit">MagneticFluxDensityUnit SI = new MagneticFluxDensityUnit()
27              .build(new Unit.Builder<MagneticFluxDensityUnit>().setQuantity(BASE).setId("T").setName("tesla")
28                      .setUnitSystem(UnitSystem.SI_DERIVED).setSiPrefixes(SIPrefixes.UNIT, 1.0).setScale(IdentityScale.SCALE));
29  
30      /** Tesla. */
31      public static final MagneticFluxDensityUnit TESLA = SI;
32  
33      /** mT. */
34      public static final MagneticFluxDensityUnit MILLITESLA = TESLA.deriveLinear(1.0E-3, "mT", "millitesla");
35  
36      /** muT. */
37      public static final MagneticFluxDensityUnit MICROTESLA =
38              TESLA.deriveLinear(1.0E-6, "muT", "microtesla", UnitSystem.SI_DERIVED, "muT", "muT", "\u03BCT");
39  
40      /** nT. */
41      public static final MagneticFluxDensityUnit NANOTESLA = TESLA.deriveLinear(1.0E-9, "nT", "nanotesla");
42  
43      /** Gauss. */
44      public static final MagneticFluxDensityUnit GAUSS = TESLA.deriveLinear(1.0E-4, "G", "Gauss", UnitSystem.CGS);
45  }