Skip to content

SiccarPoint/dakota

 
 

Repository files navigation

Build Status Code Health Coverage Status

CSDMS Dakota interface

The CSDMS Dakota interface provides a Basic Model Interface and API for the Dakota iterative systems analysis toolkit. This is currently alpha-level software supported on Linux and Mac OSX.

Installation

Install the CSDMS Dakota interface with:

$ git clone https://github.com/csdms/dakota.git
$ cd dakota
$ python setup.py install

The CSDMS Dakota interface requires Dakota. Follow the instructions on the Dakota website for downloading and installing a precompiled Dakota binary for your system. Dakota version 6.1 is supported by the CSDMS Dakota interface.

HydroTrend is the only CSDMS model currently supported in the CSDMS Dakota interface. On Mac OS X, install HydroTrend through Homebrew:

$ brew tap csdms/models
$ brew install hydrotrend

On Linux, build HydroTrend from source:

$ git clone https://github.com/csdms-contrib/hydrotrend.git
$ mkdir -p hydrotrend/build && cd hydrotrend/build
$ cmake ..
$ make
$ make install

Execution

Import the CSDMS Dakota interface into a Python session with:

>>> from dakota.core import Dakota

Create a Dakota instance, specifying a Dakota analysis method:

>>> d = Dakota(method='vector_parameter_study')

Currently, three Dakota methods

are supported.

To run a sample case, create an input file from the default vector parameter study and call Dakota:

>>> d.write_input_file()
>>> d.run()

Dakota output is written to two files, dakota.out (run information) and dakota.dat (tabular output), in the current directory.

About

A BMI for the Dakota iterative systems toolkit

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%