How Example simulations work
- Synchrotron Radiation Workshop (SRW)
- Warp PBA
- Warp VND
- Authentication and Account Creation
- How Your Sirepo Workspace Works
- Navigating the Sirepo Simulations Interface
- How to upload a lattice file
- How to share a Sirepo simulation via URL
- How Example simulations work
- How to report a bug in Sirepo
- Using lattice files in Sirepo
- Resetting an Example Simulation to default
SRW Help Center
- Backup SRW Sirepo simulations
- SRW Aperture
- SRW Brilliance Report
- SRW Circular Cylinder Mirror
- SRW CRL
- SRW Crystal
- SRW Electron Beam
- SRW Elliptical Cylinder Mirror
- SRW Fiber
- SRW Flux
- SRW Fully Coherent Gaussian Beam
- SRW Import Python or JSON Simulation File
- SRW Initial Wavefront Simulation Grid
- SRW Intensity Report
- SRW Planar Mirror
- SRW Power Density Report
- SRW Propagation Parameters
- SRW Single Electron Spectrum Report
- SRW Spherical Mirror
- SRW Toroid Mirror
- SRW Watchpoint
- SRW Additional Documentation
- Coding Style
- Dev NewReportExample
- Adding a field to an application
- Interacting with Simulations Architecture
- Job system architecture overview
- Debugging the job system
Clone this wiki locally
Sirepo comes with a number of preinstalled simulations, so you don’t always have to build one from scratch or import a new file.
These ready-made simulations sit in the Examples folder, which is located on the home screen of your Sirepo workspace. (Examples from Sirepo/elegant are pictured below.)
The Examples folder is designated by a star, whereas any folders you add will not have a star.
Below are the example simulations for Sirepo/elegant.
All Example simulation files are also designated by a star on their icon.
These examples often model well-known beamlines or X-ray sources, and vary based on the code you’re using.
If a certain Example simulation configuration is close to the one you want for your model, you can make a copy and adjust it to your liking.
For example, if you want to simulate the Los Alamos Proton Storage Ring, you can copy that file and make parameter adjustments without building a new simulation from scratch or importing a lattice file.
Making a copy of an Example file
To make a copy of an Example simulation, right click on the file click Open as a New Copy.
Then rename the simulation and click on Create Copy.
Discarding changes to an example simulation
Example simulations can be reset to their original parameters using the Discard Changes to Example function. (Note that this is not true of regular simulations, so if you have to preserve a particular version of a simulation be sure to make a copy of it first.)
Find this option under the settings, or cog, icon in the top right of the Sirepo workspace menu bar.
When you click, a popup window will ask you to confirm resetting the simulation.
Click Discard Changes. Your browser window will then refresh, and the simulation will be reset to its default parameters.