{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Ions\n", "\n", "You can use the `Ion` class to work with ions instead of elements. Ions can be created from elements and charge information." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "from mendeleev.ion import Ion" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "fe_2 = Ion(\"Fe\", 2)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "You can access variety of properties of the ion" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "fe_2.charge" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "fe_2.electrons" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "fe_2.Z" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "fe_2.name" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "you can also print the unicode ion symbol" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "fe_2.unicode_ion_symbol()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Ionic radii for this ion are available under `radius` attribute" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "fe_2.radius" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Appropriate value of ionization energy and electron affinity are available under `ie` and `ea` attributes" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "fe_2.ie" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "fe_2.ea" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "compute ionic potential" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "fe_2.ionic_potential()" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.8.1" } }, "nbformat": 4, "nbformat_minor": 4 }