Chemistry
These are Apas Cloud services: they run on our servers for a signed-in member. The examples below are shown already made; sign in to edit and run your own.
Visual models
molecule Apas Cloud
Draws a molecular structure from SMILES using validated atom and bond connectivity; skeletal carbon labels are omitted by convention. Rings are drawn as textbooks draw them (fused, spiro and bridged systems flat; bicyclo[2.2.2] with its bridge inside), chains in a zigzag with sp atoms straight. A double bond written with the SMILES marks is drawn cis or trans as written: `C/C=C\\C` is cis (a doubled backslash is read as one), `C/C=C/C` is trans.
smiles (string) -- SMILES such as CCO, c1ccccc1, or [Na+].[Cl-]
moleculeSmiles Apas Cloud
Explicit name for molecule(): parses SMILES into a validated chemical graph and lays it out as a diagram.
smiles (string) -- SMILES with branches, rings, aromatic bonds, isotopes, charges, stereochemistry, or disconnected ions
moleculeMolfile Apas Cloud
Parses MDL Molfile V2000 connectivity and draws the validated molecular graph. Coordinates in the file are currently relaid out consistently by gtgraphics.
molfile (string) -- complete Molfile V2000 text
lewisDiagram Apas Cloud
Draws a Lewis structure from a supported molecular formula, with bonds, formal charges and colored lone-pair electron dots. A lone carbon with hydrogen about is the centre (HCN, H2CO).
formula (string) -- a formula supported by the gtchemistry molecular picture catalogue, such as H2O, CO or CO3^2-
vsepr Apas Cloud
Draws a school-level VSEPR molecule shape with central-atom lone pairs from a supported formula, such as H2O or NH3. Shapes in 3D are drawn as in the textbook: bonds in the page as lines, a bond towards you as a solid wedge, one away from you as a hashed wedge (CH4, NH3, PCl5, SF6). Formula alone cannot identify every molecular structure.
formula (string) -- a formula supported by the gtchemistry VSEPR picture catalogue
vseprPanel Apas Cloud
Shows two to four labeled VSEPR structures together in one compact comparison panel. The panel widens to the molecules drawn, so three large ones (BF3, PCl5, SF6) keep their lone pairs apart.
formula (string) -- a supported single-central-atom formula; provide two to four formulas
molecule3d Apas Cloud
Draws a molecule with one central atom as a 3D ball-and-stick model: shaded balls, bonds, lone pairs as clouds with two dots, and an arc for each different bond angle. The directions are the VSEPR shape's; NH3 and H2O close to their measured 107° and 104.5°. Change yaw from frame to frame to turn it.
formula (string) -- a single-central-atom formula, such as CH4, NH3, SF4 or XeF4
yaw (number) -- optional: degrees turned about the vertical axis (20)
pitch (number) -- optional: degrees tipped towards you about the horizontal axis (15)
molecule3dMorph Apas Cloud
One shape turning into another with the same number of electron pairs, as a 3D ball-and-stick model: each bond or lone pair moves along a great circle to its new place, and a bond that becomes a lone pair fades out as the pair fades in. The angle arcs follow the angle as it changes.
from (string) -- the starting formula, such as CH4
to (string) -- the final formula, with the same number of electron domains, such as NH3
t (number) -- how far along, from 0 (from) to 1 (to)
yaw (number) -- optional: degrees turned about the vertical axis (20)
pitch (number) -- optional: degrees tipped towards you about the horizontal axis (15)
ionicLattice Apas Cloud
Draws a colored checkerboard plane section of an alternating ionic crystal; this shows a lattice slice, not an isolated ion pair.
cation (string) -- cation label, such as Na⁺
anion (string) -- anion label, such as Cl⁻
rows (integer) -- number of ion rows, from 1 to 10
columns (integer) -- number of ion columns, from 1 to 10
resonancePanel Apas Cloud
Shows two explicit Lewis contributors side by side with a resonance arrow; the structures are supplied as SMILES.
contributor1 (string) -- SMILES for the first canonical contributor
contributor2 (string) -- SMILES for the second canonical contributor
hydrogenBondDiagram Apas Cloud
Draws a labeled O-H···O intermolecular hydrogen bond, distinguishing the dashed attraction from the solid covalent bond.
molecularOrbitals Apas Cloud
Draws qualitative molecular orbital energy levels and electron filling for supported homonuclear second-period diatomics from Be2 through Ne2, including ions. H2, H2+, H2-, He2 and He2+ have their two 1s levels.
species (string) -- supported species such as N2, O2, O2^+, or O2^2-
Classroom diagrams
reactionScheme Apas Cloud
A reaction scheme: structures either side of an arrow, the conditions over it. Two reactants or products are written in one string joined by " + "; a second condition after ";" goes under the arrow.
reactant (string) -- reactant SMILES
product (string) -- product SMILES
conditions (string) -- optional reagent or conditions shown above the arrow
conformation Apas Cloud
Draws a Newman or sawhorse projection. Two arguments: staggered or eclipsed ethane. Three: the molecule (ethane, propane, butane, 1,2-dichloroethane, 1,2-dibromoethane, ethane-1,2-diol) and the dihedral angle in degrees or by name (anti, gauche, eclipsed, fully eclipsed, staggered).
view (string) -- newman or sawhorse
molecule_or_state (string) -- staggered/eclipsed (ethane), or the molecule's name
state (string or number) -- optional: the dihedral angle in degrees, or anti, gauche, eclipsed, fully eclipsed
apparatus Apas Cloud
Draws parameterized native laboratory apparatus with optional contents and fill percentage. A gas jar shows particles rather than liquid; a separatory funnel label containing / shows two immiscible layers, with the first named layer on top.
kind (string) -- beaker, gas_jar, test_tube, flask, separatory_funnel, burette, chromatography_column, or condenser
contents (string) -- optional contents label
level (integer) -- optional fill percentage from 0 through 100; for a gas jar this controls schematic particle density; default 55
particleContainer Apas Cloud
Fills a native container with a deterministic solid, liquid, or gas particle model.
state (string) -- solid, liquid, or gas
label (string) -- sample label
count (integer) -- visible particles from 1 through 40
electrochemicalCell Apas Cloud
Draws two half-cells, electrodes, external electron flow, and a salt bridge from four labels.
anode (string) -- anode material
anodeIon (string) -- anode solution species
cathode (string) -- cathode material
cathodeIon (string) -- cathode solution species
reactionEnergyDiagram Apas Cloud
Draws a one-step exothermic or endothermic profile, a two-step profile, or an enzyme profile comparing paths with the same endpoints and different activation barriers. Exothermic and endothermic profiles name the reactants, products, transition state, Eₐ and ΔH; a two-step profile marks its two barriers.
kind (string) -- exothermic, endothermic, two_step, or enzyme
electronMovement Apas Cloud
Places a curved electron-movement arrow over a validated SMILES structure. One-based atom:N or bond:N selectors attach its ends to atoms or bond midpoints; source-only lonePair:N checks for an available main-group lone pair and draws two dots. An optional pair or single mode draws a full or fish-hook arrow. This is a teaching annotation; it does not validate a reaction mechanism.
smiles (string) -- molecular structure in SMILES
source (string) -- electron source label
target (string) -- electron target label
sourceAnchor (string) -- optional source selector such as atom:1, bond:1, or lonePair:1
targetAnchor (string) -- optional target selector such as atom:2 or bond:2
electrons (string) -- optional pair (default) or single arrowhead
conformationEnergyDiagram Apas Cloud
The torsional energy curve against the dihedral angle with its scale: ethane (12.5 kJ/mol between staggered and eclipsed) by default; "butane" for anti, gauche, eclipsed and fully eclipsed (0, 3.8, 16, 19 kJ/mol).
molecule (string) -- optional: ethane (default) or butane
Visual models
atomBuilder Apas Cloud
Builds a neutral isotope from atomic number Z and mass number A. By default shows Bohr shells with filled electron dots and compact P/N counts in the nucleus; isotope and shell counts appear below the picture. Choose orbital or compact for quantum orbital boxes.
atomicNumber (integer) -- Z, from 1 through 118
massNumber (integer) -- A, at least Z
mode (string) -- optional: bohr (default), orbital/full, or compact noble-gas orbital boxes
bohrModel Apas Cloud
Draws a school-level Bohr shell picture for a neutral isotope: Z protons and A-Z neutrons shown as P/N counts in the nucleus, and Z filled electron dots arranged by K through Q shells. A typeset caption carries isotope and shell counts. The circles mark shells, not measured electron paths.
atomicNumber (integer) -- Z from 1 through 118
massNumber (integer) -- A, at least Z
bohrFilling Apas Cloud
Shows 0 through Z electron dots on a selected isotope's Bohr shells for a step-by-step school diagram. Intermediate steps are teaching stages of the final shell pattern.
atomicNumber (integer) -- Z from 1 through 118
massNumber (integer) -- A, at least Z
step (integer) -- visible electrons, 0 through Z
orbitalDiagram Apas Cloud
Shows ground-state orbital boxes, configuration, and unpaired-electron count for an atom or monatomic ion. Supports full or compact noble-gas-core display.
atomOrIon (string) -- element symbol or monatomic ion, for example Fe, Fe+, Fe++, Fe2+, or Fe^2+
mode (string) -- optional: full (default) or compact
orbitalFilling Apas Cloud
Shows the first step electrons of a selected atom's final ground-state pattern. Use a slider for an animated classroom walkthrough; intermediate steps are display stages, not physical excited states.
atomicNumber (integer) -- Z from 1 through 118
step (integer) -- visible electrons from 0 through Z
orbitalShape Apas Cloud
Shows labelled schematic orbital orientations for s, p, and d. For f, labels the seven magnetic sublevels without inventing spatial surfaces. Lobes are teaching illustrations, not probability surfaces or electron paths.
subshell (string) -- s, p, d, or f
hybridisation Apas Cloud
Shows a supported single-central-atom VSEPR structure with bonding domains, lone pairs, shape, hybridisation model, ideal angles, and a measured angle when known; a homonuclear triatomic (O3, I3^-, N3^-) takes its middle atom as the centre. In <steps>, or as {{name}} in a paragraph, the line reads the hybridisation and shape in words (sp3d, trigonal bipyramidal); in <script> it draws.
formula (string) -- a supported unambiguous formula such as CH4, NH3, or H2O
hybridOrbitals Apas Cloud
Animated drawing of the school-level s/p mixing model and directional hybrid orbitals. sp3d and sp3d2 are formal domain labels, not a claim of literal d-orbital participation. sp3, sp3d and sp3d2 are drawn in perspective as a tetrahedron, a trigonal bipyramid and an octahedron, the nearer lobes larger.
kind (string) -- sp, sp2, sp3, sp3d, or sp3d2
bondingModel Apas Cloud
Shows sigma and pi bonding for an explicit ethene or ethyne C-C connection, with each carbon's hybridisation. The second pi plane in ethyne is labelled perpendicular.
smiles (string) -- C=C or C#C
moleculeLegacy Apas Cloud
Compatibility name for vsepr(). A formula does not uniquely identify most organic structures.
formula (string) -- a formula supported by the gtchemistry VSEPR picture catalogue, such as H2O
moleculeFormula Apas Cloud
Alias of vsepr() for formula-based VSEPR diagrams.
formula (string) -- a formula supported by the gtchemistry VSEPR picture catalogue
moleculeCompare Apas Cloud
Draws the VSEPR formula model and connectivity-based SMILES structure side by side for teaching their different purposes.
formula (string) -- formula for the VSEPR renderer
smiles (string) -- SMILES connectivity for the graph renderer
fischerProjection Apas Cloud
Draws a verified Fischer projection of D-glucose or D-fructose. Horizontal bonds point towards the reader; the carbonyl is near the top. Reusable in Chemistry and Biology lessons.
sugar (string) -- D-glucose or D-fructose
glycosidicLink Apas Cloud
Schematic two-unit view of sucrose, maltose or lactose with donor/acceptor carbon positions and reducing-end status. It is not an atom-by-atom ring structure.
name (string) -- sucrose, maltose or lactose
dnaLadder Apas Cloud
Shows complementary A–T and G–C base pairs and antiparallel 5′/3′ directions for a short DNA sequence.
sequence (string) -- 2–12 DNA bases using A, T, G and C
sugarRing Apas Cloud
A Haworth ring of a D-sugar: any aldohexose as its pyranose (glucose, mannose, galactose, allose, altrose, gulose, idose, talose), ribose and 2-deoxyribose as furanoses, fructose as its furanose. One name ("alpha-D-mannopyranose") or the sugar, the anomer (alpha or beta) and optionally the ring word.
sugar (string) -- the sugar, or the full name alpha-D-…pyranose
anomer (string) -- optional: alpha (default) or beta
ring (string) -- optional: pyranose or furanose (each sugar has its one ring)
peptideBackbone Apas Cloud
Shows the N–Cα–C(=O) backbone, side chains and N/C termini of a short peptide. Supports Gly, Ala, Ser, Cys, Val and Lys.
sequence (string) -- 2–5 three-letter residue names separated by hyphens
nucleotide Apas Cloud
Shows the base, 1′–5′ sugar positions, phosphate and DNA/RNA 2′ difference in a component-level nucleotide diagram.
base (string) -- A, C, G, T for DNA or A, C, G, U for RNA
acid (string) -- DNA or RNA
proteinSecondary Apas Cloud
Schematic alpha helix or beta sheet with backbone geometry and hydrogen-bond topology; not an atom-scale protein model.
kind (string) -- alpha_helix or beta_sheet
Calculations
atomicNumber Apas Cloud
Returns an element’s atomic number from its symbol.
atomicWeight Apas Cloud
Returns the standard atomic weight of an element.
electronegativity Apas Cloud
Returns the Pauling electronegativity when the element has a tabulated value.
ionizationEnthalpy Apas Cloud
Ionisation enthalpy of the element in kJ/mol: the first by default, the second or third with order 2 or 3 (table values; NCERT XI Unit 3 agrees for the lighter elements). An error when the table has none (the second of H).
symbol (string) --
order (integer) -- optional, 1 to 3; 1 by default
ionizationEnergy Apas Cloud
The same as ionizationEnthalpy.
symbol (string) --
order (integer) -- optional, 1 to 3
electronGainEnthalpy Apas Cloud
Electron gain enthalpy in kJ/mol with NCERT's sign: negative when energy is released (Cl −348.6), positive for an unstable anion (He +48, predicted).
electronAffinity Apas Cloud
Electron affinity in kJ/mol, positive when energy is released (Cl 348.6): the negative of electronGainEnthalpy.
electronConfiguration Apas Cloud
Returns the ground-state electron configuration; choose compact for noble-gas notation.
symbol (string) --
mode (string) -- Optional; see function description.
molarMass Apas Cloud
Calculates molar mass in g mol⁻¹ from an element or chemical formula; a hydrate is written with a dot or a star, CuSO4·5H2O, CaSO4.2H2O or CaSO4*2H2O.
molesFromMass Apas Cloud
Converts a mass in grams to moles using the formula molar mass.
mass_g (number) --
formula (string) --
massFromMoles Apas Cloud
Converts moles to mass in grams using the formula molar mass.
moles (number) --
formula (string) --
particlesFromMoles Apas Cloud
Converts moles to particles using the SI Avogadro constant.
molesFromParticles Apas Cloud
Converts a particle count to moles using the SI Avogadro constant.
particlesFromMass Apas Cloud
Converts a mass in grams to a particle count for the given formula.
mass_g (number) --
formula (string) --
percentYield Apas Cloud
Calculates actual yield divided by theoretical yield, as a percentage.
actual_mass_g (number) --
theoretical_mass_g (number) --
degreeOfUnsaturation Apas Cloud
Calculates the degree of unsaturation from a molecular formula.
oxidationNumber Apas Cloud
Calculates the average oxidation number of the selected element in a formula, by the textbook rules in order (F -1; group 1 and 2 metals, Al, Zn, Ag; H -1 only in a hydride, beside a metal with nothing more electronegative than H, so PH3 and B2H6 have H +1; O -2 except beside F and in peroxides; Cl, Br, I -1 except beside O, F or a higher halogen) and the charge balance. A salt is read from its anion: FeSO4, Fe2(SO4)3, PbCrO4, FeSiO3, Cu(NO3)2 and hydrates such as CuSO4.5H2O give the metal's state from the anion's charge. In a binary compound the most electronegative non-metal of group 14, 15 or 16 is the anion: Cu2S is Cu +1, S -2; PbS, GaAs, SiC likewise. A result above the element's highest state counts the extra oxygens as peroxide: CrO5 is Cr +6 (four peroxide O), H2SO5 and K2S2O8 S +6; FeS2 is Fe +2, S -1. Two elements left to the balance are an error (ambiguous oxidation state): CuFeS2's metals, FeMnO4, an organic compound's C and S. A fraction where the average is one (KO2: -1/2; Fe3O4: 8/3). A third and fourth argument give another element's state: oxidationNumber("Fe2(C2O4)3", "C", "Fe", 3). In <steps> the formula is typeset upright with subscripts and the charge.
formula (string) --
element (string) --
other (string) -- optional
state (number) -- optional
balanceReaction Apas Cloud
Balances a reaction and returns its coefficients in reactant-then-product order. When the atoms alone leave the balance ambiguous (H2O2 with KMnO4: the peroxide could also go to water), a second argument gives the electron count per formula unit, "KMnO4 gains 5, H2O2 loses 2", and electrons gained = electrons lost settles it.
equation (string) -- reactants -> products, species joined by +
electrons (string) -- optional: "<species> gains|loses <n>" pairs separated by commas
molarity Apas Cloud
Calculates molarity in mol L⁻¹ from solute moles and solution volume in litres.
solute_moles (number) --
solution_volume_l (number) --
molality Apas Cloud
Calculates molality in mol kg⁻¹ from solute moles and solvent mass in grams.
solute_moles (number) --
solvent_mass_g (number) --
moleFraction Apas Cloud
Calculates component moles divided by total moles.
component_moles (number) --
total_moles (number) --
massPercent Apas Cloud
Calculates solute mass as a percentage of solution mass.
solute_mass_g (number) --
solution_mass_g (number) --
ppm Apas Cloud
Calculates parts per million by mass.
solute_mass_g (number) --
solution_mass_g (number) --
dilutedConcentration Apas Cloud
Calculates final concentration using C₁V₁ = C₂V₂.
initial_concentration (number) --
initial_volume (number) --
final_volume (number) --
idealPressure Apas Cloud
Solves the ideal gas law for pressure in atm.
moles (number) --
volume_l (number) --
temperature_k (number) --
idealVolume Apas Cloud
Solves the ideal gas law for volume in litres.
moles (number) --
pressure_atm (number) --
temperature_k (number) --
idealMoles Apas Cloud
Solves the ideal gas law for amount in moles.
pressure_atm (number) --
volume_l (number) --
temperature_k (number) --
idealTemperature Apas Cloud
Solves the ideal gas law for temperature in kelvin.
pressure_atm (number) --
volume_l (number) --
moles (number) --
pH Apas Cloud
Calculates pH from hydrogen-ion concentration in mol L⁻¹ using the dilute-solution convention.
hydrogen_concentration (number) --
pOH Apas Cloud
Calculates pOH from hydroxide-ion concentration in mol L⁻¹ using the 25 °C convention.
hydroxide_concentration (number) --
hydrogenFromPH Apas Cloud
Calculates hydrogen-ion concentration in mol L⁻¹ from pH.
hydroxideFromPOH Apas Cloud
Calculates hydroxide-ion concentration in mol L⁻¹ from pOH.
weakAcidHydrogen Apas Cloud
Solves the weak-acid equilibrium for hydrogen-ion concentration from initial concentration and Ka.
concentration (number) --
Ka (number) --
bohrEnergy Apas Cloud
Calculates the hydrogen-like Bohr energy level in eV for atomic number Z and principal level n (−13.6057 Z²/n² eV, a measured constant, so the value is approximate and a <steps> line shows it to six figures).
atomic_number (integer) --
n (integer) --
rydbergWavelength Apas Cloud
Calculates a hydrogen-like emission wavelength in metres for an initial level above a final level. Optional constant: hydrogen (default) or infinite_mass.
atomic_number (integer) --
initial_n (integer) --
final_n (integer) --
constant (string) -- Optional; see function description.
firstOrderConcentration Apas Cloud
Calculates remaining concentration for a first-order reaction.
initial_concentration (number) --
rate_constant (number) --
time (number) --
firstOrderHalfLife Apas Cloud
Calculates first-order half-life from the rate constant.
rate_constant (number) --
secondOrderConcentration Apas Cloud
Calculates remaining concentration for a second-order reaction.
initial_concentration (number) --
rate_constant (number) --
time (number) --
secondOrderHalfLife Apas Cloud
Calculates second-order half-life from initial concentration and rate constant.
initial_concentration (number) --
rate_constant (number) --
arrheniusRate Apas Cloud
Calculates the rate constant at a second temperature using the Arrhenius relation. Activation energy is in J mol⁻¹ and temperatures are in kelvin.
rate_1 (number) --
activation_energy_j (number) --
temperature_1_k (number) --
temperature_2_k (number) --
gibbsFreeEnergy Apas Cloud
Calculates ΔG = ΔH − TΔS. Use J mol⁻¹, K, and J mol⁻¹ K⁻¹.
delta_h_j (number) --
temperature_k (number) --
delta_s_j_per_k (number) --
equilibriumKFromDeltaG Apas Cloud
Calculates the equilibrium constant from standard ΔG in J mol⁻¹ and temperature in kelvin.
delta_g_j (number) --
temperature_k (number) --
cellEmf Apas Cloud
Calculates standard cell potential as cathode reduction potential minus anode reduction potential.
cathode_potential_v (number) --
anode_potential_v (number) --
deltaGFromEmf Apas Cloud
Calculates ΔG = −nFE in joules per mole from electron count and cell emf in volts.
electron_count (integer) --
emf_v (number) --