OpenSees

OpenSees

OpenSees [1], the Open System for Earthquake Engineering Simulation, is an object-oriented, open source software framework. It allows users to create both serial and parallel finite element computer applications for simulating the response of structural and geotechnical systems subjected to earthquakes and other hazards. OpenSees is primarily written in C++ and uses several Fortran and C numerical libraries for linear equation solving, and material and element routines.

Running OpenSees in HPC

Copy the directory "OPENSEES" from /usr/local/doc and cd to it. You will find a script file "Truss.tcl" from a tutorial [3] and a job file "opensees.slurm".

cp -r /usr/local/doc/OPENSEES .

cd OPENSEES/

Interactive Job

Request a node

srun --pty --time=30 -c 5 --mem=20g /bin/bash

Load the Singularity module that define the path to OpenSees.

module load singularity

Run Opensees

singularity exec $OPENSEES25 OpenSees ./Truss.tcl

output:

OpenSees -- Open System For Earthquake Engineering Simulation

        Pacific Earthquake Engineering Research Center -- 2.4.6 (rev 5988)

            (c) Copyright 1999-2013 The Regents of the University of California

                                 All Rights Reserved

    (Copyright and Disclaimer @ http://www.berkeley.edu/OpenSees/copyright.html)

OpenSees > source ./Truss.tcl

node 4 displacement:              0.53009277713228375450            -0.17789363846931768864

 Node: 4

        Coordinates  : 72 96

        Disps: 0.530093 -0.177894

        Velocities   : 0 0

         unbalanced Load: 100 -50

        ID : 0 1

...

OpenSees > quit

Batch Job

Find the job file "opensees.slurm" and submit the job

sbatch opensees.slurm

You will find the output files along with the log file "slurm-<jobid>.out"

References:

[1] OpenSeesWiki

[2] OpenSees Home

[3] OpenSees Tutorial