OpenSees

Licences

There are three commands with which a OpenSees job can be launched.

  • OpenSees - For running a job in serial (single CPU).
  • OpenSeesSP - Intended for the single analysis of very large models.
  • OpenSeesMP - For advanced parametric studies.

 

More info can be found about running OpenSees in parallel here.

Serial


Single process with a single thread.

Usually submitted as part of an array, as in the case of parameter sweeps.

#!/bin/bash -e

#SBATCH --job-name      OpenSees-Serial
#SBATCH --time 00:05:00 # Walltime #SBATCH --cpus-per-task 1 # Double if hyperthreading enabled #SBATCH --mem 512MB # total mem #SBATCH --hint nomultithread # Hyperthreading disabled module load OpenSees
input="frame.tcl" OpenSees ${input}

 

Input from Shell

Information can be passed from the bash shell to a Tcl script by use of environment variables.

Set in Slurm script:

export MY_VARIABLE="Hello World!"

Retrieved in Tcl script:

puts $::env(MY_VARIABLE)

 

 

Was this article helpful?
0 out of 0 found this helpful