{ "cells": [ { "cell_type": "markdown", "id": "710569a8", "metadata": {}, "source": [ "# Generating the SuperScreen logo\n", "\n", "The `SuperScreen` logo is a superconducting \"S\" screening a uniform applied magnetic field. This notebook generates the logo as follows:\n", "\n", "1. Define a `matplotlib` `TextPath` object and use it to extract polygon vertices that draw an \"S\".\n", "2. Create a `superscreen.Device` to represent the superconducting \"S\".\n", "3. Solve for the response of the \"S\" to an applied magnetic field.\n", "4. Visualize the resulting screening currents and fields." ] }, { "cell_type": "code", "execution_count": 1, "id": "68471be4", "metadata": {}, "outputs": [], "source": [ "# Automatically install superscreen from GitHub only if running in Google Colab\n", "if \"google.colab\" in str(get_ipython()):\n", " %pip install --quiet git+https://github.com/loganbvh/superscreen.git" ] }, { "cell_type": "code", "execution_count": 2, "id": "8769d73c", "metadata": {}, "outputs": [], "source": [ "%config InlineBackend.figure_formats = {\"retina\", \"png\"}\n", "%matplotlib inline\n", "\n", "import os\n", "\n", "os.environ[\"OPENBLAS_NUM_THREADS\"] = \"1\"\n", "\n", "import numpy as np\n", "from matplotlib.textpath import TextPath\n", "from matplotlib.font_manager import FontProperties\n", "\n", "import superscreen as sc\n", "\n", "SAVE = False" ] }, { "cell_type": "code", "execution_count": 3, "id": "403964e5", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
| Software | Version |
|---|---|
| SuperScreen | 0.13.0 |
| Numpy | 2.4.4 |
| Numba | 0.65.1 |
| SciPy | 1.17.1 |
| matplotlib | 3.10.9 |
| IPython | 9.13.0 |
| Python | 3.14.4 | packaged by conda-forge | (main, Apr 8 2026, 02:33:53) [Clang 20.1.8 ] |
| OS | posix [darwin] |
| Number of CPUs | Physical: 10, Logical: 10 |
| BLAS Info | Generic |
| Tue Apr 28 20:43:06 2026 EDT | |