chemistry

A Java library for chemistry.

License

License

GroupId

GroupId

eu.hoefel
ArtifactId

ArtifactId

chemistry
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

chemistry
A Java library for chemistry.
Project URL

Project URL

https://github.com/uhoefel/chemistry
Source Code Management

Source Code Management

https://github.com/uhoefel/chemistry/tree/master

Download chemistry

How to add to project

<!-- https://jarcasting.com/artifacts/eu.hoefel/chemistry/ -->
<dependency>
    <groupId>eu.hoefel</groupId>
    <artifactId>chemistry</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/eu.hoefel/chemistry/
implementation 'eu.hoefel:chemistry:1.0.0'
// https://jarcasting.com/artifacts/eu.hoefel/chemistry/
implementation ("eu.hoefel:chemistry:1.0.0")
'eu.hoefel:chemistry:jar:1.0.0'
<dependency org="eu.hoefel" name="chemistry" rev="1.0.0">
  <artifact name="chemistry" type="jar" />
</dependency>
@Grapes(
@Grab(group='eu.hoefel', module='chemistry', version='1.0.0')
)
libraryDependencies += "eu.hoefel" % "chemistry" % "1.0.0"
[eu.hoefel/chemistry "1.0.0"]

Dependencies

compile (4)

Group / Artifact Type Version
org.junit.jupiter : junit-jupiter-api jar 5.7.0
org.openjfx : javafx-web jar 15
eu.hoefel : jatex jar 1.0.0
eu.hoefel : utils jar 0.1.2

test (3)

Group / Artifact Type Version
org.junit.jupiter : junit-jupiter-engine jar 5.7.0
org.junit.jupiter : junit-jupiter-params jar 5.7.0
org.junit.platform : junit-platform-launcher jar 1.7.0

Project Modules

There are no modules declared in this project.

Chemistry

DOI

Chemistry is a Java library designed to handle chemical types. It has enums for all nuclides (i.e., all elements and isotopes) and provides a type for molecules (which needs an internet connection). The molecule types provides an implementation for the Texable interface from the jatex module, such that it can easily return proper LaTeX code.

Some examples:

Molecule m = new Molecule("magnesium dioxide");
m.iupac(); // gets the official IUPAC name

Isotope.ofElement(Element.Ar); // the list of argon isotopes
Isotope.named("deuterium"); // gets the enum value for deuterium

Element.get(ElementCategory.ALKALI_METAL); // gets all alkali metals
Element.Og.isotopes(); // gets the isotopes of oganesson
Element.He.group(); // gets the IUPAC group number of helium

Installation

The artifact can be found at maven central:

<dependency>
    <groupId>eu.hoefel</groupId>
    <artifactId>chemistry</artifactId>
    <version>1.0.0</version>
</dependency>

Requirements

Chemistry is designed to work with Java 15+. It needs preview-features enabled.

Versions

Version
1.0.0