ApasScript.

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.

moleculeSmiles Apas Cloud

Explicit name for molecule(): parses SMILES into a validated chemical graph and lays it out as a diagram.

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.

lewisDiagram Apas Cloud

Draws a Lewis structure from a supported molecular formula, with bonds, formal charges and colored lone-pair electron dots.

vsepr Apas Cloud

Draws a school-level VSEPR molecule shape with central-atom lone pairs from a supported formula, such as H2O or NH3. Formula alone cannot identify every molecular structure.

vseprPanel Apas Cloud

Shows two to four labeled VSEPR structures together in one compact comparison panel.

ionicLattice Apas Cloud

Draws a colored checkerboard plane section of an alternating ionic crystal; this shows a lattice slice, not an isolated ion pair.

resonancePanel Apas Cloud

Shows two explicit Lewis contributors side by side with a resonance arrow; the structures are supplied as SMILES.

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.

Classroom diagrams

reactionScheme Apas Cloud

Composes two validated SMILES structures into a reaction scheme with an arrow and optional conditions.

conformation Apas Cloud

Draws a Newman or sawhorse projection of staggered or eclipsed ethane.

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.

particleContainer Apas Cloud

Fills a native container with a deterministic solid, liquid, or gas particle model.

electrochemicalCell Apas Cloud

Draws two half-cells, electrodes, external electron flow, and a salt bridge from four labels.

reactionEnergyDiagram Apas Cloud

Draws a labelled one-step exothermic or endothermic profile, or a two-step profile with an intermediate.

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.

conformationEnergyDiagram Apas Cloud

Draws the periodic torsional-energy profile of ethane with staggered minima and eclipsed maxima.

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.

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.

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.

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.

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.

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.

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.

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.

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.

moleculeLegacy Apas Cloud

Compatibility name for vsepr(). A formula does not uniquely identify most organic structures.

moleculeFormula Apas Cloud

Alias of vsepr() for formula-based VSEPR diagrams.

moleculeCompare Apas Cloud

Draws the VSEPR formula model and connectivity-based SMILES structure side by side for teaching their different purposes.

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.

electronConfiguration Apas Cloud

Returns the ground-state electron configuration; choose compact for noble-gas notation.

molarMass Apas Cloud

Calculates molar mass in g mol⁻¹ from an element or chemical formula.

molesFromMass Apas Cloud

Converts a mass in grams to moles using the formula molar mass.

massFromMoles Apas Cloud

Converts moles to mass in grams using the formula molar mass.

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.

percentYield Apas Cloud

Calculates actual yield divided by theoretical yield, as a percentage.

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.

balanceReaction Apas Cloud

Balances a reaction and returns its coefficients in reactant-then-product order.

molarity Apas Cloud

Calculates molarity in mol L⁻¹ from solute moles and solution volume in litres.

molality Apas Cloud

Calculates molality in mol kg⁻¹ from solute moles and solvent mass in grams.

moleFraction Apas Cloud

Calculates component moles divided by total moles.

massPercent Apas Cloud

Calculates solute mass as a percentage of solution mass.

ppm Apas Cloud

Calculates parts per million by mass.

dilutedConcentration Apas Cloud

Calculates final concentration using C₁V₁ = C₂V₂.

idealPressure Apas Cloud

Solves the ideal gas law for pressure in atm.

idealVolume Apas Cloud

Solves the ideal gas law for volume in litres.

idealMoles Apas Cloud

Solves the ideal gas law for amount in moles.

idealTemperature Apas Cloud

Solves the ideal gas law for temperature in kelvin.

pH Apas Cloud

Calculates pH from hydrogen-ion concentration in mol L⁻¹ using the dilute-solution convention.

pOH Apas Cloud

Calculates pOH from hydroxide-ion concentration in mol L⁻¹ using the 25 °C convention.

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.

bohrEnergy Apas Cloud

Calculates the hydrogen-like Bohr energy level in eV for atomic number Z and principal level n.

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.

firstOrderConcentration Apas Cloud

Calculates remaining concentration for a first-order reaction.

firstOrderHalfLife Apas Cloud

Calculates first-order half-life from the rate constant.

secondOrderConcentration Apas Cloud

Calculates remaining concentration for a second-order reaction.

secondOrderHalfLife Apas Cloud

Calculates second-order half-life from initial concentration and rate constant.

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.

gibbsFreeEnergy Apas Cloud

Calculates ΔG = ΔH − TΔS. Use J mol⁻¹, K, and J mol⁻¹ K⁻¹.

equilibriumKFromDeltaG Apas Cloud

Calculates the equilibrium constant from standard ΔG in J mol⁻¹ and temperature in kelvin.

cellEmf Apas Cloud

Calculates standard cell potential as cathode reduction potential minus anode reduction potential.

deltaGFromEmf Apas Cloud

Calculates ΔG = −nFE in joules per mole from electron count and cell emf in volts.