Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/andrewdsen/OpenSeesAPI.m
OpenSees API for MATLAB
https://github.com/andrewdsen/OpenSeesAPI.m
Last synced: 3 months ago
JSON representation
OpenSees API for MATLAB
- Host: GitHub
- URL: https://github.com/andrewdsen/OpenSeesAPI.m
- Owner: andrewdsen
- License: mit
- Created: 2016-09-30T20:07:57.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2020-05-11T22:01:11.000Z (over 4 years ago)
- Last Synced: 2024-04-08T02:53:21.137Z (7 months ago)
- Language: MATLAB
- Size: 132 KB
- Stars: 7
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-opensees - OpenSeesAPI.m - An OpenSees API for MATLAB. ![oss][oss] ![matlab][matlab] (API)
README
# OpenSeesAPI.m
OpenSees API for MATLABQuick start guide:
1. Add OpenSees API folder to your MATLAB path. For example,
```
addpath ../OSAPI/
```
2. Create a database object. For example,
```
db = database('MyModel', 'MyName', 'MyTCLFile')
```
3. Add nodes, materials, elements, etc. to the database object. For example,
```
db.addNode( MyNode )
db.addElement( MyElement )
```
4. Compile the database into a script using the `write` method. Note that this does not create the TCL file.
```
db.write;
```
5. Execute the script using `exec`. You need to make sure that *OpenSees* is on either MATLAB's path or your system's path. Specify your version of *OpenSees* as either `reg` for regular, `SP` for *OpenSeesSP*, or `MP` for *OpenSeesMP*. For example,
```
exec(db, 'SP');
```