https://github.com/alchemistsimulator/sapere-incarnation-tutorial
Tutorial (with exercises) for the SAPERE incarnation
https://github.com/alchemistsimulator/sapere-incarnation-tutorial
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (14.7%) to scientific vocabulary
Repository
Tutorial (with exercises) for the SAPERE incarnation
Basic Info
- Host: GitHub
- Owner: AlchemistSimulator
- Language: JavaScript
- Default Branch: master
- Size: 8.24 MB
Statistics
- Stars: 1
- Watchers: 0
- Forks: 15
- Open Issues: 1
- Releases: 113
Metadata Files
README.md
Hands-on tutorial with the Alchemist SAPERE incarnation
This tutorial demonstrates how to use Alchemist-SAPERE through a sequence of working examples and increasingly challenging exercises.
Introductory material on simulation concepts and the rationale behind the development of Alchemist and its SAPERE incarnation is available here (PDF).
Further information on writing simulations in Alchemist can be found on the official website.
Prerequisites
Alchemist requires a working installation of Java Runtime Environment 17 or newer. We recommend using the latest LTS OpenJDK from Adoptium.
Prerequisites with Docker
If running via Docker, you do not need to install the JDK.
Instead, ensure that both Docker and Docker Compose are installed.
On macOS and Windows, an X Window System is required to display the simulation interface:
- macOS: XQuartz
- Windows: Xming
To run the project with Docker:
docker-compose up
You can specify the simulation to be run via the docker-compose.yml file.
Launching simulations
This project uses the Gradle Build Tool.
You don’t need to install Gradle — the provided launch script will download the correct version automatically.
To launch a simulation named SIMNAME, a file named SIMNAME.yml must be located in the src/main/yaml directory.
Gradle will automatically generate a task for each simulation file, which you can run as follows:
./gradlew SIMNAME
If an effect file named SIMNAME.json is present in the effects/ folder, it will be automatically loaded.
Note
The environment variableCIis used to determine whether the task is running in a headless continuous integration environment.
IfCI=trueis set, the graphical interface will not be launched.
Exercises
Use the provided simulation files and the documentation on the official Alchemist website to complete the following exercises:
- Refer to:
- Add two nodes to an empty, continuous environment and ensure they are connected.
- Create 10,000 nodes randomly placed inside a circle centered at (0,0) with radius 10.
- Create a regular grid of nodes from (-5,-5) to (5,5) spaced by (0.25, 0.25), without perturbation.
- Create a perturbed version of the grid from Exercise 3.
- Insert
{token}LSAs in some nodes. - Implement a "dodgeball" program.
- Use YAML to write custom sections and refer to them.
- Modify the dodgeball program to count passes within the LSA.
- Implement an LSA diffusion program so that all nodes eventually contain the
{token}LSA using the*operator. - Open
10-math.yml, experiment with it, and manually move nodes around. - Write a gradient propagation program that:
- Converts
{source}into{gradient, 0}(keep the source). - Diffuses the gradient to neighbors, incrementing the value by
#D. - Keeps only the lowest gradient value if multiple copies exist.
- Ages the gradient value periodically.
- Deletes gradients with values exceeding a threshold (e.g., 20).
- Converts
- Review
12-sets.ymland observe the behavior of set arithmetic. - Modify Exercise 12 to use a custom time distribution (e.g., a
DiracCombwith parameter 0.5). - Review
14-yaml.vars.ymland understand the variable system. - Open
15-move.yml, run it, and experiment with its parameters. - Run
16-maps.yml(note: first run may take time). Observe complex scenario capabilities, modify as desired, and reflect on results.
Owner
- Name: Alchemist
- Login: AlchemistSimulator
- Kind: organization
- Location: Cesena, Italy
- Website: http://alchemistsimulator.github.io
- Repositories: 9
- Profile: https://github.com/AlchemistSimulator
A chemical inspired simulator for engineering complex ecosystems
GitHub Events
Total
- Release event: 2
- Delete event: 160
- Issue comment event: 189
- Push event: 190
- Pull request event: 320
- Fork event: 1
- Create event: 169
Last Year
- Release event: 2
- Delete event: 160
- Issue comment event: 189
- Push event: 190
- Pull request event: 320
- Fork event: 1
- Create event: 169
Issues and Pull Requests
Last synced: 10 months ago
All Time
- Total issues: 5
- Total pull requests: 318
- Average time to close issues: 10 minutes
- Average time to close pull requests: 1 day
- Total issue authors: 1
- Total pull request authors: 2
- Average comments per issue: 0.6
- Average comments per pull request: 0.92
- Merged pull requests: 290
- Bot issues: 5
- Bot pull requests: 318
Past Year
- Issues: 4
- Pull requests: 184
- Average time to close issues: 9 minutes
- Average time to close pull requests: about 1 hour
- Issue authors: 1
- Pull request authors: 1
- Average comments per issue: 0.5
- Average comments per pull request: 0.9
- Merged pull requests: 166
- Bot issues: 4
- Bot pull requests: 184
Top Authors
Issue Authors
- renovate[bot] (5)
Pull Request Authors
- renovate[bot] (317)
- dependabot[bot] (1)
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- 467 dependencies
- semantic-release-preconfigured-conventional-commits 1.1.8 development
- DanySK/action-checkout 0.2.5 composite
- DanySK/build-check-deploy-gradle-action 2.1.20 composite
- actions/checkout v3.3.0 composite
- eclipse-temurin 19 build