researcherben / structural-simulation-toolkit

Sandia SST
GNU General Public License v3.0
4 stars 0 forks source link

what is this repo for?

This repo is a supplement to Sandia National Lab's Structural Simulation Toolkit - https://github.com/sstsimulator

This repo aggregates resources intended to welcome new users of SST.

documentation

See the wiki

content

File types present:

build Docker

make docker

The initial build process takes 1.5 hours from source for core+elements

use

What version of SST is this?

sst --version

what components are registered?

sst-info

test an example by running

sst build/sst-elements/src/sst/elements/simpleElementExample/tests/test_simpleRNGComponent_mersenne.py
sst build/sst-elements/src/sst/elements/simpleElementExample/tests/test_simpleClockerComponent.py
sst build/sst-elements/src/sst/elements/simpleElementExample/tests/test_simpleLookupTable.py
sst build/sst-elements/src/sst/elements/simpleSimulation/tests/test_simpleCarWash.py

Each of the .py scripts is a configuration for a simulation (SST jargon: "Project Driver file"). The components are compiled from .cc and .h file. See https://sst-simulator.org/SSTPages/SSTUserPythonFileFormat/ All of the examples are a single isolated component. (Nothing demonstrating a link?)

To generate a graphviz of the components and links, use

sst --output-dot=${outfile}.gv --run-mode=init ${cfgfile}.py

where "outfile" is the name of the graphviz file produced and "cfgfile" is the Python Project Driver file.

docker run -it --rm -v `pwd`:/scratch sst:latest sst --output-dot=/scratch/file.gv --run-mode=init /home/sst/build/sst-elements/src/sst/elements/simpleElementExample/tests/subcomponent_tests/test_sc_2a.py
docker run -it --rm -v `pwd`:/scratch sst:latest dot /scratch/file.gv -Tpng > file.png

demos examples tutorials

see https://sst-simulator.org/SSTPages/SSTMainDownloads/#SSTutorials and https://github.rcac.purdue.edu/green349/sst-tutorial/tree/master/exercises (which has more than https://github.com/sstsimulator/sst-tutorials/tree/master/exercises)

SST jargon

See https://github.com/researcherben/structural-simulation-toolkit/tree/master/frequently-asked-questions