S4 Editor

By Martin Hunt

Purdue University

Edit a Lua script for the Stanford Stratified Structure Solver and visualize the output

Launch Tool

You must login before you can run this tool.

Version 1.2 - published on 02 Aug 2017

doi:10.4231/D3Q52FF86 cite this

Open source: license | download

View All Supporting Documents



Published on


This is a script editor and output visualizer for S4.

S4 (or simply S4) stands for Stanford Stratified Structure Solver, a frequency domain code to solve the linear Maxwell’s equations in layered periodic structures. Internally, it uses Rigorous Coupled Wave Analysis (RCWA; also called the Fourier Modal Method (FMM)) and the S-matrix algorithm. The program is implemented using a Lua frontend, or alternatively, as a Python extension. S4 was developed by Victor Liu of the Fan Group in the Stanford Electrical Engineering Department.

Cite this work

Researchers should cite this work as follows:

  • Martin Hunt (2017), "S4 Editor," https://nanohub.org/resources/s4editor. (DOI: 10.4231/D3Q52FF86).

    BibTex | EndNote