[go: up one dir, main page]

Skip to content

XIAChunxu/gmsh2opensees

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gmsh2opensees

A simple python module to use gmsh and opensees together in python.

gmsh2opensees A deformed shape created with this tool.

Tutorial

Watch

Dependencies

You need to have openseespy installed. Try

pip install openseespy

or follow instructions at the openseespy website to compile your own. You also need gmsh python:

pip install gmsh

Installation

For now, only though the git repo::

git clone https://github.com/jaabell/gmsh2opensees.git

Use the setup.py script, using setuptools, to compile and install::

sudo python setup.py install

If you dont' have sudo, you can install locally for your user with::

python setup.py install --user

Quick start

In your python script include the library

import opensees as ops
import gmsh2opensees as g2o

# write your model

To run execute:

python script_name.py

See more examples in the examples folder.

Dependencies

  • openseespy
  • gmsh
  • numpy

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%