Free software

About OpticalSetup

Copyright © 2026 Luca Genchi and contributors.

OpticalSetup is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

It is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose. See the GNU General Public License for more details.

The numbers OpticalSetup reports come from models with stated limits; read each component's page in the wiki before relying on one.

If you use OpticalSetup in your research, teaching or publications, please cite the software:

Bertoncini, A., & Genchi, L. (2026). OpticalSetup - the optical workbench software [Computer software]. Zenodo. https://doi.org/10.5281/zenodo.23191537

Calculators / Coherent Raman scattering

Coherent Raman scattering

Solve the pump, Stokes or Raman shift from the other two, then read the CARS and CSRS wavelengths of two-color coherent Raman scattering. Further panels estimate the spectral resolution set by the pulse durations and show which part of a measured reference spectrum that excitation probes.

    Spectral resolution from pulse durations

    For Gaussian pulses that are transform-limited, or equally chirped as in spectral focusing, the excitation bandwidth depends only on the pump and Stokes durations [3].

      Reference Raman spectra and the probed window

      The Raman shift and resolution above, drawn on measured spectra of 84 reference materials from openly licensed sources [5][7][9]. The highlighted band is the window the excitation addresses.

        1Reference spectrum and probed window
        Normalized intensity against Raman shift. The band is the Raman shift ± half the spectral resolution; the marker is the spectrum at the shift.
        Data table
        Model
        Pump–Stokes difference frequency; CARS at 2νp − νS and CSRS at 2νS − νp; Gaussian-pulse resolution formula.
        Evidence
        Equations checked against independent Python references, with published or exact algebraic anchors. These checks do not establish experimental accuracy.
        Example
        800 nm pump + 1040 nm Stokes → 2884.6 cm⁻¹; CARS at 650 nm, CSRS at 1485.7 nm. Two 2 ps pulses give 14.7 cm⁻¹ resolution, which on ethanol covers its 2878 cm⁻¹ band.
        Data
        Reference spectra from Flanagan and Glavin [6] and Bērziņš et al. [8] (CC BY 4.0) and the Raman Open Database [10] (CC0), credited per spectrum.

        Pump, Stokes and the coherent signals

        A pump (νp) and a lower-frequency Stokes beam (νS) drive a vibrational coherence at their difference frequency [1][4]. With vacuum wavelengths in nm, the Raman shift is in cm⁻¹, and any two of pump, Stokes and shift fix the third:

        Δν~=107(1λp−1λS),λS=107107/λp−Δν~,λp=107107/λS+Δν~\Delta\tilde\nu=10^7\left(\frac{1}{\lambda_p}-\frac{1}{\lambda_S}\right),\qquad \lambda_S=\frac{10^7}{10^7/\lambda_p-\Delta\tilde\nu},\qquad \lambda_p=\frac{10^7}{10^7/\lambda_S+\Delta\tilde\nu}
        νRaman [THz]=0.0299792458  Δν~ [cm−1]\nu_{\mathrm{Raman}}\,[\mathrm{THz}]=0.0299792458\;\Delta\tilde\nu\,[\mathrm{cm}^{-1}]

        The same two beams also read the coherence out. A pump photon scattering off it gains the Raman energy, which gives coherent anti-Stokes Raman scattering (CARS) on the blue side of the pump. A Stokes photon losing it gives coherent Stokes Raman scattering (CSRS) on the red side of the Stokes beam [1][2]. Stimulated Raman scattering (SRS) is read out at the pump and Stokes wavelengths themselves, as a loss or a gain.

        νCARS=νp+(νp−νS)=2νp−νS,νCSRS=νS−(νp−νS)=2νS−νp\nu_{\mathrm{CARS}}=\nu_p+(\nu_p-\nu_S)=2\nu_p-\nu_S,\qquad \nu_{\mathrm{CSRS}}=\nu_S-(\nu_p-\nu_S)=2\nu_S-\nu_p

        Spectral resolution

        Mohseni, Polzer and Hellerer derive the spectral resolution of spectral-focusing coherent Raman imaging from the pump and Stokes durations τp and τS, the intensity FWHM of Gaussian pulses, and state that it holds for transform-limited pulses as well as for equally chirped ones [3], Eq. (5):

        Δν~=22 ln⁡2πcτp−2+τS−2≈20.8 ps cm−1τp−2+τS−2\Delta\tilde\nu=\frac{2\sqrt2\,\ln2}{\pi c}\sqrt{\tau_p^{-2}+\tau_S^{-2}}\approx 20.8\ \mathrm{ps\,cm^{-1}}\sqrt{\tau_p^{-2}+\tau_S^{-2}}

        With equal linear chirps the instantaneous pump–Stokes difference frequency is constant in time, so the chirps cancel in the beat and only the chirped envelopes matter. For spectral focusing, enter those chirped durations. A chirp mismatch adds a broadening term that this panel does not include (Eq. (8) of [3]). For Gaussian fields the value equals the FWHM of the amplitude spectrum of the driving term EpES*. The FWHM of its power spectrum is smaller by √2. The independent reference recomputes the amplitude-spectrum width numerically, for transform-limited and equally chirped pulses.

        Reference spectra

        The spectra are measurements published by others under licences that allow redistribution with credit, chosen so that nothing conflicts with this project’s GPL. They are not modelled. Three sources qualify:

        • Solvents and reagents: Flanagan and Glavin, spontaneous Raman of 31 neat liquids at 785 nm, about 1 cm⁻¹ resolution, CC BY 4.0 [5][6]. Their methyl isobutyl ketone and 4-methyl-2-pentanone are the same compound and appear once.
        • Pharmaceutical excipients: Bērziņš et al., FT-Raman spectra of the excipients as supplied, solids and a few liquids, CC BY 4.0 [7][8]; one spectrum per substance, without repeated grades and suppliers.
        • Minerals: the Raman Open Database, public domain (CC0) [9][10]. Only spectra contributed to ROD directly are used, because many ROD entries republish RRUFF spectra whose own terms are not CC0. Entries flagged by the ROD maintainers, or whose main band lies more than about 3 cm⁻¹ from its accepted position, are left out.

        Other collections were checked and not used: SDBS (all rights reserved), the Open Specy library (merged from contributors without a per-spectrum licence) and RamanBioLib (ODbL share-alike, and spectra digitized from published figures). Lipid spectra are not included yet; measured lipid spectra, including stimulated Raman (SRS) spectra, can be added later and will be labelled as such. SRS is proportional to the spontaneous Raman cross-section but is a different measurement.

        Every spectrum is processed the same way. Replicates are averaged. The spectrum is cropped to the source’s usable range (150–3150 cm⁻¹ for the solvents, as their authors recommend) and averaged into 2 cm⁻¹ bins. A straight baseline through the first and last 10 cm⁻¹ is subtracted, then the spectrum is scaled to its strongest band. The major bands of eight solvents (ethanol, methanol, acetone, acetonitrile, chloroform, cyclohexane, DMSO and toluene), checked against the band table their source publishes, agree to within one bin. Band heights depend on the instrument response, the excitation wavelength and the sample state, so compare positions rather than heights across sources.

        All 84 reference spectra
        MaterialMeasurementRange (cm⁻¹)Source and licence
        Alcohols and glycols (7)
        2-Propanol (isopropanol)Spontaneous Raman150–3150[5][6], CC BY 4.0
        Diethylene glycolSpontaneous Raman150–3150[5][6], CC BY 4.0
        EthanolSpontaneous Raman150–3150[5][6], CC BY 4.0
        Ethylene glycolSpontaneous Raman150–3150[5][6], CC BY 4.0
        MethanolSpontaneous Raman150–3150[5][6], CC BY 4.0
        Propylene glycolFT-Raman (spontaneous, Fourier-transform)210–3500[7][8], CC BY 4.0
        tert-ButanolSpontaneous Raman150–3150[5][6], CC BY 4.0
        Ketones, esters and ethers (11)
        2,2-DimethoxypropaneSpontaneous Raman150–3150[5][6], CC BY 4.0
        4-Methyl-2-pentanone (MIBK)Spontaneous Raman150–3150[5][6], CC BY 4.0
        AcetoneSpontaneous Raman150–3150[5][6], CC BY 4.0
        Butyl acetateSpontaneous Raman150–3150[5][6], CC BY 4.0
        Dibutyl sebacateFT-Raman (spontaneous, Fourier-transform)210–3500[7][8], CC BY 4.0
        Diethyl malonateSpontaneous Raman150–3150[5][6], CC BY 4.0
        Ethyl acetateSpontaneous Raman150–3150[5][6], CC BY 4.0
        Propyl acetateSpontaneous Raman150–3150[5][6], CC BY 4.0
        tert-Butyl methyl ether (MTBE)Spontaneous Raman150–3150[5][6], CC BY 4.0
        Tetrahydrofuran (THF)Spontaneous Raman150–3150[5][6], CC BY 4.0
        TriacetinFT-Raman (spontaneous, Fourier-transform)210–3500[7][8], CC BY 4.0
        Hydrocarbons (3)
        CyclohexaneSpontaneous Raman150–3150[5][6], CC BY 4.0
        n-HeptaneSpontaneous Raman150–3150[5][6], CC BY 4.0
        n-HexaneSpontaneous Raman150–3150[5][6], CC BY 4.0
        Aromatic compounds (3)
        BenzaldehydeSpontaneous Raman150–3150[5][6], CC BY 4.0
        Benzyl bromideSpontaneous Raman150–3150[5][6], CC BY 4.0
        TolueneSpontaneous Raman150–3150[5][6], CC BY 4.0
        Halogenated solvents (2)
        ChloroformSpontaneous Raman150–3150[5][6], CC BY 4.0
        DichloromethaneSpontaneous Raman150–3150[5][6], CC BY 4.0
        Polar aprotic solvents (4)
        1,3-Dimethyl-2-imidazolidinoneSpontaneous Raman150–3150[5][6], CC BY 4.0
        AcetonitrileSpontaneous Raman150–3150[5][6], CC BY 4.0
        Dimethyl sulfoxide (DMSO)Spontaneous Raman150–3150[5][6], CC BY 4.0
        N,N-Dimethylformamide (DMF)Spontaneous Raman150–3150[5][6], CC BY 4.0
        Acids, amines and salts (9)
        Acetic acid (glacial)Spontaneous Raman150–3150[5][6], CC BY 4.0
        Citric acidFT-Raman (spontaneous, Fourier-transform)210–3500[7][8], CC BY 4.0
        DiethylamineSpontaneous Raman150–3150[5][6], CC BY 4.0
        Formic acidSpontaneous Raman150–3150[5][6], CC BY 4.0
        IsobutylamineSpontaneous Raman150–3150[5][6], CC BY 4.0
        Magnesium stearateFT-Raman (spontaneous, Fourier-transform)210–3500[7][8], CC BY 4.0
        Sodium acetateFT-Raman (spontaneous, Fourier-transform)210–3500[7][8], CC BY 4.0
        Sodium benzoateFT-Raman (spontaneous, Fourier-transform)210–3500[7][8], CC BY 4.0
        Sodium dodecyl sulfate (SDS)FT-Raman (spontaneous, Fourier-transform)210–3500[7][8], CC BY 4.0
        Amino acids and proteins (8)
        Casein (sodium salt, bovine milk)FT-Raman (spontaneous, Fourier-transform)210–3500[7][8], CC BY 4.0
        Gelatin (type A, porcine skin)FT-Raman (spontaneous, Fourier-transform)210–3500[7][8], CC BY 4.0
        Glycine (α form)FT-Raman (spontaneous, Fourier-transform)210–3500[7][8], CC BY 4.0
        L-CysteineFT-Raman (spontaneous, Fourier-transform)210–3500[7][8], CC BY 4.0
        L-Glutamic acidFT-Raman (spontaneous, Fourier-transform)210–3500[7][8], CC BY 4.0
        L-GlutamineFT-Raman (spontaneous, Fourier-transform)210–3500[7][8], CC BY 4.0
        L-TryptophanFT-Raman (spontaneous, Fourier-transform)210–3500[7][8], CC BY 4.0
        ZeinFT-Raman (spontaneous, Fourier-transform)210–3500[7][8], CC BY 4.0
        Sugars and polyols (7)
        D-SorbitolFT-Raman (spontaneous, Fourier-transform)210–3500[7][8], CC BY 4.0
        Glucose monohydrateFT-Raman (spontaneous, Fourier-transform)210–3500[7][8], CC BY 4.0
        Lactose monohydrateFT-Raman (spontaneous, Fourier-transform)210–3500[7][8], CC BY 4.0
        MannitolFT-Raman (spontaneous, Fourier-transform)210–3500[7][8], CC BY 4.0
        SucroseFT-Raman (spontaneous, Fourier-transform)210–3500[7][8], CC BY 4.0
        Trehalose dihydrateFT-Raman (spontaneous, Fourier-transform)210–3500[7][8], CC BY 4.0
        XylitolFT-Raman (spontaneous, Fourier-transform)210–3500[7][8], CC BY 4.0
        Polysaccharides (10)
        Alginic acidFT-Raman (spontaneous, Fourier-transform)210–3500[7][8], CC BY 4.0
        Carboxymethyl cellulose, sodium saltFT-Raman (spontaneous, Fourier-transform)210–3500[7][8], CC BY 4.0
        CarrageenanFT-Raman (spontaneous, Fourier-transform)210–3500[7][8], CC BY 4.0
        Cellulose acetate phthalateFT-Raman (spontaneous, Fourier-transform)210–3500[7][8], CC BY 4.0
        ChitosanFT-Raman (spontaneous, Fourier-transform)210–3500[7][8], CC BY 4.0
        DextranFT-Raman (spontaneous, Fourier-transform)210–3500[7][8], CC BY 4.0
        Hydroxypropyl methylcelluloseFT-Raman (spontaneous, Fourier-transform)210–3500[7][8], CC BY 4.0
        MethylcelluloseFT-Raman (spontaneous, Fourier-transform)210–3500[7][8], CC BY 4.0
        StarchFT-Raman (spontaneous, Fourier-transform)210–3500[7][8], CC BY 4.0
        TragacanthFT-Raman (spontaneous, Fourier-transform)210–3500[7][8], CC BY 4.0
        Synthetic polymers (9)
        Methacrylic acid copolymer (EUDRAGIT L 100)FT-Raman (spontaneous, Fourier-transform)210–3500[7][8], CC BY 4.0
        Nylon 6FT-Raman (spontaneous, Fourier-transform)210–3500[7][8], CC BY 4.0
        Poly(ethylene-co-vinyl acetate)FT-Raman (spontaneous, Fourier-transform)210–3500[7][8], CC BY 4.0
        Poly(vinyl alcohol), 99 % hydrolyzedFT-Raman (spontaneous, Fourier-transform)210–3500[7][8], CC BY 4.0
        PolycaprolactoneFT-Raman (spontaneous, Fourier-transform)210–3500[7][8], CC BY 4.0
        Polyethylene glycol 6000FT-Raman (spontaneous, Fourier-transform)210–3500[7][8], CC BY 4.0
        Polyvinyl caprolactam–polyvinyl acetate–PEG graft copolymer (Soluplus)FT-Raman (spontaneous, Fourier-transform)210–3500[7][8], CC BY 4.0
        Polyvinylpyrrolidone (PVP)FT-Raman (spontaneous, Fourier-transform)210–3500[7][8], CC BY 4.0
        Vinylpyrrolidone–vinyl acetate copolymer (Kollidon VA 64)FT-Raman (spontaneous, Fourier-transform)210–3500[7][8], CC BY 4.0
        Minerals and inorganic solids (11)
        Anatase (TiO₂)Spontaneous Raman100–2500[9][10] ROD 3500153, CC0 1.0 (public domain)
        Aragonite (CaCO₃)Spontaneous Raman100–4000[9][10] ROD 3500279, CC0 1.0 (public domain)
        Barite (BaSO₄)Spontaneous Raman100–2998[9][10] ROD 3500038, CC0 1.0 (public domain)
        Calcite (CaCO₃)Spontaneous Raman100–1800[9][10] ROD 3500023, CC0 1.0 (public domain)
        Gypsum (CaSO₄·2H₂O)Spontaneous Raman100–4000[9][10] ROD 3500273, CC0 1.0 (public domain)
        Magnesium carbonate (heavy)FT-Raman (spontaneous, Fourier-transform)210–3500[7][8], CC BY 4.0
        Quartz (α-SiO₂)Spontaneous Raman100–4000[9][10] ROD 3500272, CC0 1.0 (public domain)
        Rutile (TiO₂)Spontaneous Raman100–2500[9][10] ROD 3500024, CC0 1.0 (public domain)
        Sodium bicarbonateFT-Raman (spontaneous, Fourier-transform)210–3500[7][8], CC BY 4.0
        TalcFT-Raman (spontaneous, Fourier-transform)210–3500[7][8], CC BY 4.0
        Tricalcium phosphateFT-Raman (spontaneous, Fourier-transform)210–3500[7][8], CC BY 4.0

        Precision and limits

        Wavelength inputs and inferred pump or Stokes wavelengths are limited to 100–20000 nm, and shifts to positive values up to 10000 cm⁻¹. Equal or reversed pump and Stokes, impossible shifts and out-of-scope inferred wavelengths give no result. CARS and CSRS may lie outside the input interval. CSRS is unavailable when the Raman frequency is not below the Stokes frequency. An independent reference checks all three modes and the resolution formula to 10⁻⁹ relative; the paper’s 20.8 ps·cm⁻¹ prefactor anchors the units.

        Frequency relations and a Gaussian bandwidth estimate only. Raman cross-sections, linewidths, the nonresonant background, phase matching, polarization, pulse overlap, signal levels and non-Gaussian pulse shapes are outside this model.

        References

        1. J.-X. Cheng and X. S. Xie, “Coherent anti-Stokes Raman scattering microscopy: instrumentation, theory, and applications,” J. Phys. Chem. B 108, 827–840 (2004).
        2. S. Heuke and H. Rigneault, “Coherent Stokes Raman scattering microscopy (CSRS),” Nat. Commun. 14, 3337 (2023).
        3. M. Mohseni, C. Polzer and T. Hellerer, “Resolution of spectral focusing in coherent Raman imaging,” Opt. Express 26, 10230–10241 (2018).
        4. NIST, Broadband Coherent Anti-Stokes Raman Scattering Microscopy, excitation and readout frequency relations.
        5. A. R. Flanagan and F. G. Glavin, “Open-source Raman spectra of chemical compounds for active pharmaceutical ingredient development,” Sci. Data 12, 498 (2025).
        6. A. R. Flanagan and F. G. Glavin, Raman spectra dataset, figshare (2025), CC BY 4.0.
        7. K. Bērziņš, R. E. Sales, J. E. Barnsley, G. Walker, S. J. Fraser-Miller and K. C. Gordon, “Low-wavenumber Raman spectral database of pharmaceutical excipients,” Vib. Spectrosc. 107, 103021 (2020).
        8. K. Bērziņš et al., Reference data to the low-wavenumber Raman spectral database of pharmaceutical excipients, Zenodo (2020), CC BY 4.0.
        9. Y. El Mendili et al., “Raman Open Database: first interconnected Raman–X-ray diffraction open-access resource for material identification,” J. Appl. Cryst. 52, 618–625 (2019).
        10. Raman Open Database (ROD), Crystallography Open Database project; data in the public domain (CC0).