This directory contains an example Agave App definition for OpenSees.
This file is the App json description of the OpenSees app for Agave.
The app/
directory contains the wrapper.sh
script for taking inputs and parameters
from the Agave Job and running OpenSees according to those inputs/parameters.
The test.sh
script is used for testing wrapper.sh
manually. Also included is an
example TCL input file, Truss.tcl
from the OpenSees Wiki Examples.
A minimal example of a Agave API Jobs document for running this app using the Agave Jobs API.
Follow the App Management Tutorial for general instructions for installing apps into Agave.
To install and run this app you must do the following:
-
Install the OpenSees binary onto the
executionSystem
defined in the App json. The system listed in the provided json isdesignsafe.exec.example
. You should update this value to the system where you installed OpenSees. (See the Systems Tutorial for more about systems.) You will also need to updateapp/wrapper.sh
to with the correct path forOPENSEES_BIN
. -
Upload
app/
to the storage system and path defined indeploymentSystem
anddeploymentPath
as defined in the App's json. -
POST the App definition,
opensees-example-0.1.0.json
, to the Agave App API, e.g.:$ curl -H "Authorization: Bearer $TOKEN" -X POST https://agave.designsafe-ci.org/apps/v2/ -F "[email protected]"
-
Run the app using the Agave Jobs API, e.g.:
$ curl -H "Authorization: Bearer $TOKEN" -X POST https://agave.designsafe-ci.org/jobs/v2/ -F "fileToUpload=@app/test/submit-job.json"