A simple python module to use gmsh and opensees together in python.
A deformed shape created with this tool.
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
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
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.
openseespy
gmsh
numpy