Reset aquamacs defaults
In our control file, we'll first specify the parameters and geometry of the simulation, and then tell it to run and give us the output.Īll of the parameters, each of which corresponds to a Scheme variable, have default setting, so we only need to specify the ones we need to change. See Chapter 5 of Photonic Crystals: Molding the Flow of Light (second edition). Our First Band StructureĪs our beginning example, we'll compute the band structure of a two-dimensional square lattice of dielectric rods in air. Why don't you do that right now, in your terminal window? Then, you can paste in the commands from the tutorial as you follow it and see what they do. However, as you already know (since you obediently read the libctl manual, right?), if you invoke mpb with no arguments, you are dropped into an interactive mode in which you can type commands and see their results immediately. Some sample ctl files are provided in the mpb-ctl/examples/ directory. Which reads the ctl file foo.ctl and executes it, saving the output to the file foo.out. MPB is normally invoked by running something like: unix% mpb foo.ctl >& foo.out The libctl manual, particularly the Basic User Experience, provides an overview of what the user interface is like, provides a crash course in the Scheme features that are most useful here, and describes some useful general features.
#Reset aquamacs defaults manual
This manual is primarily focused on documenting these features. MPB which defines all the interface features that are specific to photonic band structure calculations.libctl sets the basic tone of the user interface and defines a number of useful functions. libctl, a library that we built on top of Guile to simplify communication between Scheme and scientific computation software.You can learn more about Guile and Scheme. You don't need to learn much Scheme for a basic ctl file, but it is always there if you need it. We run Scheme under the GNU Guile interpreter which is designed to be plugged into programs as a scripting and extension language. Scheme, a powerful and beautiful programming language developed at MIT, which has a particularly simple syntax: all statements are of the form (function arguments.).Thus, there are three sources of possible commands and syntax for a ctl file: The ctl file is actually implemented on top of the libctl library, a set of utilities that are in turn built on top of the Scheme language. The ctl file specifies the geometry you wish to study, the number of eigenvectors to compute, what to output, and everything else specific to your calculation. The use of the MPB revolves around the control file, abbreviated "ctl" and typically called something like foo.ctl. A Complete 2D Gap with an Anisotropic Dielectric.